changeset 22474:927f6e2f680b

(rmail-variables): Locally bind local-enable-local-variables, not enable-local-variables. (rmail): Don't switch buffers inside the binding of enable-local-variables.
author Richard M. Stallman <rms@gnu.org>
date Sat, 13 Jun 1998 06:01:41 +0000
parents 74e7682de297
children 3bd923346a65
files lisp/mail/rmail.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Sat Jun 13 06:01:11 1998 +0000
+++ b/lisp/mail/rmail.el	Sat Jun 13 06:01:41 1998 +0000
@@ -511,8 +511,9 @@
 		   (eq major-mode 'rmail-mode))
 	      (progn (rmail-forget-messages)
 		     (rmail-set-message-counters))))
-      (let ((enable-local-variables nil))
-	(find-file file-name)))
+      (switch-to-buffer 
+       (let ((enable-local-variables nil))
+	 (find-file-noselect file-name))))
     (if (eq major-mode 'rmail-edit-mode)
 	(error "Exit Rmail Edit mode before getting new mail"))
     (if (and existed (> (buffer-size) 0))
@@ -942,8 +943,8 @@
     (setq save-buffer-coding-system (or buffer-file-coding-system 'undecided))
     (setq buffer-file-coding-system nil))
   ;; Don't let a local variables list in a message cause confusion.
-  (make-local-variable 'enable-local-variables)
-  (setq enable-local-variables nil)
+  (make-local-variable 'local-enable-local-variables)
+  (setq local-enable-local-variables nil)
   (make-local-variable 'revert-buffer-function)
   (setq revert-buffer-function 'rmail-revert)
   (make-local-variable 'font-lock-defaults)