From unknown Fri Jun 20 07:13:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27997 <27997@debbugs.gnu.org> To: bug#27997 <27997@debbugs.gnu.org> Subject: Status: pick a better buffer to fill the gap, not one I already see Reply-To: bug#27997 <27997@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:18 +0000 retitle 27997 pick a better buffer to fill the gap, not one I already see reassign 27997 emacs submitter 27997 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 27997 wishlist tag 27997 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 22:12:55 2017 Received: (at submit) by debbugs.gnu.org; 7 Aug 2017 02:12:56 +0000 Received: from localhost ([127.0.0.1]:45119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deXXL-0002at-MD for submit@debbugs.gnu.org; Sun, 06 Aug 2017 22:12:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deXXJ-0002aM-OX for submit@debbugs.gnu.org; Sun, 06 Aug 2017 22:12:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deXXD-0004Zy-Ol for submit@debbugs.gnu.org; Sun, 06 Aug 2017 22:12:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49140) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1deXXD-0004Zq-Lm for submit@debbugs.gnu.org; Sun, 06 Aug 2017 22:12:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deXXC-0001On-72 for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 22:12:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deXX8-0004XR-Ul for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 22:12:46 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:40020 helo=homiemail-a9.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1deXX8-0004X2-P4 for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 22:12:42 -0400 Received: from homiemail-a9.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a9.g.dreamhost.com (Postfix) with ESMTP id CA1A75BE06B for ; Sun, 6 Aug 2017 19:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=6EZjU5deEDeloA7bmP30uS07F4Y=; b=aAuzTl1am+VETSFR ZSGnstq26oIU2A2EzcZgTVV3Z+cToyFZcPWlGWQgnoqJ5ISNl5/hMV+vm9pAl6Dn dN+Skn02cW7aAvkvKxEVT6VWmziJXWAbEHlHwkk7ieS/xk5h+OtWlNbHiEVyUEsT /ZpAKMGj6CGSnZ55w35irZn+2gU= Received: from jidanni.org (114-46-60-214.dynamic-ip.hinet.net [114.46.60.214]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 77E595BE064 for ; Sun, 6 Aug 2017 19:12:41 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: pick a better buffer to fill the gap, not one I already see Date: Mon, 07 Aug 2017 08:37:20 +0800 Message-ID: <87y3qwkybj.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) OK I killed a buffer, so a new one pops in to replace it. Except sometimes the choice of the new one is quite embarrassing: it picks a buffer I'm already looking at while at the same time ignoring a better candidate. $ emacs -Q /tmp/a /tmp/b /tmp/c C-x 1 [delete-other-windows] C-x 4 b [switch-to-buffer-other-window] # Smart enough not to prompt with the name of a buffer I already see. Good. [minibuffer-complete-and-exit] # was prompted with "b", OK C-x k [kill-buffer] # was prompted with "b", OK [minibuffer-complete-and-exit] # killed "b", OK, but... Now I'm staring at two "c" buffers! I would be better served by staring at "a" and "c" buffers. So please when selecting a buffer to fill the gap, again be smart enough not to show a buffer I already see. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 23:50:15 2017 Received: (at 27997) by debbugs.gnu.org; 7 Aug 2017 03:50:15 +0000 Received: from localhost ([127.0.0.1]:45156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deZ3W-0005C4-Lm for submit@debbugs.gnu.org; Sun, 06 Aug 2017 23:50:14 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deZ3T-0005Bf-Sp for 27997@debbugs.gnu.org; Sun, 06 Aug 2017 23:50:12 -0400 Received: by mail-pf0-f194.google.com with SMTP id h75so7829901pfh.5 for <27997@debbugs.gnu.org>; Sun, 06 Aug 2017 20:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=S2JpD/c6ISLdfUWYlcnGYIuEQ0n8UJGowgyeu8T0DC4=; b=aXlN4fuSZbOQEz7RFX1ZLlU9fDmyHRvAqanNRFAXE0fHxiz7fsGy2WElnTYcZYGwLw lHiA1byGJI4dsVPVk1Tzq1wgNaEu6BJ/gQGhDVUhkBaYhs3jLPk8Y8IZCsMr+uePFUUT nTkVG5pW1zoXjD0zRRtfHbMZuU1bOUwuvH4iPAcXzU3orR9TaERJoEg94KACCVXvDWXX ODskpWznIir2tPZdZXxTQXD3Xndc3IzVQaiy1S9Og+Kmti+pDsvzwROhMx6zchNOvrsu rBmUxINof4QlBeW9spXD4aKvaiYAcCssHm/sGzxyYP8NxikachKmVWMRpVwQx8DIK+a/ KXvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=S2JpD/c6ISLdfUWYlcnGYIuEQ0n8UJGowgyeu8T0DC4=; b=j3rUVBAMkktL//9yYcXa4D8cyBJHZdVxGFWN8HvBhO+0q44dZqu4bFgqZ/MknLCxB2 iMjViKsJvRHXEH8inSKiI+TP8Vh/WMjvf1DFC6HJVHd2V+ZFkCKsXWEwUJ+XkZkmNEkv tGxGCYQS/d1yjbanDjwjrJ2JJuF+7IGX0sBUt/+wfSI5yT6dJaoUlHjJcPOLx12KM+nq SZjSC2iRzaTQcbFSvHUCd5PEoGGlLehUvv3AqOs+0BT8sD04B6Kh250vnq0PTdaJmq+W sgEV3hm//eX9m+BgETXFcIrMCL/LS+aQkoXXCZ9G7OE65arPh0ePOgSLAJpPA0yKW1rk 2kZg== X-Gm-Message-State: AIVw111X3iWLEbQ+/E7vbs7BG6BLichVp1ITPwFKGOkiI3VHi08Qegn2 LhjIS3ghFrHJDw== X-Received: by 10.101.86.74 with SMTP id m10mr10147567pgs.79.1502077805707; Sun, 06 Aug 2017 20:50:05 -0700 (PDT) Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id 204sm11719628pga.85.2017.08.06.20.50.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 06 Aug 2017 20:50:04 -0700 (PDT) From: Tino Calancha To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#27997: pick a better buffer to fill the gap, not one I already see References: <87y3qwkybj.fsf@jidanni.org> Date: Mon, 07 Aug 2017 12:49:59 +0900 In-Reply-To: <87y3qwkybj.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Mon, 07 Aug 2017 08:37:20 +0800") Message-ID: <87tw1knijc.fsf@calancha-pc> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27997 Cc: Martin Rudalics , 27997@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > OK I killed a buffer, so a new one pops in to replace it. > > Except sometimes the choice of the new one is quite embarrassing: it > picks a buffer I'm already looking at while at the same time ignoring a > better candidate. > > $ emacs -Q /tmp/a /tmp/b /tmp/c > C-x 1 [delete-other-windows] > C-x 4 b [switch-to-buffer-other-window] # Smart enough not to prompt wit= h the name of a buffer I already see. Good. > [minibuffer-complete-and-exit] # was prompted with "b", OK > C-x k [kill-buffer] # was prompted with "b", OK > [minibuffer-complete-and-exit] # killed "b", OK, but... > > Now I'm staring at two "c" buffers! > I would be better served by staring at "a" and "c" buffers. > > So please when selecting a buffer to fill the gap, > again be smart enough not to show a buffer I already see. The original code pick up the previous buffer shown in that same window. That's a feature; sometimes might be desirable. For instance, ;; Imagine we want to split the window to show two ;; differents parts of a large buffer. emacs -Q src/data.c C-x 3 ; split-window-right M-> ; end-of-buffer M-v ; scroll-down-command ;; Wanna see who commited the line at point. C-x v g ; I see, Daniel was. ;; Some people don't use `quit-window', just `C-x b' and `C-x k' C-x k RET ; This return me where i was ;; Still have src/data.c split in the upper/lower parts. ;; With your suggestion we will have src/data.c in one ;; window and a diferent buffer (*scratch*) in another. IMO, if we follow your suggestion it must be configurable with an option (nil by default). From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 16:03:45 2019 Received: (at 27997) by debbugs.gnu.org; 14 Oct 2019 20:03:45 +0000 Received: from localhost ([127.0.0.1]:41793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK6ZD-0001Ph-5N for submit@debbugs.gnu.org; Mon, 14 Oct 2019 16:03:45 -0400 Received: from [80.91.231.51] (port=38878 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK6ZA-0001PW-SS for 27997@debbugs.gnu.org; Mon, 14 Oct 2019 16:03:41 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iK6Z6-0003Wq-9w; Mon, 14 Oct 2019 22:03:38 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#27997: pick a better buffer to fill the gap, not one I already see References: <87y3qwkybj.fsf@jidanni.org> <87tw1knijc.fsf@calancha-pc> Date: Mon, 14 Oct 2019 22:03:35 +0200 In-Reply-To: <87tw1knijc.fsf@calancha-pc> (Tino Calancha's message of "Mon, 07 Aug 2017 12:49:59 +0900") Message-ID: <87ftjvw0vc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: >> So please when selecting a buffer to fill the gap, >> again be smart enough not to show a buffer I already see. > The original code pick up the previous buffer shown in that same > window. That's a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tino Calancha writes: >> So please when selecting a buffer to fill the gap, >> again be smart enough not to show a buffer I already see. > The original code pick up the previous buffer shown in that same > window. That's a [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 27997 Cc: Martin Rudalics , 27997@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Tino Calancha writes: >> So please when selecting a buffer to fill the gap, >> again be smart enough not to show a buffer I already see. > The original code pick up the previous buffer shown in that same > window. That's a feature; sometimes might be desirable. So this works as designed, and I'm closing this as a "wontfix". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 16:03:47 2019 Received: (at control) by debbugs.gnu.org; 14 Oct 2019 20:03:47 +0000 Received: from localhost ([127.0.0.1]:41796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK6ZG-0001Pz-OW for submit@debbugs.gnu.org; Mon, 14 Oct 2019 16:03:46 -0400 Received: from [80.91.231.51] (port=38894 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK6ZD-0001Pi-LC for control@debbugs.gnu.org; Mon, 14 Oct 2019 16:03:45 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iK6ZA-0003Wy-TA for control@debbugs.gnu.org; Mon, 14 Oct 2019 22:03:42 +0200 Date: Mon, 14 Oct 2019 22:03:40 +0200 Message-Id: <87eezfw0v7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27997 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 27997 wontfix close 27997 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 27997 wontfix close 27997 quit Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) tags 27997 wontfix close 27997 quit From unknown Fri Jun 20 07:13:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 12 Nov 2019 12:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator