Commit 95b9ce23 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(buffer-menu): Call pop-to-buffer before

list-buffers.  Don't move point afterwards.
parent 8eeac2ce
......@@ -163,9 +163,10 @@ Type q immediately to make the buffer menu go away and to restore
previous window configuration."
(interactive "P")
;;; (setq Buffer-menu-window-config (current-window-configuration))
(list-buffers arg)
;; This order seems to let list-buffers set the value of point
;; regardless of whether we are using the same buffer or another.
(pop-to-buffer "*Buffer List*")
(forward-line 2)
(list-buffers arg)
"Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %%; q to quit; ? for help."))
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