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 --- ChangeLog | 5 +++++ Etc/zsh-development-guide | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/ChangeLog b/ChangeLog index d09411848..686bf41cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-11-12 Barton E. Schaefer + + * unposted: Etc/zsh-development-guide: add list of standard + module hooks with corresponding macro names + 2016-11-12 Oliver Kiddle * Paul Seyfert: 39920: Completion/Redhat/Command/_yum: 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