Commit cf6ce50b authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(electric-buffer-list): Use list-buffers-noselect.

parent 3da17c12
......@@ -58,8 +58,8 @@ Calls value of `electric-buffer-menu-mode-hook' on entry if non-nil.
(interactive "P")
(let (select buffer)
(save-window-excursion
(save-window-excursion (list-buffers arg))
(setq buffer (window-buffer (Electric-pop-up-window "*Buffer List*")))
(setq buffer (list-buffers-noselect arg))
(Electric-pop-up-window buffer)
(unwind-protect
(progn
(set-buffer 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