On 2013–01–11 Michael Elkins wrote: > On Fri, Jan 11, 2013 at 07:10:45PM +0100, Marco wrote: > >>The problem is all the extra spaces you included in the macro > >>string. > > > >I would never have thought of this! Still, I don't understand why it > >only works with a non-empty mailbox. Either spaces are allowed and > >it should work, or spaces are an error and mutt should yell at me. > > <space> is bound to view-message, so when the mailbox is not empty, > it views the message, but you don't see it because the next command > in the macro causes you to move back to the index.
I remapped <space>, but still the same reasoning applies. That explains it. > >Is this behaviour documented? Is there a better way to split the > >command over several lines? IMO it makes it much easier to read. > > "When you press key in menu menu, Mutt will behave as if you had > typed sequence." Reading this and understanding the consequences are two totally different things :) > http://www.mutt.org/doc/devel/manual.html#macro > > There isn't really a good way to wrap long macros, other than > breaking it up into several shorter macros and invoking them > serially. I think the result will be ugly anyway, so I just have to put up the fact that I have long line in my muttrc. Thanks for your help. Marco
signature.asc
Description: Digital signature