about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Etc/zsh-development-guide25
2 files changed, 30 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d09411848..686bf41cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-12  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* unposted: Etc/zsh-development-guide: add list of standard
+	module hooks with corresponding macro names
+
 2016-11-12  Oliver Kiddle  <opk@zsh.org>
 
 	* 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
 --------