On Wed, Apr 05, 2000 at 21:34:54 +0200, Marius Gedminas wrote: > Once I thought about asking for a new command -- <reverse-limit>. Then > I realized that it was not necessary -- one could just write a macro > like this: <limit><home>!(<end>)<enter> Please find my attempt to make such a macro in the attached file: Save it, source it, and type control-l to reverse the limit pattern. > So far so good. However there's a strange bug/feature: > > foo limits to messages matching pattern foo > !(foo) limits to messages not matching pattern foo > !(!(foo)) limits to messages not matching pattern foo too! But > (!(!(foo))) limits to messages matching pattern foo Might be a bug, I can't say for sure. -- Byrial
# Mutt macro "reverse limit" bound to ^l macro index <esc><esc>l1 \ '<enter-command>macro index \cl "<limit>\ <.<backspace>bol>!(<.<backspace>eol>)\ <.<backspace>enter><.<backspace>esc><.<backspace>esc>l2" \ "reverse limit pattern"\ <enter>' \ "reverse limit help macro 1" macro index <esc><esc>l2 \ '<enter-command>macro index \cl "<limit>\ <.<backspace>backspace><.<backspace>bol>\ <.<backspace>delete-char><.<backspace>delete-char>\ <.<backspace>enter><.<backspace>esc><.<backspace>esc>l1" \ "reverse limit"\ <enter>' \ "reverse limit help macro 2" macro index \cl \ "<limit><bol>!(<eol>)<enter><esc><esc>l2" \ "reverse limit"