aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorGlenn Morris2009-01-31 02:51:18 +0000
committerGlenn Morris2009-01-31 02:51:18 +0000
commit603c5d8d67c202f99262acb7b569ca9c2203c48f (patch)
tree17805f82b011614ae8b9fea3871ffe0532864783 /lisp/mail
parent9f08b1415dcb5291bdbb036acab9bc22c076768b (diff)
downloademacs-603c5d8d67c202f99262acb7b569ca9c2203c48f.tar.gz
emacs-603c5d8d67c202f99262acb7b569ca9c2203c48f.zip
(rmail-msg-is-pruned): New (restored) function.
(rmail-toggle-header): Doc fix. Use rmail-msg-is-pruned. (rmail-reply): Set up to yank from the decoded message rather than the raw one. (Bug#2104).
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index c960e8e413e..22774ba3340 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2353,18 +2353,22 @@ the message. Point is at the beginning of the message."
2353 2353
2354;;;; *** Rmail Message Formatting and Header Manipulation *** 2354;;;; *** Rmail Message Formatting and Header Manipulation ***
2355 2355
2356;; This is used outside of rmail.
2357(defun rmail-msg-is-pruned ()
2358 "Return nil if the current message is showing full headers."
2359 (with-current-buffer (if (rmail-buffers-swapped-p) rmail-view-buffer
2360 rmail-buffer)
2361 (eq rmail-header-style 'normal)))
2362
2356(defun rmail-toggle-header (&optional arg) 2363(defun rmail-toggle-header (&optional arg)
2357 "Show original message header if pruned header currently shown, or vice versa. 2364 "Toggle between showing full and normal message headers.
2358With argument ARG, show the message header pruned if ARG is greater than zero; 2365With optional integer ARG, show the normal message header if ARG
2359otherwise, show it in full." 2366is greater than zero; otherwise, show it in full."
2360 (interactive "P") 2367 (interactive "P")
2361 (let ((rmail-header-style 2368 (let ((rmail-header-style
2362 (if (numberp arg) 2369 (if (numberp arg)
2363 (if (> arg 0) 'normal 'full) 2370 (if (> arg 0) 'normal 'full)
2364 (with-current-buffer (if (rmail-buffers-swapped-p) 2371 (if (rmail-msg-is-pruned) 'full 'normal))))
2365 rmail-view-buffer
2366 rmail-buffer)
2367 (if (eq rmail-header-style 'full) 'normal 'full)))))
2368 (rmail-show-message-maybe))) 2372 (rmail-show-message-maybe)))
2369 2373
2370(defun rmail-beginning-of-message () 2374(defun rmail-beginning-of-message ()
@@ -3367,7 +3371,9 @@ use \\[mail-yank-original] to yank the original message into it."
3367 (mail-strip-quoted-names 3371 (mail-strip-quoted-names
3368 (if (null cc) to (concat to ", " cc)))))) 3372 (if (null cc) to (concat to ", " cc))))))
3369 (if (string= cc-list "") nil cc-list))) 3373 (if (string= cc-list "") nil cc-list)))
3370 rmail-view-buffer 3374 (if (rmail-buffers-swapped-p)
3375 rmail-buffer
3376 rmail-view-buffer)
3371 (list (list 'rmail-mark-message 3377 (list (list 'rmail-mark-message
3372 rmail-buffer 3378 rmail-buffer
3373 (with-current-buffer rmail-buffer 3379 (with-current-buffer rmail-buffer