(rmail-quit): Call quit-window before calling
authorKenichi Handa <handa@m17n.org>
Mon, 16 Mar 1998 05:58:11 +0000 (05:58 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 16 Mar 1998 05:58:11 +0000 (05:58 +0000)
replace-buffer-in-windows to assure that we can switch the rmail
buffer of the selected window.

lisp/mail/rmail.el

index 7de2b77..5f46384 100644 (file)
@@ -966,8 +966,8 @@ Instead, these commands are available:
     (replace-buffer-in-windows rmail-summary-buffer)
     (bury-buffer rmail-summary-buffer))
   (let ((obuf (current-buffer)))
-    (replace-buffer-in-windows obuf)
-    (quit-window)))
+    (quit-window)
+    (replace-buffer-in-windows obuf)))
 
 (defun rmail-bury ()
   "Bury current Rmail buffer and its summary buffer."