summaryrefslogtreecommitdiff
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-05-20 16:27:59 +0000
committerRichard M. Stallman <rms@gnu.org>2001-05-20 16:27:59 +0000
commit640cf49699431d8481441ad1f2f84590abdce7a6 (patch)
tree2c473d9e728dc035eb3d8a34872eb03213fb8ed4 /lisp/startup.el
parente5d2c3c9bd452b08ebd336d8b965a6bfa3c97713 (diff)
downloademacs-640cf49699431d8481441ad1f2f84590abdce7a6.tar.gz
(command-line-1): When >2 files visited,
leave the last one visible, and make that the selected window.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 84266811be1..e99c0bacdbe 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1593,12 +1593,11 @@ Type \\[describe-distribution] for information on getting the latest version."))
(goto-line line))
(setq line 0))))))))
;; If 3 or more files visited, and not all visible,
- ;; show user what they all are.
+ ;; show user what they all are. But leave the last one current.
(and (> file-count 2)
(not noninteractive)
(or (get-buffer-window first-file-buffer)
- (progn (other-window 1)
- (buffer-menu)))))))
+ (list-buffers))))))
(defun command-line-normalize-file-name (file)