On Fri, Apr 23, 2010 at 11:24:58AM -0500, Will Fiveash wrote: > On Fri, Apr 23, 2010 at 09:05:16AM -0700, Michael Elkins wrote: > > On Fri, Apr 23, 2010 at 10:53:27AM -0500, Will Fiveash wrote: > > >On Thu, Apr 22, 2010 at 06:22:26PM -0500, Derek Martin wrote: > > >>On Thu, Apr 22, 2010 at 06:09:07PM -0500, Will Fiveash wrote: > > >>> For a long time I've been using this Mutt macro: > > >>> > > >>> macro index D "<delete-message><next-undeleted>" > > >> > > >>Unless I'm very confused, this is the default behavior of the 'd' key. > > >>You don't need a macro for this. > > > > > >I used 'd' to do a half page down (and 'u' half up). I like a more > > >vi'ish movement scheme. > > > > As Derek mentioned, moving to the next undeleted message is the > > default behavior of the <delete-message> function, unless $resolve > > is unset (default is set). I think you can get the behavior your > > want (without errors) with: > > > > set resolve > > bind index,pager D <delete-message> > > O.K. I did have resolve unset and as I play with the settings I see that > I get the behavior I want when deleting messages however when I flag a > message I did not want the cursor to move down which is why I unset > resolve. I guess it would be nice is there was a way to tell mutt not > to warn if on the last message and a next-unread command is given.
However, you gave me the clue I needed. This macro: macro index D ":set resolve\n<delete-message>:unset resolve\n" works as I wanted it to. So in my general mutt environment resolve is unset but I can set it when deleting a message. Thanks for everyone's responses. -- Will Fiveash Oracle Austin, TX, USA Internal Solaris Kerberos/GSS/SASL website: http://kerberos.sfbay.sun.com http://opensolaris.org/os/project/kerberos/ Note my new work e-mail address: will.five...@oracle.com