diff options
| author | Karl Heuer | 1994-02-08 22:25:35 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-02-08 22:25:35 +0000 |
| commit | a4b340c510946ba5755e33e50b370bd23e34bdfa (patch) | |
| tree | b661897c2b4d6c4ee213c12d2745fe942a0e9d64 | |
| parent | 2f2ddd1e4a3fdfbd24e54ca50970888a5ffce53b (diff) | |
| download | emacs-a4b340c510946ba5755e33e50b370bd23e34bdfa.tar.gz emacs-a4b340c510946ba5755e33e50b370bd23e34bdfa.zip | |
(rmail-variables): Make local variables permanent, so the user can safely
change major modes during an edit.
| -rw-r--r-- | lisp/mail/rmail.el | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 7d6e0490d97..3641f470673 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -580,7 +580,24 @@ Instead, these commands are available: | |||
| 580 | (user-original-login-name))))))) | 580 | (user-original-login-name))))))) |
| 581 | (make-local-variable 'rmail-keywords) | 581 | (make-local-variable 'rmail-keywords) |
| 582 | ;; this gets generated as needed | 582 | ;; this gets generated as needed |
| 583 | (setq rmail-keywords nil)) | 583 | (setq rmail-keywords nil) |
| 584 | ;; Make everything permanent, in case the user switches major modes | ||
| 585 | ;; during an edit. | ||
| 586 | (put 'revert-buffer-function 'permanent-local t) | ||
| 587 | (put 'rmail-last-label 'permanent-local t) | ||
| 588 | (put 'rmail-last-regexp 'permanent-local t) | ||
| 589 | (put 'rmail-deleted-vector 'permanent-local t) | ||
| 590 | (put 'rmail-summary-buffer 'permanent-local t) | ||
| 591 | (put 'rmail-summary-vector 'permanent-local t) | ||
| 592 | (put 'rmail-current-message 'permanent-local t) | ||
| 593 | (put 'rmail-total-messages 'permanent-local t) | ||
| 594 | (put 'require-final-newline 'permanent-local t) | ||
| 595 | (put 'version-control 'permanent-local t) | ||
| 596 | (put 'file-precious-flag 'permanent-local t) | ||
| 597 | (put 'rmail-message-vector 'permanent-local t) | ||
| 598 | (put 'rmail-last-file 'permanent-local t) | ||
| 599 | (put 'rmail-inbox-list 'permanent-local t) | ||
| 600 | (put 'rmail-keywords 'permanent-local t)) | ||
| 584 | 601 | ||
| 585 | ;; Handle M-x revert-buffer done in an rmail-mode buffer. | 602 | ;; Handle M-x revert-buffer done in an rmail-mode buffer. |
| 586 | (defun rmail-revert (arg noconfirm) | 603 | (defun rmail-revert (arg noconfirm) |