Mikko Hänninen <[EMAIL PROTECTED]> wrote:
>
>    T~s \[LUG\]<enter>;s=lug<enter>
> 
> [...] You need to escape the square brackets or Mutt will interpret
> that as "any character of L, U or G".  [...]

Since you mentioned backslashes, I feel the need to point out that you
can easily get in trouble with them, since Mutt's parser likes to eat
backslashes for breakfast.

For instance, while processing the 'macro' command above, the
backslashes will be removed while examining the macro text, unless you
use 'single quotes' around the text of the macro.  But also, when the
macro is evaluated, the input parse will scan for backslashes, and eat
some more of them.  So the correct way to get the above working would be
something like this:

    macro index <key>   'T~s \\[LUG\\]<enter>;s=lug<enter>'

or if you used double-quotes,

    macro index <key>   "T~s \\\\[LUG\\\\]<enter>;s=lug<enter>"

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |    PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44

Reply via email to