Commit 1ad59104 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(rmail-quit): Call quit-window before calling

replace-buffer-in-windows to assure that we can switch the rmail
buffer of the selected window.
parent e3a87305
...@@ -966,8 +966,8 @@ Instead, these commands are available: ...@@ -966,8 +966,8 @@ Instead, these commands are available:
(replace-buffer-in-windows rmail-summary-buffer) (replace-buffer-in-windows rmail-summary-buffer)
(bury-buffer rmail-summary-buffer)) (bury-buffer rmail-summary-buffer))
(let ((obuf (current-buffer))) (let ((obuf (current-buffer)))
(replace-buffer-in-windows obuf) (quit-window)
(quit-window))) (replace-buffer-in-windows obuf)))
(defun rmail-bury () (defun rmail-bury ()
"Bury current Rmail buffer and its summary buffer." "Bury current Rmail buffer and its summary buffer."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment