mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 20:29:36 +00:00
Make 'byte-compile-error-on-warn' a safe file variable
* lisp/emacs-lisp/bytecomp.el (byte-compile-error-on-warn): Mark as a safe local variable for boolean values.
This commit is contained in:
parent
9f5d8da5cc
commit
edc06adf96
1 changed files with 5 additions and 0 deletions
|
@ -295,6 +295,11 @@ The information is logged to `byte-compile-log-buffer'."
|
||||||
"If true, the byte-compiler reports warnings with `error'."
|
"If true, the byte-compiler reports warnings with `error'."
|
||||||
:group 'bytecomp
|
:group 'bytecomp
|
||||||
:type 'boolean)
|
:type 'boolean)
|
||||||
|
;; This needs to be autoloaded because it needs to be available to
|
||||||
|
;; Emacs before the byte compiler is loaded, otherwise Emacs will not
|
||||||
|
;; know that this variable is marked as safe until it is too late.
|
||||||
|
;; (See https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00261.html )
|
||||||
|
;;;###autoload(put 'byte-compile-error-on-warn 'safe-local-variable 'booleanp)
|
||||||
|
|
||||||
(defconst byte-compile-warning-types
|
(defconst byte-compile-warning-types
|
||||||
'(redefine callargs free-vars unresolved
|
'(redefine callargs free-vars unresolved
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue