From a739d748184bb73b17cb8bb97cea4cdeaff0d859 Mon Sep 17 00:00:00 2001 From: pdmef Date: Sun, 28 Aug 2005 16:28:55 +0000 Subject: [PATCH] From: Alain Bench Rocco Rutte: - for $user_ feature documentation, drop index macro example as it's covered by generic - for $user_ feature documentation, correct quote char mismatch git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@458 e385b8ad-14ed-0310-8656-cc95a2468c6d --- VERSION.svn | 2 +- doc/manual.sgml.head | 11 ++++++++--- doc/manual.txt | 29 +++++++++++++++++------------ 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/VERSION.svn b/VERSION.svn index 8d38505..c92ddb6 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -456 +458 diff --git a/doc/manual.sgml.head b/doc/manual.sgml.head index e8a8f02..d39feac 100644 --- a/doc/manual.sgml.head +++ b/doc/manual.sgml.head @@ -1306,23 +1306,28 @@ set imap_home_namespace = $folder used just like any ordinary configuration or environment variable. -

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 diff --git a/doc/manual.txt b/doc/manual.txt index 74585ca..042f880 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -4,7 +4,7 @@ by Andreas Krennmair and others originally based on _m_u_t_t by Michael Elkins and others - version devel-r453 + version devel-r456 AAbbssttrraacctt @@ -1162,21 +1162,24 @@ user_ and can be used just like any ordinary configuration or environment vari- able. - For example, to view the manual, users can either define three macros like the + For example, to view the manual, users can either define two macros like the following macro generic "!less -r /path/to/manual" "Show manual" macro pager "!less -r /path/to/manual" "Show manual" - macro index "!less -r /path/to/manual" "Show manual" for generic, pager and index. The alternative is to define a custom variable like so: - set user_manualcmd = '!less -r /path/to_manual" + set user_manualcmd = '!less -r /path/to_manual' macro generic "$user_manualcmd" "Show manual" macro pager "$user_manualcmd" "Show manual" macro index "$user_manualcmd" "Show manual" + to re-use the command sequence as in: + + macro index "$user_manualcmd | grep '\^[ ]\\+~. '" "Show Patterns" + Using this feature, arbitrary sequences can be defined once and recalled and reused where necessary. More advanced scenarios could include to save a vari- able's value at the beginning of macro sequence and restore it at end. @@ -1198,12 +1201,12 @@ will show 666. After doing the reset via + The Mutt Next Generation E-Mail Client 25 + reset user_foo a following query will give 42 as the result. After unsetting it via - The Mutt Next Generation E-Mail Client 25 - unset user_foo any query or operation (except the noted expansion within other statements) @@ -1247,14 +1250,15 @@ have multiple alias files, or you can have all aliases defined in your muttrc. On the other hand, the _c_r_e_a_t_e_-_a_l_i_a_s (section 2.5.4 , page 11) function can use + + The Mutt Next Generation E-Mail Client 26 + only one file, the one pointed to by the _$_a_l_i_a_s___f_i_l_e (section 7.4.5 , page 89) variable (which is ~/.muttrc by default). This file is not special either, in the sense that Mutt-ng will happily append aliases to any file, but in order for the new aliases to take effect you need to explicitly _s_o_u_r_c_e (section 3.29 , page 45) this file too. - The Mutt Next Generation E-Mail Client 26 - For example: source /usr/local/share/Mutt-ng.aliases @@ -1297,6 +1301,9 @@ alias The alias menu is the list of your personal aliases as defined in + + The Mutt Next Generation E-Mail Client 27 + your muttrc. It is the mapping from a short alias name to the full email address(es) of the recipient(s). @@ -1304,8 +1311,6 @@ The attachment menu is used to access the attachments on received messages. - The Mutt Next Generation E-Mail Client 27 - browser The browser is used for both browsing the local directory struc- ture, and for listing all of your incoming mailboxes. @@ -2077,8 +2082,8 @@ Scoring gets especially interesting when combined with the color command 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 100 with red and yellow. -- 2.20.1