From 95df1c69c6a7b2c8085115d651cf90756cc338a1 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Wed, 13 Jun 2018 23:43:50 -0400 Subject: * lisp/emms-show-all.el: bug fix: bad behavior Fix quitting the window so that it behaves well. Bug report by Fran Burstall. --- lisp/emms-show-all.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lisp') 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." -- cgit v1.2.3