Function: byte-compile-enable-warning
byte-compile-enable-warning is an autoloaded and byte-compiled
function defined in bytecomp.el.gz.
Signature
(byte-compile-enable-warning WARNING)
Documentation
Change byte-compile-warnings to enable WARNING.
If byte-compile-warnings is t, do nothing. Otherwise, if the
first element is not, remove WARNING, else add it.
Normally you should let-bind byte-compile-warnings before calling this,
else the global value will be modified.
Probably introduced at or before Emacs version 23.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
;;;###autoload
(defun byte-compile-enable-warning (warning)
"Change `byte-compile-warnings' to enable WARNING.
If `byte-compile-warnings' is t, do nothing. Otherwise, if the
first element is `not', remove WARNING, else add it.
Normally you should let-bind `byte-compile-warnings' before calling this,
else the global value will be modified."
(or (eq byte-compile-warnings t)
(setq byte-compile-warnings
(cond ((eq (car byte-compile-warnings) 'not)
(delq warning byte-compile-warnings))
((memq warning byte-compile-warnings)
byte-compile-warnings)
(t
(append byte-compile-warnings (list warning)))))))