unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Don't attempt to colour tags in `notmuch-show-mode'.
@ 2011-12-27 16:47 David Edmondson
  2011-12-28  3:29 ` Austin Clements
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: David Edmondson @ 2011-12-27 16:47 UTC (permalink / raw)
  To: notmuch

The tags were coloured using text properties. Unfortunately that text
(the header line) also has an overlay, which overrides the text
properties. There's not point in applying text properties that will
never be seen.
---
 emacs/notmuch-show.el |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 8c9d846..24f0b40 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -221,10 +221,7 @@ indentation."
     (goto-char (notmuch-show-message-top))
     (if (re-search-forward "(\\([^()]*\\))$" (line-end-position) t)
 	(let ((inhibit-read-only t))
-	  (replace-match (concat "("
-				 (propertize (mapconcat 'identity tags " ")
-					     'face 'notmuch-tag-face)
-				 ")"))))))
+	  (replace-match (concat "(" (mapconcat 'identity tags " ") ")"))))))
 
 (defun notmuch-show-clean-address (address)
   "Try to clean a single email ADDRESS for display.  Return
@@ -278,8 +275,7 @@ message at DEPTH in the current thread."
 	    " ("
 	    date
 	    ") ("
-	    (propertize (mapconcat 'identity tags " ")
-			'face 'notmuch-tag-face)
+	    (mapconcat 'identity tags " ")
 	    ")\n")
     (overlay-put (make-overlay start (point)) 'face 'notmuch-message-summary-face)))
 
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-01-17 12:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-27 16:47 [PATCH] emacs: Don't attempt to colour tags in `notmuch-show-mode' David Edmondson
2011-12-28  3:29 ` Austin Clements
2011-12-28 12:42   ` Xavier Maillard
2011-12-28 20:09     ` Jameson Graef Rollins
2011-12-28 21:51       ` Xavier Maillard
2011-12-28 12:43 ` Xavier Maillard
2012-01-16  3:03 ` David Bremner
2012-01-16 11:17 ` Pieter Praet
2012-01-16 11:22   ` David Edmondson
2012-01-16 11:44     ` Pieter Praet
2012-01-16 20:51     ` Aaron Ecay
2012-01-16 21:24       ` Jani Nikula
2012-01-16 22:21       ` David Bremner
2012-01-17  7:22         ` David Edmondson
2012-01-17 12:05           ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).