X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=notmuch.el;h=9de16e006fd3cac225be5c723936512279bd1022;hb=d6faef5b76ced057902783d3a22b2b3d03fd2d45;hp=cf18c95f6f55124dc04ccbf976c425d047ac02ba;hpb=057b3060e8badb1bba7d0d24cd0a05148113e2e2;p=notmuch diff --git a/notmuch.el b/notmuch.el index cf18c95f..9de16e00 100644 --- a/notmuch.el +++ b/notmuch.el @@ -791,7 +791,7 @@ global search. (goto-char (point-min)) (while (not (eobp)) (notmuch-search-markup-this-thread-id) - (next-line)))) + (forward-line)))) (defun notmuch-search-show-thread () (interactive) @@ -874,8 +874,8 @@ This function advances point to the next line when finished." (goto-char (point-min)) (save-excursion (if oldest-first - (call-process "notmuch" nil t nil "search" query) - (call-process "notmuch" nil t nil "search" "--reverse" query)) + (call-process "notmuch" nil t nil "search" "--sort=oldest-first" query) + (call-process "notmuch" nil t nil "search" "--sort=newest-first" query)) (notmuch-search-markup-thread-ids) ))))