summaryrefslogtreecommitdiff
path: root/lisp/buff-menu.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-12 07:31:35 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-12 07:31:35 +0000
commit1501df8963f90fb01ee70f4238e10ad7cfe2a84f (patch)
treebbd3faf4039d13659bf39be753eeecb39435817c /lisp/buff-menu.el
parent8f0933564971434a85f26e1a80eb8b2cdb9bf5e0 (diff)
downloademacs-1501df8963f90fb01ee70f4238e10ad7cfe2a84f.tar.gz
(buffer-menu): Call pop-to-buffer before
list-buffers. Don't move point afterwards.
Diffstat (limited to 'lisp/buff-menu.el')
-rw-r--r--lisp/buff-menu.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index db6da4427d8..24cea7a4db2 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -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."))