unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] notmuch.el: Prefix arg inverts the sort order of notmuch-search.
@ 2010-02-11 12:19 David Edmondson
  2010-02-11 13:42 ` Sebastian Spaeth
  0 siblings, 1 reply; 6+ messages in thread
From: David Edmondson @ 2010-02-11 12:19 UTC (permalink / raw)
  To: notmuch

---
 notmuch.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 8f50abe..de9ddf8 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1398,7 +1398,8 @@ characters as well as `_.+-'.
 (defun notmuch-search (query &optional oldest-first)
   "Run \"notmuch search\" with the given query string and display results."
   (interactive "sNotmuch search: ")
-  (let ((buffer (get-buffer-create (concat "*notmuch-search-" query "*"))))
+  (let ((buffer (get-buffer-create (concat "*notmuch-search-" query "*")))
+	(oldest-first (if current-prefix-arg (not oldest-first) oldest-first)))
     (switch-to-buffer buffer)
     (notmuch-search-mode)
     (set 'notmuch-search-query-string query)
-- 
1.6.6.1

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

end of thread, other threads:[~2010-02-11 17:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 12:19 [PATCH] notmuch.el: Prefix arg inverts the sort order of notmuch-search David Edmondson
2010-02-11 13:42 ` Sebastian Spaeth
2010-02-11 14:01   ` David Edmondson
2010-02-11 14:05     ` Sebastian Spaeth
2010-02-11 14:20       ` racin
2010-02-11 17:23         ` micah anderson

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).