# HG changeset patch # User Karl Heuer # Date 760746335 0 # Node ID dc5249a2395770c1703670c389481977ee34f13c # Parent d0fc9207705a3fe44e1710267931587949653eb3 (rmail-variables): Make local variables permanent, so the user can safely change major modes during an edit. diff -r d0fc9207705a -r dc5249a23957 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Tue Feb 08 18:22:09 1994 +0000 +++ b/lisp/mail/rmail.el Tue Feb 08 22:25:35 1994 +0000 @@ -580,7 +580,24 @@ (user-original-login-name))))))) (make-local-variable 'rmail-keywords) ;; this gets generated as needed - (setq rmail-keywords nil)) + (setq rmail-keywords nil) + ;; Make everything permanent, in case the user switches major modes + ;; during an edit. + (put 'revert-buffer-function 'permanent-local t) + (put 'rmail-last-label 'permanent-local t) + (put 'rmail-last-regexp 'permanent-local t) + (put 'rmail-deleted-vector 'permanent-local t) + (put 'rmail-summary-buffer 'permanent-local t) + (put 'rmail-summary-vector 'permanent-local t) + (put 'rmail-current-message 'permanent-local t) + (put 'rmail-total-messages 'permanent-local t) + (put 'require-final-newline 'permanent-local t) + (put 'version-control 'permanent-local t) + (put 'file-precious-flag 'permanent-local t) + (put 'rmail-message-vector 'permanent-local t) + (put 'rmail-last-file 'permanent-local t) + (put 'rmail-inbox-list 'permanent-local t) + (put 'rmail-keywords 'permanent-local t)) ;; Handle M-x revert-buffer done in an rmail-mode buffer. (defun rmail-revert (arg noconfirm)