From: Rocco Rutte Date: Tue, 4 Aug 2009 10:20:16 +0000 (+0200) Subject: Manual: Fix docs for push/exec X-Git-Tag: mutt-1-5-21-rel~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=444f9f5bbd65f8bb7a5e666c7b4c212cd5595080;p=mutt Manual: Fix docs for push/exec --- diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 96c9d741..64116b20 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -3657,6 +3657,32 @@ folder-hook . 'push <collapse-all>' + +For using functions like shown in the example, it's important to use +angle brackets (< and >) to make +Mutt recognize the input as a function name. Otherwise it will simulate +individual just keystrokes, i.e. push +collapse-all would be interpreted as if you had typed +c, followed by o, followed by +l, ..., which is not desired and may lead to very +unexpected behaviour. + + + +Keystrokes can be used, too, but are less portable because of +potentially changed key bindings. With default bindings, this is +equivalent to the above example: + + + +folder-hook . 'push \eV' + + + +because it simulates that ESC+V was pressed (which is the default +binding of <collapse-all>. + + @@ -3677,7 +3703,7 @@ folder-hook . 'push <collapse-all>' This command can be used to execute any function. Functions are listed in the function reference. -execfunction is +exec function is equivalent to push <function>.