1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

ERC: Sync from upstream.

This commit is contained in:
Michael Olson 2008-02-23 18:58:56 +00:00
parent 0103690ed2
commit 2a927019fa
4 changed files with 57 additions and 12 deletions

View file

@ -854,7 +854,7 @@ Use `erc-make-mode-line-buffer-name' to create buttons."
(when (featurep 'xemacs)
(erc-modified-channels-object nil))
(setq erc-modified-channels-object
(erc-modified-channels-object strings))))))
(erc-modified-channels-object strings))))))
(defun erc-modified-channels-remove-buffer (buffer)
"Remove BUFFER from `erc-modified-channels-alist'."
@ -867,17 +867,16 @@ Use `erc-make-mode-line-buffer-name' to create buttons."
(defun erc-track-find-face (faces)
"Return the face to use in the modeline from the faces in FACES.
If `erc-track-faces-priority-list' is set, the one from FACES who is
first in that list will be used.
If `erc-track-faces-priority-list' is set, the one from FACES who
is first in that list will be used. If nothing matches or if
`erc-track-faces-priority-list' is not set, the default mode-line
faces will be used.
If `erc-track-faces-normal-list' is non-nil, use it to produce a
blinking effect that indicates channel activity when the first
element in FACES and the highest-ranking face among the rest of
FACES are both members of `erc-track-faces-normal-list'.
If `erc-track-faces-priority-list' is not set, the first element
in FACES will be used.
If one of the faces is a list, then it will be ranked according
to its highest-tanking face member. A list of faces including
that member will take priority over just the single member
@ -892,7 +891,7 @@ element."
(when (member candidate (cdr faces))
(throw 'face candidate)))))))
(cond ((null choice)
(car faces))
nil)
((and (member choice erc-track-faces-normal-list)
(member no-first erc-track-faces-normal-list))
no-first)