Function: erc-track-face-priority

erc-track-face-priority is a byte-compiled function defined in erc-track.el.gz.

Signature

(erc-track-face-priority FACE)

Documentation

Return priority (a number) of FACE in erc-track-faces-priority-list.

Lower number means higher priority.

If face is not in erc-track-faces-priority-list, it will have a higher number than any other face in that list.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-track.el.gz
(defun erc-track-face-priority (face)
  "Return priority (a number) of FACE in `erc-track-faces-priority-list'.
Lower number means higher priority.

If face is not in `erc-track-faces-priority-list', it will have a
higher number than any other face in that list."
  (let ((count 0))
    (catch 'done
      (dolist (item `(,@erc-track--attn-faces ,@erc-track-faces-priority-list))
	(if (equal item face)
	    (throw 'done t)
	  (setq count (1+ count)))))
    count))