From: Richard Russon Date: Thu, 10 Mar 2016 22:52:33 +0000 (+0000) Subject: document new commands X-Git-Tag: neomutt-20160404~12^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39f441f7d4e873b0a8658c2dcd4c7a8c8e882915;p=neomutt document new commands --- diff --git a/README.ifdef b/README.ifdef index 5bb1d6b45..d2eeaa85b 100644 --- a/README.ifdef +++ b/README.ifdef @@ -15,22 +15,28 @@ Patch Introduction ------------ - The "ifdef" command tests whether Mutt understands the name of a variable, - function of command. If it does, then it executes a config command. + The "ifdef" patch introduces three new commands to Mutt and allow you to + share one config file between versions of Mutt that may have different + features compiled in. - This useful command allows you to share one config file between versions of - Mutt that may have different features compiled in. + ifdef symbol config-command [args...] # If a symbol is defined + ifndef symbol config-command [args...] # If a symbol is not defined + finish # Finish reading the current file - The command is of the form: + Here a symbol can be a $variable, , command or compile-time + symbol, such as "USE_IMAP". - ifdef + 'finish' is particularly useful when combined with 'ifndef'. e.g. - where "item" can be the name of a $variable, or command. + # Sidebar config file + ifndef USE_SIDEBAR finish Commands -------- - ifdef item "config-command [args]" + ifdef symbol "config-command [args]" + ifndef symbol "config-command [args]" + finish See Also -------- diff --git a/doc/manual.xml.head b/doc/manual.xml.head index f52f5bbf1..661d7e66a 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -8105,29 +8105,35 @@ please have a look at the mixmaster documentation. Introduction - - The ifdef command tests whether Mutt understands the - name of a variable, function of command. If it does, then it executes - a config command. - + + The ifdef patch introduces three new commands to + Mutt and allow you to share one config file between versions of Mutt + that may have different features compiled in. + + + +ifdef symbol config-command [args...] # If a symbol is defined +ifndef symbol config-command [args...] # If a symbol is not defined +finish # Finish reading the current file + + + + Here a symbol can be a $variable, + <function>, + command or compile-time symbol, such + as USE_IMAP. + - This useful command allows you to share one config file between - versions of Mutt that may have different features compiled in. + finish is particularly useful when combined with + ifndef. e.g. - The command is of the form: - -ifdef <item> <config-command> +# Sidebar config file +ifndef USE_SIDEBAR finish - - where item can be the name of a - $variable, - <function> or - command. -