Function: gnus-article-setup-highlight-words
gnus-article-setup-highlight-words is a byte-compiled function defined
in gnus-art.el.gz.
Signature
(gnus-article-setup-highlight-words &optional HIGHLIGHT-WORDS)
Documentation
Setup newsgroup emphasis alist.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-art.el.gz
(defun gnus-article-setup-highlight-words (&optional highlight-words)
"Setup newsgroup emphasis alist."
(unless gnus-article-emphasis-alist
(let ((name (and gnus-newsgroup-name
(gnus-group-real-name gnus-newsgroup-name))))
(setq-local gnus-article-emphasis-alist
(nconc
(let ((alist gnus-group-highlight-words-alist) elem highlight)
(while (setq elem (pop alist))
(when (and name (string-match (car elem) name))
(setq alist nil
highlight (copy-sequence (cdr elem)))))
highlight)
(copy-sequence highlight-words)
(if gnus-newsgroup-name
(copy-sequence (gnus-group-find-parameter
gnus-newsgroup-name 'highlight-words t)))
gnus-emphasis-alist)))))