aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorWolfgang Jenkner2012-12-27 22:51:46 +0000
committerKatsumi Yamaoka2012-12-27 22:51:46 +0000
commit19693cc1740ff2f7edda55b8433652a8ba436e57 (patch)
treebfc601964591638c2fe3cf66809130da55c3a13f /lisp
parent313f39aa03cc40ddc4faea08636c74bfa52ec099 (diff)
downloademacs-19693cc1740ff2f7edda55b8433652a8ba436e57.tar.gz
emacs-19693cc1740ff2f7edda55b8433652a8ba436e57.zip
Gnus: Avoid `Invalid face reference: nil' messages
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog10
-rw-r--r--lisp/gnus/gnus-spec.el2
-rw-r--r--lisp/gnus/gnus-util.el2
3 files changed, 12 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index be531be941e..4450dde0cd8 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,13 @@
12012-12-27 Wolfgang Jenkner <wjenkner@inode.at>
2
3 * gnus-spec.el (gnus-face-face-function): Don't use nil as no-op face
4 place holder since this gives `Invalid face reference: nil' messages.
5 Use the `default' face instead. It has the same effect here, even
6 though it is not no-op.
7
8 * gnus-util.el
9 (gnus-put-text-property-excluding-characters-with-faces): Similarly.
10
12012-12-27 Lars Ingebrigtsen <larsi@gnus.org> 112012-12-27 Lars Ingebrigtsen <larsi@gnus.org>
2 12
3 * gnus-msg.el (gnus-summary-resend-message): Don't bug out on 13 * gnus-msg.el (gnus-summary-resend-message): Don't bug out on
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el
index 22d4627bf28..0b5203d9ea0 100644
--- a/lisp/gnus/gnus-spec.el
+++ b/lisp/gnus/gnus-spec.el
@@ -270,7 +270,7 @@ Return a list of updated types."
270 ;; Delay consing the value of the `face' property until 270 ;; Delay consing the value of the `face' property until
271 ;; `gnus-add-text-properties' runs, since it will be modified 271 ;; `gnus-add-text-properties' runs, since it will be modified
272 ;; by `gnus-put-text-property-excluding-characters-with-faces'. 272 ;; by `gnus-put-text-property-excluding-characters-with-faces'.
273 (list ',(symbol-value (intern (format "gnus-face-%d" type))) nil) 273 (list ',(symbol-value (intern (format "gnus-face-%d" type))) 'default)
274 ;; Redundant now, but still convenient. 274 ;; Redundant now, but still convenient.
275 '(gnus-face t))))) 275 '(gnus-face t)))))
276 276
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 705a9e0debf..fb218e5cf75 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -875,7 +875,7 @@ Otherwise, do nothing."
875 (let ((stop (next-single-property-change beg 'face nil end))) 875 (let ((stop (next-single-property-change beg 'face nil end)))
876 (if (get-text-property beg 'gnus-face) 876 (if (get-text-property beg 'gnus-face)
877 (when (eq prop 'face) 877 (when (eq prop 'face)
878 (setcar (cdr (get-text-property beg 'face)) val)) 878 (setcar (cdr (get-text-property beg 'face)) (or val 'default)))
879 (inline 879 (inline
880 (gnus-put-text-property beg stop prop val))) 880 (gnus-put-text-property beg stop prop val)))
881 (setq beg stop)))) 881 (setq beg stop))))