Commit f0456945 authored by Karl Heuer's avatar Karl Heuer
Browse files

(rmail-edit-current-message): Make local variables permanent, so

the user can safely change major modes during an edit.
parent a4b340c5
......@@ -58,6 +58,7 @@ to return to regular RMAIL:
(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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment