]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - emacs/notmuch.el
emacs: search archive tweak
[notmuch.git] / emacs / notmuch.el
index f6bf9c84d6a9cc4c86c647237d668e5a60784daf..2a9876fddbeb69ce482cc4b7cfd75288dabfcd24 100644 (file)
@@ -580,7 +580,8 @@ This function advances the next thread when finished."
   (when notmuch-archive-tags
     (notmuch-search-tag
      (notmuch-tag-change-list notmuch-archive-tags unarchive) beg end))
-  (notmuch-search-next-thread))
+  (when (eq beg end)
+    (notmuch-search-next-thread)))
 
 (defun notmuch-search-update-result (result &optional pos)
   "Replace the result object of the thread at POS (or point) by