diff options
| author | Robert Cochran | 2018-02-16 17:51:06 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-02-16 17:51:06 +0200 |
| commit | edc06adf96f4aa9d8b707181015acfe61d396edb (patch) | |
| tree | 460c43aec02e3cf5175bf7ebbf442794e36af58e | |
| parent | 9f5d8da5cce9ec20d9272df60b10efd8a09b94a9 (diff) | |
| download | emacs-edc06adf96f4aa9d8b707181015acfe61d396edb.tar.gz emacs-edc06adf96f4aa9d8b707181015acfe61d396edb.zip | |
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.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 700a7c16b58..c179ffcafd6 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -295,6 +295,11 @@ The information is logged to `byte-compile-log-buffer'." | |||
| 295 | "If true, the byte-compiler reports warnings with `error'." | 295 | "If true, the byte-compiler reports warnings with `error'." |
| 296 | :group 'bytecomp | 296 | :group 'bytecomp |
| 297 | :type 'boolean) | 297 | :type 'boolean) |
| 298 | ;; This needs to be autoloaded because it needs to be available to | ||
| 299 | ;; Emacs before the byte compiler is loaded, otherwise Emacs will not | ||
| 300 | ;; know that this variable is marked as safe until it is too late. | ||
| 301 | ;; (See https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00261.html ) | ||
| 302 | ;;;###autoload(put 'byte-compile-error-on-warn 'safe-local-variable 'booleanp) | ||
| 298 | 303 | ||
| 299 | (defconst byte-compile-warning-types | 304 | (defconst byte-compile-warning-types |
| 300 | '(redefine callargs free-vars unresolved | 305 | '(redefine callargs free-vars unresolved |