changeset 8223:e82a71b09d7a

(buffer-menu): Call pop-to-buffer before list-buffers. Don't move point afterwards.
author Richard M. Stallman <rms@gnu.org>
date Tue, 12 Jul 1994 07:31:35 +0000
parents e03e94b14ba4
children 1cc48bdd0c6b
files lisp/buff-menu.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/buff-menu.el	Tue Jul 12 07:25:31 1994 +0000
+++ b/lisp/buff-menu.el	Tue Jul 12 07:31:35 1994 +0000
@@ -163,9 +163,10 @@
 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)
   (message
    "Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %%; q to quit; ? for help."))