]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-edit-current-message): Make local variables permanent, so
authorKarl Heuer <kwzh@gnu.org>
Tue, 8 Feb 1994 22:26:30 +0000 (22:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 8 Feb 1994 22:26:30 +0000 (22:26 +0000)
the user can safely change major modes during an edit.

lisp/mail/rmailedit.el

index c6c355a5a8ae86bece5bf603f79444b75abaeaf0..700990dadd592b761b022fd65f9c8393d6a09641 100644 (file)
@@ -58,6 +58,7 @@ to return to regular RMAIL:
   (rmail-edit-mode)
   (make-local-variable 'rmail-old-text)
   (setq rmail-old-text (buffer-substring (point-min) (point-max)))
+  (put 'rmail-old-text 'permanent-local t)
   (setq buffer-read-only nil)
   (set-buffer-modified-p (buffer-modified-p))
   ;; Make mode line update.