X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=doc%2Fmanual.sgml.head;h=d39feaccccd6756bf00a99d26cf17772956b7002;hb=08b24cfbdc0c35af65891f5b2478dc0ee33feb7e;hp=5dcbb64a80d8e468eaa06591b8b277952330ee60;hpb=e4ebc9b0ae5de07d53d8b0ecf594244e1bc44d0a;p=apps%2Fmadmutt.git diff --git a/doc/manual.sgml.head b/doc/manual.sgml.head index 5dcbb64..d39feac 100644 --- a/doc/manual.sgml.head +++ b/doc/manual.sgml.head @@ -1301,28 +1301,33 @@ set imap_home_namespace = $folder

Mutt-ng flexibly allows users to define their own variables. To avoid conflicts with the standard set and to prevent misleading - error messages, there's a reserved namespace for them. All + error messages, there's a reserved namespace for them: all user-defined variables must be prefixed with For example, to view the manual, users can either define three +

For example, to view the manual, users can either define two macros like the following macro generic <F1> "!less -r /path/to/manual" "Show manual" macro pager <F1> "!less -r /path/to/manual" "Show manual" -macro index <F1> "!less -r /path/to/manual" "Show manual"

for -set user_manualcmd = '!less -r /path/to_manual" +set user_manualcmd = '!less -r /path/to_manual' macro generic <F1> "$user_manualcmd<enter>" "Show manual" macro pager <F1> "$user_manualcmd<enter>" "Show manual" macro index <F1> "$user_manualcmd<enter>" "Show manual" + + +

to re-use the command sequence as in: + + +macro index <F2> "$user_manualcmd | grep '\^[ ]\\+~. '" "Show Patterns"

Using this feature, arbitrary sequences can be defined once and @@ -1330,6 +1335,42 @@ macro index <F1> "$user_manualcmd<enter>" "Show manual" include to save a variable's value at the beginning of macro sequence and restore it at end. +

When the variable is first defined, the first value it gets + assigned is also the initial value to which it can be reset using + the The complete removal is done via the After the following sequence: + + +set user_foo = 42 +set user_foo = 666 + + +

the variable $user_foo has a current value of 666 and an + initial of 42. The query + + +set ?user_foo + + +

will show 666. After doing the reset via + + +reset user_foo + + +

a following query will give 42 as the result. After unsetting it + via + + +unset user_foo + + +

any query or operation (except the noted expansion within other + statements) will lead to an error message. + Type Conversions

A note about variable's types during conversion: internally @@ -1342,7 +1383,7 @@ macro index <F1> "$user_manualcmd<enter>" "Show manual" set read_inc = 100 set folder = $read_inc -set $read_inc = $folder +set read_inc = $folder set user_magic_number = 42 set folder = $user_magic_number @@ -2273,8 +2314,8 @@ message will ever get marked as read or deleted. and the ˜n pattern: -color black yellow "~n 10-" -color red yellow "~n 100-" +color index black yellow "~n 10-" +color index red yellow "~n 100-"

The rules above mark all messages with a score between 10 and 99 with black and yellow, and messages with a score greater or equal