Function: erc-display-line

erc-display-line is a byte-compiled function defined in erc.el.gz.

Signature

(erc-display-line STRING &optional BUFFER)

Documentation

Insert STRING in BUFFER as a plain "local" message.

Take pains to ensure modification hooks see messages created by the old pattern (erc-display-line (erc-make-notice) my-buffer) as being equivalent to a erc-display-message TYPE of notice.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-display-line (string &optional buffer)
  "Insert STRING in BUFFER as a plain \"local\" message.
Take pains to ensure modification hooks see messages created by
the old pattern (erc-display-line (erc-make-notice) my-buffer) as
being equivalent to a `erc-display-message' TYPE of `notice'."
  (let ((erc--msg-prop-overrides erc--msg-prop-overrides))
    (when (eq 'erc-notice-face (get-text-property 0 'font-lock-face string))
      (unless (assq 'erc--msg erc--msg-prop-overrides)
        (push '(erc--msg . notice) erc--msg-prop-overrides)))
    (erc-display-message nil nil buffer string)))