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 (or (intern-soft
			       (concat "erc-" (symbol-name type) "-face"))
			      "erc-default-face")
          string)
         string)))