Disable local eval: in some places
* tutorial.el (help-with-tutorial): * emacs-lisp/copyright.el (copyright-update-directory): * emacs-lisp/autoload.el (autoload-find-generated-file) (autoload-find-file): Disable local eval: (for insurance).
This commit is contained in:
parent
5f168c207f
commit
7aacaf15a2
4 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2012-08-10 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* tutorial.el (help-with-tutorial):
|
||||
* emacs-lisp/copyright.el (copyright-update-directory):
|
||||
* emacs-lisp/autoload.el (autoload-find-generated-file)
|
||||
(autoload-find-file): Disable local eval: (for insurance).
|
||||
|
||||
2012-08-07 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* files.el (hack-local-variables-filter): If an eval: form is not
|
||||
|
|
|
@ -201,7 +201,8 @@ or macro definition or a defcustom)."
|
|||
(defun autoload-find-generated-file ()
|
||||
"Visit the autoload file for the current buffer, and return its buffer.
|
||||
If a buffer is visiting the desired autoload file, return it."
|
||||
(let ((enable-local-variables :safe))
|
||||
(let ((enable-local-variables :safe)
|
||||
(enable-local-eval nil))
|
||||
;; We used to use `raw-text' to read this file, but this causes
|
||||
;; problems when the file contains non-ASCII characters.
|
||||
(find-file-noselect
|
||||
|
@ -355,7 +356,8 @@ which lists the file name and which functions are in it, etc."
|
|||
(emacs-lisp-mode)
|
||||
(setq default-directory (file-name-directory file))
|
||||
(insert-file-contents file nil)
|
||||
(let ((enable-local-variables :safe))
|
||||
(let ((enable-local-variables :safe)
|
||||
(enable-local-eval nil))
|
||||
(hack-local-variables))
|
||||
(current-buffer)))
|
||||
|
||||
|
|
|
@ -366,6 +366,7 @@ If FIX is non-nil, run `copyright-fix-years' instead."
|
|||
(find-file file)
|
||||
(let ((inhibit-read-only t)
|
||||
(enable-local-variables :safe)
|
||||
(enable-local-eval nil)
|
||||
copyright-query)
|
||||
(if fix
|
||||
(copyright-fix-years)
|
||||
|
|
|
@ -830,7 +830,8 @@ Run the Viper tutorial? "))
|
|||
(if old-tut-file
|
||||
(progn
|
||||
(insert-file-contents (tutorial--saved-file))
|
||||
(let ((enable-local-variables :safe))
|
||||
(let ((enable-local-variables :safe)
|
||||
(enable-local-eval nil))
|
||||
(hack-local-variables))
|
||||
;; FIXME? What we actually want is to ignore dir-locals (?).
|
||||
(setq buffer-read-only nil) ; bug#11118
|
||||
|
@ -849,7 +850,8 @@ Run the Viper tutorial? "))
|
|||
(goto-char tutorial--point-before-chkeys)
|
||||
(setq tutorial--point-before-chkeys (point-marker)))
|
||||
(insert-file-contents (expand-file-name filename tutorial-directory))
|
||||
(let ((enable-local-variables :safe))
|
||||
(let ((enable-local-variables :safe)
|
||||
(enable-local-eval nil))
|
||||
(hack-local-variables))
|
||||
;; FIXME? What we actually want is to ignore dir-locals (?).
|
||||
(setq buffer-read-only nil) ; bug#11118
|
||||
|
|
Loading…
Add table
Reference in a new issue