1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Autoload byte-compile-warning-enabled-p

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-enabled-p):
Autoloads (for easier use in macroexp etc).
This commit is contained in:
Lars Ingebrigtsen 2021-12-01 04:54:59 +01:00
parent a4cf68af2b
commit a8c067591e

View file

@ -344,6 +344,7 @@ suppress. For example, (not mapcar) will suppress warnings about mapcar."
(or (symbolp v) (or (symbolp v)
(null (delq nil (mapcar (lambda (x) (not (symbolp x))) v)))))) (null (delq nil (mapcar (lambda (x) (not (symbolp x))) v))))))
;;;###autoload
(defun byte-compile-warning-enabled-p (warning &optional symbol) (defun byte-compile-warning-enabled-p (warning &optional symbol)
"Return non-nil if WARNING is enabled, according to `byte-compile-warnings'." "Return non-nil if WARNING is enabled, according to `byte-compile-warnings'."
(let ((suppress nil)) (let ((suppress nil))