emacs: tag deleted face bugfix

Commit d25d33ff cleaned up some of the tag face code. However, for the
face notmuch-tag-deleted it used the test

((class color) (supports :strike-through))

to decide whether to use red strikethrough or inverse-video (emacs in
a terminal typically doesn't support red strikethrough, but in X it does).

However, it seems that test often returns true even though red
strikethrough is not supported. This breaks the tag update code -- the
wrong thing is displayed to the user.

Thus we make the test explicitly more specific, changing the test to

((class color) (supports :strike-through "red"))
This commit is contained in:
Mark Walters 2016-09-18 11:57:32 +01:00 committed by David Bremner
parent b57426a435
commit 51d27e0855

View file

@ -105,7 +105,7 @@ with images."
:type 'notmuch-tag-format-type) :type 'notmuch-tag-format-type)
(defface notmuch-tag-deleted (defface notmuch-tag-deleted
'((((class color) (supports :strike-through)) :strike-through "red") '((((class color) (supports :strike-through "red")) :strike-through "red")
(t :inverse-video t)) (t :inverse-video t))
"Face used to display deleted tags. "Face used to display deleted tags.