From 20de06dfbc69c7d4dbc953f1794b70ed6bc9aa43 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 12 Nov 2016 23:17:36 -0800 Subject: unposted: add list of standard module hooks with corresponding macro names --- Etc/zsh-development-guide | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Etc') diff --git a/Etc/zsh-development-guide b/Etc/zsh-development-guide index 09a34e41f..fa4b816aa 100644 --- a/Etc/zsh-development-guide +++ b/Etc/zsh-development-guide @@ -810,6 +810,31 @@ that are changed or called very often. These functions, structure defining the hook instead of the name and otherwise behave like their counterparts. +The following hooks are defined by the standard set of modules and may be +referenced by other modules. Each has a corresponding macro name that +points into the definition structure, to avoid repeating the hook names +as strings: + + zsh/main + after_trap AFTERTRAPHOOK + before_trap BEFORETRAPHOOK + exit EXITHOOK + + zsh/complete + compctl_make COMPCTLMAKEHOOK + compctl_cleanup COMPCTLCLEANUPHOOK + insert_match INSERTMATCHHOOK + comp_list_matches COMPLISTMATCHESHOOK + menu_start MENUSTARTHOOK + + zsh/zle + before_complete BEFORECOMPHOOK + complete COMPLETEHOOK + after_complete AFTERCOMPHOOK + accept_completion ACCEPTCOMPHOOK + list_matches LISTMATCHESHOOK + invalidate_list INVALIDATELISTHOOK + Wrappers -------- -- cgit 1.4.1