diff options
author | Glenn Morris <rgm@gnu.org> | 2012-08-09 23:53:52 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-08-09 23:53:52 -0700 |
commit | 7aacaf15a2ec7d17e75d94b902fa895d7d196026 (patch) | |
tree | c019a8aa811c8f7d867d424e5ab2d39608588056 /lisp/emacs-lisp/autoload.el | |
parent | 5f168c207f963826f0b13ad2dd5c39d08ae3c664 (diff) | |
download | emacs-7aacaf15a2ec7d17e75d94b902fa895d7d196026.tar.gz |
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).
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 5af666b9ded..e8dd9e8d1b4 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -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))) |