diff lisp/vm/vm-reply.el @ 140:585fb297b004 r20-2b4

Import from CVS: tag r20-2b4
author cvs
date Mon, 13 Aug 2007 09:32:43 +0200
parents b980b6286996
children 43dd3413c7c7
line wrap: on
line diff
--- a/lisp/vm/vm-reply.el	Mon Aug 13 09:31:48 2007 +0200
+++ b/lisp/vm/vm-reply.el	Mon Aug 13 09:32:43 2007 +0200
@@ -438,19 +438,19 @@
       (let ((this-command this-command))
 	(save-excursion
 	  (mail-send))))
+    ;; be careful, something could have killed the composition
+    ;; buffer inside mail-send.
+    (if (eq (current-buffer) composition-buffer)
+	(progn
+	  (vm-rename-current-mail-buffer)
+	  (vm-keep-mail-buffer (current-buffer))))
     (cond ((eq vm-system-state 'replying)
 	   (vm-mail-mark-replied))
 	  ((eq vm-system-state 'forwarding)
 	   (vm-mail-mark-forwarded))
 	  ((eq vm-system-state 'redistributing)
 	   (vm-mail-mark-redistributed)))
-    (vm-display nil nil '(vm-mail-send) '(vm-mail-send))
-    ;; be careful, something could have killed the composition
-    ;; buffer inside mail-send.
-    (if (eq (current-buffer) composition-buffer)
-	(progn
-	  (vm-rename-current-mail-buffer)
-	  (vm-keep-mail-buffer (current-buffer))))))
+    (vm-display nil nil '(vm-mail-send) '(vm-mail-send))))
 
 (defun vm-mail-mode-get-header-contents (header-name-regexp)
   (let ((contents nil)