Function: erc-display-message-highlight
erc-display-message-highlight is a byte-compiled function defined in
erc.el.gz.
Signature
(erc-display-message-highlight TYPE STRING)
Documentation
Highlight STRING according to TYPE, where erc-TYPE-face is an ERC face.
See also erc-make-notice.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-display-message-highlight (type string)
"Highlight STRING according to TYPE, where erc-TYPE-face is an ERC face.
See also `erc-make-notice'."
(cond ((eq type 'notice)
(erc-make-notice string))
(t
(erc-put-text-property
0 (length string)
'font-lock-face
(let* ((name (symbol-name type))
(symbol (or (intern-soft (concat "erc-" name "-face"))
(intern-soft (concat "erc-" name))
type)))
(or (and (facep symbol) symbol) 'erc-default-face))
string)
string)))