diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-30 15:26:27 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-10-07 14:01:00 +0000 |
commit | b4cc190db9a8419ca8c5a39ae45c95cb9db0ff84 (patch) | |
tree | d848c37cbdfaf24065ef82c975fdae45f3d705c4 | |
parent | 59a67b31b0ccc3098466d0146ecf1cc28ec70e0f (diff) | |
download | zsh-b4cc190db9a8419ca8c5a39ae45c95cb9db0ff84.tar.gz zsh-b4cc190db9a8419ca8c5a39ae45c95cb9db0ff84.tar.xz zsh-b4cc190db9a8419ca8c5a39ae45c95cb9db0ff84.zip |
39522: add-zsh-hook/add-zle-hook-widget: Promise append semantics.
The sentence about "as widgets" is removed since there is a whole paragraph about that later on.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Doc/Zsh/contrib.yo | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 06efc60b2..a1699ac24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-10-07 Daniel Shahaf <d.s@daniel.shahaf.name> + * 39522: Doc/Zsh/contrib.yo: add-zsh-hook/add-zle-hook-widget: + Promise append semantics. + * 39489: Completion/Unix/Type/_path_files: Interpret -P as literally, rather than as a pattern. diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 189a084ba..653d1bc98 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -311,6 +311,7 @@ still be manipulated as a hook. var(function) is name of an ordinary shell function. If no options are given this will be added to the array of functions to be executed in the given context. +Functions are invoked in the order they were added. If the option tt(-L) is given, the current values for the hook arrays are listed with tt(typeset). @@ -345,7 +346,7 @@ as the var(hook) argument. var(widgetname) is the name of a ZLE widget. If no options are given this is added to the array of widgets to be invoked in the given hook context. -Note that the hooks are called as widgets, that is, with +Widgets are invoked in the order they were added, with example(tt(zle )var(widgetname)tt( -Nw -- "$@")) vindex(WIDGET, in hooks) |