diff options
| author | Glenn Morris | 2012-08-09 23:53:52 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-08-09 23:53:52 -0700 |
| commit | 7aacaf15a2ec7d17e75d94b902fa895d7d196026 (patch) | |
| tree | c019a8aa811c8f7d867d424e5ab2d39608588056 | |
| parent | 5f168c207f963826f0b13ad2dd5c39d08ae3c664 (diff) | |
| download | emacs-7aacaf15a2ec7d17e75d94b902fa895d7d196026.tar.gz emacs-7aacaf15a2ec7d17e75d94b902fa895d7d196026.zip | |
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).
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 1 | ||||
| -rw-r--r-- | lisp/tutorial.el | 6 |
4 files changed, 16 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7d61d9d69b8..92afc1ab857 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-08-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * tutorial.el (help-with-tutorial): | ||
| 4 | * emacs-lisp/copyright.el (copyright-update-directory): | ||
| 5 | * emacs-lisp/autoload.el (autoload-find-generated-file) | ||
| 6 | (autoload-find-file): Disable local eval: (for insurance). | ||
| 7 | |||
| 1 | 2012-08-07 Glenn Morris <rgm@gnu.org> | 8 | 2012-08-07 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * files.el (hack-local-variables-filter): If an eval: form is not | 10 | * files.el (hack-local-variables-filter): If an eval: form is not |
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)." | |||
| 201 | (defun autoload-find-generated-file () | 201 | (defun autoload-find-generated-file () |
| 202 | "Visit the autoload file for the current buffer, and return its buffer. | 202 | "Visit the autoload file for the current buffer, and return its buffer. |
| 203 | If a buffer is visiting the desired autoload file, return it." | 203 | If a buffer is visiting the desired autoload file, return it." |
| 204 | (let ((enable-local-variables :safe)) | 204 | (let ((enable-local-variables :safe) |
| 205 | (enable-local-eval nil)) | ||
| 205 | ;; We used to use `raw-text' to read this file, but this causes | 206 | ;; We used to use `raw-text' to read this file, but this causes |
| 206 | ;; problems when the file contains non-ASCII characters. | 207 | ;; problems when the file contains non-ASCII characters. |
| 207 | (find-file-noselect | 208 | (find-file-noselect |
| @@ -355,7 +356,8 @@ which lists the file name and which functions are in it, etc." | |||
| 355 | (emacs-lisp-mode) | 356 | (emacs-lisp-mode) |
| 356 | (setq default-directory (file-name-directory file)) | 357 | (setq default-directory (file-name-directory file)) |
| 357 | (insert-file-contents file nil) | 358 | (insert-file-contents file nil) |
| 358 | (let ((enable-local-variables :safe)) | 359 | (let ((enable-local-variables :safe) |
| 360 | (enable-local-eval nil)) | ||
| 359 | (hack-local-variables)) | 361 | (hack-local-variables)) |
| 360 | (current-buffer))) | 362 | (current-buffer))) |
| 361 | 363 | ||
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 09b456b54ba..0da5b2abbb8 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -366,6 +366,7 @@ If FIX is non-nil, run `copyright-fix-years' instead." | |||
| 366 | (find-file file) | 366 | (find-file file) |
| 367 | (let ((inhibit-read-only t) | 367 | (let ((inhibit-read-only t) |
| 368 | (enable-local-variables :safe) | 368 | (enable-local-variables :safe) |
| 369 | (enable-local-eval nil) | ||
| 369 | copyright-query) | 370 | copyright-query) |
| 370 | (if fix | 371 | (if fix |
| 371 | (copyright-fix-years) | 372 | (copyright-fix-years) |
diff --git a/lisp/tutorial.el b/lisp/tutorial.el index b512700f5b9..e43c878a17f 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el | |||
| @@ -830,7 +830,8 @@ Run the Viper tutorial? ")) | |||
| 830 | (if old-tut-file | 830 | (if old-tut-file |
| 831 | (progn | 831 | (progn |
| 832 | (insert-file-contents (tutorial--saved-file)) | 832 | (insert-file-contents (tutorial--saved-file)) |
| 833 | (let ((enable-local-variables :safe)) | 833 | (let ((enable-local-variables :safe) |
| 834 | (enable-local-eval nil)) | ||
| 834 | (hack-local-variables)) | 835 | (hack-local-variables)) |
| 835 | ;; FIXME? What we actually want is to ignore dir-locals (?). | 836 | ;; FIXME? What we actually want is to ignore dir-locals (?). |
| 836 | (setq buffer-read-only nil) ; bug#11118 | 837 | (setq buffer-read-only nil) ; bug#11118 |
| @@ -849,7 +850,8 @@ Run the Viper tutorial? ")) | |||
| 849 | (goto-char tutorial--point-before-chkeys) | 850 | (goto-char tutorial--point-before-chkeys) |
| 850 | (setq tutorial--point-before-chkeys (point-marker))) | 851 | (setq tutorial--point-before-chkeys (point-marker))) |
| 851 | (insert-file-contents (expand-file-name filename tutorial-directory)) | 852 | (insert-file-contents (expand-file-name filename tutorial-directory)) |
| 852 | (let ((enable-local-variables :safe)) | 853 | (let ((enable-local-variables :safe) |
| 854 | (enable-local-eval nil)) | ||
| 853 | (hack-local-variables)) | 855 | (hack-local-variables)) |
| 854 | ;; FIXME? What we actually want is to ignore dir-locals (?). | 856 | ;; FIXME? What we actually want is to ignore dir-locals (?). |
| 855 | (setq buffer-read-only nil) ; bug#11118 | 857 | (setq buffer-read-only nil) ; bug#11118 |