Function: lwarn

lwarn is an autoloaded and byte-compiled function defined in warnings.el.gz.

Signature

(lwarn TYPE LEVEL MESSAGE &rest ARGS)

Documentation

Display a warning message made from (format-message MESSAGE ARGS...).

Aside from generating the message with format-message, this is equivalent to display-warning.

TYPE is the warning type: either a custom group name (a symbol), or a list of symbols whose first element is a custom group name.
(The rest of the symbols represent subcategories and
can be whatever you like.)

LEVEL should be either :debug, :warning, :error, or :emergency
(but see warning-minimum-level and warning-minimum-log-level).

:emergency -- a problem that will seriously impair Emacs operation soon
if you do not attend to it promptly.
:error -- invalid data or circumstances.
:warning -- suspicious data or circumstances.
:debug -- info for debugging only.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/warnings.el.gz
;; Use \\<special-mode-map> so that help-enable-autoload can do its thing.
;; Any keymap that is defined will do.
;;;###autoload
(defun lwarn (type level message &rest args)
  "Display a warning message made from (format-message MESSAGE ARGS...).
\\<special-mode-map>
Aside from generating the message with `format-message',
this is equivalent to `display-warning'.

TYPE is the warning type: either a custom group name (a symbol),
or a list of symbols whose first element is a custom group name.
\(The rest of the symbols represent subcategories and
can be whatever you like.)

LEVEL should be either :debug, :warning, :error, or :emergency
\(but see `warning-minimum-level' and `warning-minimum-log-level').

:emergency -- a problem that will seriously impair Emacs operation soon
	      if you do not attend to it promptly.
:error     -- invalid data or circumstances.
:warning   -- suspicious data or circumstances.
:debug     -- info for debugging only."
  (display-warning type (apply #'format-message message args) level))