1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

* lisp/emacs-lisp/warnings.el (lwarn): Empower help-enable-auto-load.

Fixes: debbugs:15940
This commit is contained in:
Glenn Morris 2014-02-08 16:20:12 -08:00
parent c1b5900bc0
commit 2abd71e50c
2 changed files with 8 additions and 0 deletions

View file

@ -306,9 +306,12 @@ See also `warning-series', `warning-prefix-function' and
(set-window-start window warning-series))
(sit-for 0))))))))
;; Use \\<special-mode-map> so that help-enable-auto-load 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 ARGS...).
\\<special-mode-map>
Aside from generating the message with `format',
this is equivalent to `display-warning'.