mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
notmuch.el: Don't try to remove an "unread" tag that's not there.
This optimization wouldn't be necessary if we had a nice fast "notmuch tag" command. But since it's currently fairly slow, (see Xapian defect 250: http://trac.xapian.org/ticket/250), we're willing to take some extra care to avoid calling "notmuch tag" unnecessarily.
This commit is contained in:
parent
aa34eb2a37
commit
3dc1507d15
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@
|
||||||
|
|
||||||
Before moving, also remove the \"unread\" tag from the current message."
|
Before moving, also remove the \"unread\" tag from the current message."
|
||||||
(interactive)
|
(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
|
; First, ensure we get off the current message marker
|
||||||
(if (not (eobp))
|
(if (not (eobp))
|
||||||
(forward-char))
|
(forward-char))
|
||||||
|
|
Loading…
Reference in a new issue