[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-dev
Subject:    Re: Preparing for a new release
From:       "Kevin J. McCarthy" <kevin () 8t8 ! us>
Date:       2015-08-21 14:01:50
Message-ID: 20150821140150.GG15021 () zaogao ! lan
[Download RAW message or body]


Vincent Lefevre wrote:
> 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.

Doh... I should have known better, having just wrote thre error checking
for regexp vs mailbox shortcut handling in hooks.

Sorry to waste your time with a bad suggestion!

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
http://www.8t8.us/configs/gpg-key-transition-statement.txt

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic