]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: tag deleted face bugfix
authorMark Walters <markwalters1009@gmail.com>
Sun, 18 Sep 2016 10:57:32 +0000 (11:57 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 25 Sep 2016 10:42:01 +0000 (07:42 -0300)
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"))

emacs/notmuch-tag.el

index ec3c964d5b8341f93dc6651d5d1d1fd246644e5d..6c8b6a758a696b060d8d0733039118fa88be8ce8 100644 (file)
@@ -105,7 +105,7 @@ with images."
   :type 'notmuch-tag-format-type)
 
 (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))
   "Face used to display deleted tags.