Function: erc--lwarn

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

Signature

(erc--lwarn TYPE LEVEL FORMAT-STRING &rest ARGS)

Documentation

Issue a warning of TYPE and LEVEL with FORMAT-STRING and ARGS.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--lwarn (type level format-string &rest args)
  "Issue a warning of TYPE and LEVEL with FORMAT-STRING and ARGS."
  (let ((message (with-temp-buffer
                   (insert (substitute-command-keys
                            (apply #'format-message format-string args)))
                   (delete-indentation (point-min) (point-max))
                   (buffer-string)))
        (inhibit-message (or inhibit-message
                             (and erc--warnings-buffer-name t)))
        (display-buffer-overriding-action
         (if erc--warnings-buffer-name
             '(display-buffer-no-window (allow-no-window . t))
           display-buffer-overriding-action)))
    (display-warning type message level erc--warnings-buffer-name)))