]> git.eshelyaron.com Git - emacs.git/commitdiff
(buffer-menu): Call pop-to-buffer before
authorRichard M. Stallman <rms@gnu.org>
Tue, 12 Jul 1994 07:31:35 +0000 (07:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 12 Jul 1994 07:31:35 +0000 (07:31 +0000)
list-buffers.  Don't move point afterwards.

lisp/buff-menu.el

index db6da4427d81a5a4230048ec4c0c9158824f0061..24cea7a4db23961965d3b4d49f378e528c5d0b17 100644 (file)
@@ -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)
   (message
    "Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %%; q to quit; ? for help."))