X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.el;h=513b7d9163e3b87e484035b97653b2803dae629c;hp=89089c53e7c40f032330a28bbc871aa7911376fa;hb=3dc1507d15328499ee4526b2ee4d6988844f5d14;hpb=aa34eb2a3761c770b485486d0f94564f5e925128 diff --git a/notmuch.el b/notmuch.el index 89089c53..513b7d91 100644 --- a/notmuch.el +++ b/notmuch.el @@ -113,7 +113,8 @@ 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))