]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
notmuch.el: Don't try to remove an "unread" tag that's not there.
[notmuch] / notmuch.el
index 89089c53e7c40f032330a28bbc871aa7911376fa..513b7d9163e3b87e484035b97653b2803dae629c 100644 (file)
 
 Before moving, also remove the \"unread\" tag from the current message."
   (interactive)
-  (notmuch-show-remove-tag "unread")
+  (if (member "unread" (notmuch-show-get-tags))
+      (notmuch-show-remove-tag "unread"))
   ; First, ensure we get off the current message marker
   (if (not (eobp))
       (forward-char))