Function: erc-nicks--check-normals
erc-nicks--check-normals is a byte-compiled function defined in
erc-nicks.el.gz.
Signature
(erc-nicks--check-normals CURRENT CONTENDER CONTENDERS NORMALS)
Documentation
Return a viable nicks-owned face from NORMALS in CONTENDERS.
But only do so if the CURRENT face is also one of ours and in
NORMALS and if the highest ranked CONTENDER among new faces is
erc-default-face, the lowest ranking default priority face.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-nicks.el.gz
(defun erc-nicks--check-normals (current contender contenders normals)
"Return a viable `nicks'-owned face from NORMALS in CONTENDERS.
But only do so if the CURRENT face is also one of ours and in
NORMALS and if the highest ranked CONTENDER among new faces is
`erc-default-face', the lowest ranking default priority face."
(and-let* (((eq contender 'erc-default-face))
((or (null current) (gethash current normals)))
(spkr (or (null current) (erc-nicks--oursp current))))
(catch 'contender
(dolist (candidate (cdr contenders) contender)
(when-let (((not (equal candidate current)))
((gethash candidate normals))
(s (erc-nicks--oursp candidate))
((not (eq s spkr))))
(throw 'contender candidate))))))