diff options
author | Damien Elmes <emms@repose.cx> | 2006-06-08 09:26:00 +0000 |
---|---|---|
committer | Damien Elmes <emms@repose.cx> | 2006-06-08 09:26:00 +0000 |
commit | 3c8a654f4c67af7c44581828fb3a9e89400aae62 (patch) | |
tree | 2672f2b4b47af1fdeb80c04b2aa438af7f778730 | |
parent | 10590679f8cdeb573981e79455fd99dfdf40f54f (diff) |
avoid rebuilding the browser window each time
darcs-hash:20060608092623-4e3e3-34036792deb3f6cc1c2ec4f97c5f81cf9f83291c.gz
-rw-r--r-- | emms-browser.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/emms-browser.el b/emms-browser.el index 1901e98..630873d 100644 --- a/emms-browser.el +++ b/emms-browser.el @@ -139,7 +139,8 @@ The default is to compare case-insensitively." (interactive) (when (or (null emms-browser-buffer) (not (buffer-live-p emms-browser-buffer))) - (setq emms-browser-buffer (emms-browser-new-buffer name))) + (setq emms-browser-buffer (emms-browser-new-buffer name)) + (funcall emms-browser-default-browsing-function)) ;; if the buffer is displayed, switch the window instead (let ((wind (get-buffer-window emms-browser-buffer))) (if wind @@ -356,7 +357,7 @@ configuration." (emms-browser-hide-linked-window))) (t ;; show both - (funcall emms-browser-default-browsing-function))))) + (emms-browser))))) (defun emms-browser-get-linked-buffer () "Return linked buffer (eg browser if playlist is selected." |