aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emms-show-all.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/emms-show-all.el b/lisp/emms-show-all.el
index 09189d6..f37ef5e 100644
--- a/lisp/emms-show-all.el
+++ b/lisp/emms-show-all.el
@@ -63,10 +63,9 @@
(defun emms-show-all-mode-bury-buffer ()
"Bury, and optionally kill the show buffer."
(interactive)
- (bury-buffer emms-show-all-buffer-name)
- (delete-window)
- (when emms-show-all-kill-buffer-on-quit-p
- (kill-buffer emms-show-all-buffer-name)))
+ (quit-restore-window
+ (selected-window)
+ (when emms-show-all-kill-buffer-on-quit-p 'kill)))
(defun emms-show-all-setup-buffer ()
"Prepare the display buffer."