<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/1911: macro expansion produces "editor" function instead of literal string when using "^A" (caret + character) in input lines for ctrl-chars bound in "editor" keymap



Synopsis: macro expansion produces "editor" function instead of literal string 
when using "^A" (caret + character) in input lines for ctrl-chars bound in 
"editor" keymap

**** Comment added by tamo on Sat, 27 Aug 2005 06:16:56 +0200 ****
 Rado, read init.c.
You can use "^^" for literal "^".
So the problem is, "Should this be documented?"

|    else if (ch == '^' && (flags & M_TOKEN_CONDENSE))
|    {
|       if (!*tok->dptr)
|           return -1; /* premature end of token */
|      ch = *tok->dptr++;
|      if (ch == '^')
|       mutt_buffer_addch (dest, ch);
|      else if (ch == '[')
|       mutt_buffer_addch (dest, '\033');
|      else if (isalpha ((unsigned char) ch))
|       mutt_buffer_addch (dest, toupper ((unsigned char) ch) - '@');
|      else
|      {
|       mutt_buffer_addch (dest, '^');
|       mutt_buffer_addch (dest, ch);
|      }
|    }