From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21505: 24.4; Buffer order Date: Sun, 20 Feb 2022 15:20:27 +0200 Message-ID: <83y225wu78.fsf@gnu.org> References: <8337yd7hgn.fsf@gnu.org> <877fnppmk0.fsf@gnu.org> <83y4g55yat.fsf@gnu.org> <87zj0lo52a.fsf@gnu.org> <87v8x9u25c.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21505@debbugs.gnu.org, travis.hoppe@gmail.com, monnier@iro.umontreal.ca, tsdh@gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 14:21:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLm9g-0009id-Ip for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 14:21:36 +0100 Original-Received: from localhost ([::1]:48010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLm9f-0007TY-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 08:21:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLm99-0007Qz-U1 for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 08:21:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLm98-0001Yw-0B for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 08:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLm97-0003Aq-Qz for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 08:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Feb 2022 13:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21505 X-GNU-PR-Package: emacs Original-Received: via spool by 21505-submit@debbugs.gnu.org id=B21505.164536323812155 (code B ref 21505); Sun, 20 Feb 2022 13:21:01 +0000 Original-Received: (at 21505) by debbugs.gnu.org; 20 Feb 2022 13:20:38 +0000 Original-Received: from localhost ([127.0.0.1]:59592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLm8k-00039z-B3 for submit@debbugs.gnu.org; Sun, 20 Feb 2022 08:20:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLm8i-00039l-A4 for 21505@debbugs.gnu.org; Sun, 20 Feb 2022 08:20:36 -0500 Original-Received: from [2001:470:142:3::e] (port=56126 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLm8b-0001PA-0S; Sun, 20 Feb 2022 08:20:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xoH0de8vB2/HeLhgi0be8CBEHw+BttMnwMRZvaifnNQ=; b=k5/q4f9oIgiO PNKSIlTvEOYb4YvA2Bs06UDHa3AW9KXj/6A1Ol1KmzY4+s9YFsImCcYw9DJQS1L/SBBK53+hdS8x1 H+8whVDdflbkIuR4gFj3J8OKPE85YVSSbUsWBzwgaWRM3iZFGNh/b84WKRWd9OLlPdyN9nomnEW2+ YZMY+2B/frXN6skIVcha87Dky0BghKsGPR9bUEjC80IDxhTJd65h/ePB/gHdvsJmMEwKd82uOPnuf lFt4Y80AI+xKIWswEP9f5e9bgtDmk6DbWmCxYy7Kxoi4aXBsPZsg+GJDXyfyShrsLxzE2M9QePS6E BEESO0cnP1URBBEVsRHGaA==; Original-Received: from [87.69.77.57] (port=1932 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLm8X-0007WO-Cv; Sun, 20 Feb 2022 08:20:26 -0500 In-Reply-To: <87v8x9u25c.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 20 Feb 2022 13:57:03 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227229 Archived-At: > From: Lars Ingebrigtsen > Cc: Tassilo Horn , Eli Zaretskii , > travis.hoppe@gmail.com, 21505@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.