mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(buffer-menu): Undo previous change.
Instead, save the point value that list-buffers set up and go back there after switching windows.
This commit is contained in:
parent
9d00084253
commit
70e808bd5e
@ -163,10 +163,11 @@ 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))
|
||||
;; 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*")
|
||||
(list-buffers arg)
|
||||
(let ((newpoint (save-excursion (set-buffer "*Buffer List*")
|
||||
(point))))
|
||||
(pop-to-buffer "*Buffer List*")
|
||||
(goto-char newpoint))
|
||||
(message
|
||||
"Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %%; q to quit; ? for help."))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user