summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-sum.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-09-07 12:07:00 +0800
committerChong Yidong <cyd@gnu.org>2012-09-07 12:07:00 +0800
commit1d43a35f49f7403f7f50f36dddf88167a7c81f11 (patch)
treefb223a87c6616013d7074f3b0673016c882db7b1 /lisp/gnus/gnus-sum.el
parent2fe282993cf9c84f5be424dc93d03f9705a7edd8 (diff)
downloademacs-1d43a35f49f7403f7f50f36dddf88167a7c81f11.tar.gz
Partially revert last Gnus merge.
The add-face function has been added gnus-compat.el, but is not in Emacs; this leaves Gnus in an unusable state. * lisp/gnus/gnus-salt.el (gnus-tree-highlight-node): * lisp/gnus/gnus-sum.el (gnus-summary-highlight-line): * lisp/gnus/gnus-group.el (gnus-group-highlight-line): Revert use of add-face. * lisp/gnus/gnus-util.el (gnus-put-text-property-excluding-characters-with-faces): Restore.
Diffstat (limited to 'lisp/gnus/gnus-sum.el')
-rw-r--r--lisp/gnus/gnus-sum.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index bc0addd1559..b44b953bec6 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -12522,8 +12522,9 @@ If REVERSE, save parts that do not match TYPE."
(not (memq article gnus-newsgroup-cached)))))
(let ((face (funcall (gnus-summary-highlight-line-0))))
(unless (eq face (get-text-property beg 'face))
- (add-face beg (point-at-eol)
- (setq face (if (boundp face) (symbol-value face) face)))
+ (gnus-put-text-property-excluding-characters-with-faces
+ beg (point-at-eol) 'face
+ (setq face (if (boundp face) (symbol-value face) face)))
(when gnus-summary-highlight-line-function
(funcall gnus-summary-highlight-line-function article face))))))