aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2018-06-13 23:43:50 -0400
committerYoni Rabkin <yoni@rabkins.net>2018-06-13 23:43:50 -0400
commit95df1c69c6a7b2c8085115d651cf90756cc338a1 (patch)
treea7db696ebb4d8dc2013f2be07671b1387edb80e4 /lisp
parent536fd3307c2004b0d6da55a818a4977e822e109f (diff)
* lisp/emms-show-all.el: bug fix: bad behavior
Fix quitting the window so that it behaves well. Bug report by Fran Burstall.
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."