1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00

(rmail-old-pruned): New permanent local.

(rmail-edit-current-message): Set rmail-old-pruned, then display full headers.
(rmail-cease-edit): rmail-old-pruned controls whether to prune headers.
This commit is contained in:
Richard M. Stallman 1998-05-27 21:06:10 +00:00
parent 903e09b79c
commit 77fb89636c

View file

@ -61,10 +61,16 @@ to return to regular RMAIL:
(rmail-summary-disable)))
(run-hooks 'rmail-edit-mode-hook))
(defvar rmail-old-pruned nil)
(put 'rmail-old-pruned 'permanent-local t)
;;;###autoload
(defun rmail-edit-current-message ()
"Edit the contents of this message."
(interactive)
(make-local-variable 'rmail-old-pruned)
(setq rmail-old-pruned (rmail-msg-is-pruned))
(rmail-toggle-header 0)
(rmail-edit-mode)
(make-local-variable 'rmail-old-text)
(setq rmail-old-text (buffer-substring (point-min) (point-max)))
@ -114,7 +120,8 @@ to return to regular RMAIL:
(progn (forward-line 1)
(point))))))))))))
(save-excursion
(rmail-show-message)))
(rmail-show-message)
(rmail-toggle-header (if rmail-old-pruned 1 0))))
(setq buffer-read-only t))
(defun rmail-abort-edit ()