From 1505da640d0a3f1a954dbeae57f2d73a1b31d013 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 9 Mar 2016 08:02:57 +0200 Subject: [PATCH] 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. --- mu4e/mu4e-headers.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 131f75d5..f29585b5 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -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)