unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: when archiving move the cursor depending on the sort  order.
@ 2010-04-13 13:04 Servilio Afre Puentes
  2010-04-14  8:35 ` Michal Sojka
  0 siblings, 1 reply; 4+ messages in thread
From: Servilio Afre Puentes @ 2010-04-13 13:04 UTC (permalink / raw)
  To: notmuch

The current hardcoded behaviour will not take you to the next unread
thread when the sort order is set to newer-first from the default of
older-first.

Signed-off-by: Servilio Afre Puentes <servilio@gmail.com>
---
 emacs/notmuch.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 517c53a..728aa2b 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -572,7 +572,9 @@ thread or threads in the current region."
 This function advances the next thread when finished."
   (interactive)
   (notmuch-search-remove-tag-thread "inbox")
-  (forward-line))
+  (if notmuch-search-oldest-first
+      (forward-line)
+    (previous-line)))

 (defun notmuch-search-process-sentinel (proc msg)
   "Add a message to let user know when \"notmuch search\" exits"
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-14 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-13 13:04 [PATCH] emacs: when archiving move the cursor depending on the sort order Servilio Afre Puentes
2010-04-14  8:35 ` Michal Sojka
2010-04-14  9:53   ` Sebastian Spaeth
2010-04-14 14:29     ` Servilio Afre Puentes

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).