GNU bug report logs -
#21505
24.4; Buffer order
Previous Next
Reported by: hoppe <travis.hoppe <at> gmail.com>
Date: Thu, 17 Sep 2015 04:57:04 UTC
Severity: wishlist
Tags: confirmed, moreinfo
Found in version 24.4
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Tassilo Horn <tsdh <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>,
> travis.hoppe <at> gmail.com, 21505 <at> debbugs.gnu.org
> Date: Sun, 20 Feb 2022 13:57:03 +0100
>
> But I'm wondering -- why is Emacs popping up a *Buffer List* window when
> you ask it to open two files?
It doesn't. It only shows *Buffer List* when you as it to visit 3 or
more files. This is explicitly coded in command-line-1:
;; Display the first two buffers in `displayable-buffers'. If
;; `initial-buffer-choice' is non-nil, its buffer will be the
;; first buffer in `displayable-buffers'. The first buffer will
;; be focused.
(let ((displayable-buffers-len (length displayable-buffers))
;; `nondisplayed-buffers-p' is true if there exist buffers
;; in `displayable-buffers' that were not displayed to the
;; user.
(nondisplayed-buffers-p nil))
(when (> displayable-buffers-len 0)
(switch-to-buffer (car displayable-buffers)))
(when (> displayable-buffers-len 1)
(switch-to-buffer-other-window (car (cdr displayable-buffers)))
;; Focus on the first buffer.
(other-window -1))
(when (> displayable-buffers-len 2) <<<<<<<<<<<<<<<<<<<<<<<<<<<<
(setq nondisplayed-buffers-p t))
> I'd have thought the obvious thing to do in this situation is to
> open as many windows as there are files (if possible)?
I guess the rationale is that with too many files visited we cannot be
sure which of them the user would like to see first, and we don't want
to show them all, lest the windows become too small.
> Or open a single window displaying the first file specified
> (and then have the rest be in the next-buffer order you describe).
That'd be less useful than what we do now with 2 files, IMO.
This bug report was last modified 3 years and 91 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.