[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 edc06ad: Make 'byte-compile-error-on-warn' a safe
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 edc06ad: Make 'byte-compile-error-on-warn' a safe file variable |
Date: |
Fri, 16 Feb 2018 10:52:44 -0500 (EST) |
branch: emacs-26
commit edc06adf96f4aa9d8b707181015acfe61d396edb
Author: Robert Cochran <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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.
---
lisp/emacs-lisp/bytecomp.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 700a7c1..c179ffc 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'."
"If true, the byte-compiler reports warnings with `error'."
:group 'bytecomp
: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
'(redefine callargs free-vars unresolved
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 edc06ad: Make 'byte-compile-error-on-warn' a safe file variable,
Eli Zaretskii <=