aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-02-19 19:11:03 +0000
committerRichard M. Stallman1995-02-19 19:11:03 +0000
commit4c11ca80f4f29193070f2d551e6f47510e4cdbba (patch)
tree7b9996e3a5a9a7ec64c56df98626cc7a1c19135d
parent4bc7e3ad6211813a6f3afa7a938e718f8663035c (diff)
downloademacs-4c11ca80f4f29193070f2d551e6f47510e4cdbba.tar.gz
emacs-4c11ca80f4f29193070f2d551e6f47510e4cdbba.zip
(rmail-summary-mail, rmail-summary-continue)
(rmail-summary-reply, rmail-summary-retry-failure) (rmail-summary-forward, rmail-summary-resend): Switch to rmail buffer's window first, so mail buffer replaces summary.
-rw-r--r--lisp/mail/rmailsum.el30
1 files changed, 25 insertions, 5 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index bb8060c5442..76a31c1f0a4 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -1184,7 +1184,11 @@ Completion is performed over known labels when reading."
1184While composing the message, use \\[mail-yank-original] to yank the 1184While composing the message, use \\[mail-yank-original] to yank the
1185original message into it." 1185original message into it."
1186 (interactive) 1186 (interactive)
1187 (rmail-start-mail nil nil nil nil nil rmail-buffer) 1187 (let ((window (get-buffer-window rmail-buffer)))
1188 (if window
1189 (select-window window)
1190 (set-buffer rmail-buffer)))
1191 (rmail-start-mail nil nil nil nil nil (current-buffer))
1188 (use-local-map (copy-keymap (current-local-map))) 1192 (use-local-map (copy-keymap (current-local-map)))
1189 (define-key (current-local-map) 1193 (define-key (current-local-map)
1190 "\C-c\C-c" 'rmail-summary-send-and-exit)) 1194 "\C-c\C-c" 'rmail-summary-send-and-exit))
@@ -1192,6 +1196,10 @@ original message into it."
1192(defun rmail-summary-continue () 1196(defun rmail-summary-continue ()
1193 "Continue composing outgoing message previously being composed." 1197 "Continue composing outgoing message previously being composed."
1194 (interactive) 1198 (interactive)
1199 (let ((window (get-buffer-window rmail-buffer)))
1200 (if window
1201 (select-window window)
1202 (set-buffer rmail-buffer)))
1195 (rmail-start-mail t)) 1203 (rmail-start-mail t))
1196 1204
1197(defun rmail-summary-reply (just-sender) 1205(defun rmail-summary-reply (just-sender)
@@ -1200,7 +1208,10 @@ Normally include CC: to all other recipients of original message;
1200prefix argument means ignore them. While composing the reply, 1208prefix argument means ignore them. While composing the reply,
1201use \\[mail-yank-original] to yank the original message into it." 1209use \\[mail-yank-original] to yank the original message into it."
1202 (interactive "P") 1210 (interactive "P")
1203 (set-buffer rmail-buffer) 1211 (let ((window (get-buffer-window rmail-buffer)))
1212 (if window
1213 (select-window window)
1214 (set-buffer rmail-buffer)))
1204 (rmail-reply just-sender) 1215 (rmail-reply just-sender)
1205 (use-local-map (copy-keymap (current-local-map))) 1216 (use-local-map (copy-keymap (current-local-map)))
1206 (define-key (current-local-map) 1217 (define-key (current-local-map)
@@ -1211,7 +1222,10 @@ use \\[mail-yank-original] to yank the original message into it."
1211For a message rejected by the mail system, extract the interesting headers and 1222For a message rejected by the mail system, extract the interesting headers and
1212the body of the original message; otherwise copy the current message." 1223the body of the original message; otherwise copy the current message."
1213 (interactive) 1224 (interactive)
1214 (set-buffer rmail-buffer) 1225 (let ((window (get-buffer-window rmail-buffer)))
1226 (if window
1227 (select-window window)
1228 (set-buffer rmail-buffer)))
1215 (rmail-retry-failure) 1229 (rmail-retry-failure)
1216 (use-local-map (copy-keymap (current-local-map))) 1230 (use-local-map (copy-keymap (current-local-map)))
1217 (define-key (current-local-map) 1231 (define-key (current-local-map)
@@ -1228,7 +1242,10 @@ With prefix argument, \"resend\" the message instead of forwarding it;
1228see the documentation of `rmail-resend'." 1242see the documentation of `rmail-resend'."
1229 (interactive "P") 1243 (interactive "P")
1230 (save-excursion 1244 (save-excursion
1231 (set-buffer rmail-buffer) 1245 (let ((window (get-buffer-window rmail-buffer)))
1246 (if window
1247 (select-window window)
1248 (set-buffer rmail-buffer)))
1232 (rmail-forward resend) 1249 (rmail-forward resend)
1233 (use-local-map (copy-keymap (current-local-map))) 1250 (use-local-map (copy-keymap (current-local-map)))
1234 (define-key (current-local-map) 1251 (define-key (current-local-map)
@@ -1238,7 +1255,10 @@ see the documentation of `rmail-resend'."
1238 "Resend current message using 'rmail-resend'." 1255 "Resend current message using 'rmail-resend'."
1239 (interactive) 1256 (interactive)
1240 (save-excursion 1257 (save-excursion
1241 (set-buffer rmail-buffer) 1258 (let ((window (get-buffer-window rmail-buffer)))
1259 (if window
1260 (select-window window)
1261 (set-buffer rmail-buffer)))
1242 (call-interactively 'rmail-resend))) 1262 (call-interactively 'rmail-resend)))
1243 1263
1244;; Summary output commands. 1264;; Summary output commands.