[PATCH 1/2] emacs: If archiving the last message in a thread, show the next thread.
Tomi Ollila
tomi.ollila at iki.fi
Tue Jan 31 02:55:16 PST 2012
On Tue, 31 Jan 2012 10:30:20 +0000, David Edmondson <dme at dme.org> wrote:
> On Tue, 31 Jan 2012 11:25:36 +0200, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> > I like David's alternative suggestion (in IRC) where cursor is left at
> > the end of buffer in case last message is archived with 'a'.
>
> Unless the cursor is already at the end of the buffer, in which case it
> would do the 'next thread' dance (i.e. it behaves like 'space' in that
> respect).
I think I (and Jameson) don't want that behaviour -- therefore we need
functionality (somewhat) analogous to this:
(defun notmuch-show-advance-and-archive ()
"..."
(interactive)
(if (notmuch-show-advance)
(notmuch-show-archive-thread-then-next)))
So we can easily rebind to the version which doesn't
do the '...then-next' magic...
Tomi
More information about the notmuch
mailing list