mu4e: add check for add-face-text-property

add-face-text-property was only introduced in emacs 24.4, so check
before use in mu4e-headers as do in mu4e-view.

Fixes issue #811.
This commit is contained in:
djcb
2016-03-09 08:02:57 +02:00
parent 9608be5c9f
commit 1505da640d

View File

@ -556,8 +556,10 @@ found."
((memq 'flagged flags) 'mu4e-flagged-face)
((memq 'replied flags) 'mu4e-replied-face)
((memq 'passed flags) 'mu4e-forwarded-face)
(t 'mu4e-header-face))))
(add-face-text-property 0 (length line) face t line)
(t 'mu4e-header-face))))
;; hmmm, this only works with emacs 24.4+
(when (fboundp 'add-face-text-property)
(add-face-text-property 0 (length line) face t line))
line))
(defun mu4e~headers-line-handler (msg line)