On 2015-08-21 13:21:56 +0200, Vincent Lefevre wrote:
> On 2015-08-21 13:05:39 +0200, Vincent Lefevre wrote:
> > On 2015-08-20 19:53:36 -0700, Kevin J. McCarthy wrote:
> > > Vincent Lefevre wrote:
> > > > In "<save-message>=INBOX.Trash<enter>", the "=INBOX.Trash" will be
> > > > saved to the history, and it is not possible to temporarily disable
> > > > the history (e.g. for such macros). So, indeed, this would be very
> > > > annoying.
> > > 
> > > I believe adding a leading space will keep it from being added to
> > > history:
> > >      "<save-message> =INBOX.Trash<enter>"
> > 
> > No, this doesn't work as expected for mailboxes and patterns: the
> > space (and the following text) is appended to the last entry.
> 
> I've found a workaround. For my limit-to-all macro:
> 
> macro index \CA "<limit>~<backspace> ~A\r" "limit to all"

Unfortunately, this trick doesn't work with <save-message>.
First, the space will trigger <buffy-cycle> with the default
key binding. One can avoid that by using <quote-char> before
the space, like:

  "<save-message>=<backspace><quote-char> =INBOX.Trash"

but though one now has a leaning space character, this doesn't
work because the = character is no longer regarded as a mailbox
shortcut. One would need to avoid mailbox shortcuts, which may
not be a big problem for macros.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to