Function: erc-nicks--track-prioritize
erc-nicks--track-prioritize is a byte-compiled function defined in
erc-nicks.el.gz.
Signature
(erc-nicks--track-prioritize CURRENT CONTENDER CONTENDERS RANKS NORMALS)
Documentation
Return a viable non-CURRENT nicks face among CONTENDERS.
See erc-track--select-mode-line-face for parameter types.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-nicks.el.gz
(defun erc-nicks--track-prioritize (current contender contenders ranks normals)
"Return a viable non-CURRENT `nicks' face among CONTENDERS.
See `erc-track--select-mode-line-face' for parameter types."
(when-let*
((spkr (erc-nicks--assess-track-faces current contender ranks normals)))
(catch 'contender
(dolist (candidate (cdr contenders))
(when-let* (((not (equal candidate current)))
(s (erc-nicks--ours-p candidate))
((not (eq s spkr))))
(throw 'contender candidate))))))