about summary refs log tree commit diff
path: root/Etc
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-11-12 23:17:36 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-11-12 23:17:36 -0800
commit20de06dfbc69c7d4dbc953f1794b70ed6bc9aa43 (patch)
tree98a92f74ca593942ce8037b94a0de7eb9b98329f /Etc
parent2ba985fe5b8d3c61aa8c066c9cb14165a409e90b (diff)
downloadzsh-20de06dfbc69c7d4dbc953f1794b70ed6bc9aa43.tar.gz
zsh-20de06dfbc69c7d4dbc953f1794b70ed6bc9aa43.tar.xz
zsh-20de06dfbc69c7d4dbc953f1794b70ed6bc9aa43.zip
unposted: add list of standard module hooks with corresponding macro names
Diffstat (limited to 'Etc')
-rw-r--r--Etc/zsh-development-guide25
1 files changed, 25 insertions, 0 deletions
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
 --------