From unknown Mon Jun 23 23:49:28 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#17048 <17048@debbugs.gnu.org> To: bug#17048 <17048@debbugs.gnu.org> Subject: Status: minibuffer history should filter out impossible entries Reply-To: bug#17048 <17048@debbugs.gnu.org> Date: Tue, 24 Jun 2025 06:49:28 +0000 retitle 17048 minibuffer history should filter out impossible entries reassign 17048 emacs submitter 17048 Jakub Jankiewicz severity 17048 wishlist tag 17048 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 20 07:10:29 2014 Received: (at submit) by debbugs.gnu.org; 20 Mar 2014 11:10:29 +0000 Received: from localhost ([127.0.0.1]:41896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQark-0008HX-R2 for submit@debbugs.gnu.org; Thu, 20 Mar 2014 07:10:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55631) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQarf-0008HM-Bf for submit@debbugs.gnu.org; Thu, 20 Mar 2014 07:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQarZ-0006oz-Hd for submit@debbugs.gnu.org; Thu, 20 Mar 2014 07:10:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQarZ-0006ov-Ea for submit@debbugs.gnu.org; Thu, 20 Mar 2014 07:10:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQarU-0005LX-6O for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 07:10:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQarN-0006ee-QJ for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 07:10:12 -0400 Received: from smtpo09.poczta.onet.pl ([213.180.142.140]:54926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQarN-0006b5-Fr for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 07:10:05 -0400 Received: from jcubic (acko27.neoplus.adsl.tpnet.pl [83.10.90.27]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jcubic@onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3fqQPk09ZHz9v2vV for ; Thu, 20 Mar 2014 12:10:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onet.pl; s=2011; t=1395313802; bh=TETmvtWSRaRr1Ys8SCfjh0tt8/8R3ZT7PjjyXX3286k=; h=Date:From:To:Subject:Message-ID:Mime-Version:Content-Type; b=jsm3+K+2YfqBumZfGP3knUeGhYyCddexVMXiGzpPgDFnAUsrmPpKqKLk+djWlpMfi mw++mQRPaedH2zS0ULb7cOPKuMEmNYyhgH7Olf2AwtApW0XsIxVeQC04flZG4AwhDV A+A7o7BL1F3vHUP3nBlNIyeLqKbRJJG1FgT4JPv4= Date: Thu, 20 Mar 2014 12:10:01 +0100 From: Jakub Jankiewicz To: bug-gnu-emacs@gnu.org Subject: switch-to-buffer function show killed buffers names Message-ID: <20140320121001.14c43fa4@jcubic> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/B.YZMm/H5iT/vpi6DtSFld_"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.1 (----) --Sig_/B.YZMm/H5iT/vpi6DtSFld_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, When I call switch-to-buffer function and then when I ress up/down arrows the list show buffers that I've kill, even that when I press Tab that buffers don't show on the list. The same happen if I search for buffer but it seems that it don= 't search from the beginning and I need to call C-s again to show killed buffe= r. Maybe it's another bug that isearch-forward with switch-to-buffer don't search from the beginning. I think that problem is that kill-buffer don't remove entry from Vbuffer_alist even that it call this (buffer.c line 1594) Vbuffer_alist =3D Fdelq (Frassq (buffer, Vbuffer_alist), Vbuffer_alist); emacs-version: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-07-27 on roseapple, modified by Debian Regards Jakub -- =F0=9D=91=B1=F0=9D=92=82=F0=9D=92=8C=F0=9D=92=96=F0=9D=92=83 =F0=9D=91=B1= =F0=9D=92=82=F0=9D=92=8F=F0=9D=92=8C=F0=9D=92=8A=F0=9D=92=86=F0=9D=92=98=F0= =9D=92=8A=F0=9D=92=84=F0=9D=92=9B (=F0=9D=91=8A=F0=9D=91=92=F0=9D=91=8F =F0= =9D=90=B7=F0=9D=91=92=F0=9D=91=A3=F0=9D=91=92=F0=9D=91=99=F0=9D=91=9C=F0=9D= =91=9D=F0=9D=91=92=F0=9D=91=9F) http://jcubic.pl --Sig_/B.YZMm/H5iT/vpi6DtSFld_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQEcBAEBAgAGBQJTKsyJAAoJEKWO5vEx+DATJxwH/iYNIynfJCIZ/xYBFaQ10sfY GJCUdHcFCBgRETYaC/sUMGKGzkI1kAubvuZfJMQmapgHS31O5mY0+RFoBk/9+TY7 aA4XttB33A3B4sP0Sp0Cuh7o/divbWtX91SbVxTVF4Z4CK3EtSSuXLc2/Bl3xg8G I3/kYqHhaAsok6NYty1HzlOHZkTGKsiYdSRD4qxbckYUzS7+r4HDMfzDIxbU0Doz 53O/KcrYAHWl431XRIIwP1pO08dMqkrVDuBp+ilAReZjjONIK5cbX/OEuT470ZiU udEOWEqrrUQc05+db2HLOOs+ZCqHCubUlMk35cjm+BeKyfDSbVyFKqqAu8tMqs8= =r1L4 -----END PGP SIGNATURE----- --Sig_/B.YZMm/H5iT/vpi6DtSFld_-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 20 10:16:46 2014 Received: (at 17048) by debbugs.gnu.org; 20 Mar 2014 14:16:46 +0000 Received: from localhost ([127.0.0.1]:42362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQdm1-00065Y-VL for submit@debbugs.gnu.org; Thu, 20 Mar 2014 10:16:46 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:43426) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQdm0-00065N-5f; Thu, 20 Mar 2014 10:16:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KKg/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDjhiWYoFegxM X-IPAS-Result: Av4EABK/CFHO+KKg/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDjhiWYoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="52755973" Received: from 206-248-162-160.dsl.teksavvy.com (HELO pastel.home) ([206.248.162.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Mar 2014 10:16:43 -0400 Received: by pastel.home (Postfix, from userid 20848) id 439B56012B; Thu, 20 Mar 2014 10:16:43 -0400 (EDT) From: Stefan To: Jakub Jankiewicz Subject: Re: bug#17048: switch-to-buffer function show killed buffers names Message-ID: References: <20140320121001.14c43fa4@jcubic> Date: Thu, 20 Mar 2014 10:16:43 -0400 In-Reply-To: <20140320121001.14c43fa4@jcubic> (Jakub Jankiewicz's message of "Thu, 20 Mar 2014 12:10:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17048 Cc: 17048@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) retitle 17048 minibuffer history should filter out impossible entries thanks > When I call switch-to-buffer function and then when I ress up/down > arrows the list show buffers that I've kill, even that when I press Tab that > buffers don't show on the list. Yes, that's because up/down make you go through the history of what you've entered. I actually agree that when the completion is "must-match", it would make sense of the history commands to skip entries that don't match one of the current possible answers. Tho it can be convenient to do to get the previous killed buffer name, and then tweak it a little, when killing many buffers with similar names (typically hidden buffers used for things like Tramp connections ;-). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 20 11:13:55 2014 Received: (at 17048) by debbugs.gnu.org; 20 Mar 2014 15:13:55 +0000 Received: from localhost ([127.0.0.1]:42421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQefK-0000NX-QL for submit@debbugs.gnu.org; Thu, 20 Mar 2014 11:13:55 -0400 Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:55554) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQefI-0000NJ-0W for 17048@debbugs.gnu.org; Thu, 20 Mar 2014 11:13:53 -0400 Received: from jcubic (aml36.neoplus.adsl.tpnet.pl [83.26.67.36]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jcubic@onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3fqWq121HDzZ2HHG; Thu, 20 Mar 2014 16:13:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onet.pl; s=2011; t=1395328430; bh=+MoQ7+JSfp8YwGh55XThe4wxSeE0rHUmVeOhIxRRp3k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: Mime-Version:Content-Type; b=UH+NLrZWoBiiNbaNa/sEVqcK0+IcwH0mHZR1jzVsE5cr8JYiPJSDgSTqcl4K+PXcn CoqnDowcFVRrs792pN+EBtJNtihIB939QB1IsbAAO8YhjTvcg+c/UN9CvL67leg+ZP XAU6YO9Kh+xbFNbGqaoPSUvmHAchwxpxGhorY0aM= Date: Thu, 20 Mar 2014 16:13:46 +0100 From: Jakub Jankiewicz To: Stefan Subject: Re: bug#17048: switch-to-buffer function show killed buffers names Message-ID: <20140320161346.3b7e1e87@jcubic> In-Reply-To: References: <20140320121001.14c43fa4@jcubic> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/_V9wMmuGasphO84alGnJ2ou"; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17048 Cc: 17048@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) --Sig_/_V9wMmuGasphO84alGnJ2ou Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 20 Mar 2014 10:16:43 -0400 Stefan wrote: > retitle 17048 minibuffer history should filter out impossible entries > thanks >=20 > > When I call switch-to-buffer function and then when I ress up/d= own > > arrows the list show buffers that I've kill, even that when I press Tab > > that buffers don't show on the list. >=20 > Yes, that's because up/down make you go through the history of what > you've entered. >=20 > I actually agree that when the completion is "must-match", it would make > sense of the history commands to skip entries that don't match one of > the current possible answers. Tho it can be convenient to do to > get the previous killed buffer name, and then tweak it a little, when > killing many buffers with similar names (typically hidden buffers used > for things like Tramp connections ;-). Yes it's history, I think this fix the bug (but only for buffer names) (add-hook 'kill-buffer-hook (lambda () (setq buffer-name-history (delete (buffer-name) buffer-name-history)))) -- Jakub Jankiewicz, Web Developer http://jcubic.pl --Sig_/_V9wMmuGasphO84alGnJ2ou Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQEcBAEBAgAGBQJTKwWqAAoJEKWO5vEx+DATkVUH/R4g2ghqR87Js1E57X47X5Sc Vbf+FXP5+iAIqcdfIYC4mTw5U34AlinMTMZD8+AyvL3jT5n6XpWwgPy1jynaFyvG j8fJ0fJUYXsk/qSK5vSSMktLA7lv7rsnBBINGFc2ZLAzA+DpDmKhKhlEuVr/RTsU hJ/pRILnWbSMXvMV7fMBwZBgLgRIQbCLtfpyKjFUaV4JSaSxHS3UGUCj8f/oCLZ8 us4M2XqOXuUtuiYqkrTiklP+N5Dh6MgMWbWNW0gpF2HhvgtTVlSxHYLep7Wc3Fco PTsKvKS58Ae+NO687lZjrQBsf9FZqb+me38nfRBsT0rRSBfpG+wJW2rOQRaPzPg= =qrBr -----END PGP SIGNATURE----- --Sig_/_V9wMmuGasphO84alGnJ2ou-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 20 11:45:39 2014 Received: (at 17048) by debbugs.gnu.org; 20 Mar 2014 15:45:40 +0000 Received: from localhost ([127.0.0.1]:42445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQfA2-0001Hi-8E for submit@debbugs.gnu.org; Thu, 20 Mar 2014 11:45:39 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:36880) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQf9z-0001HU-A3 for 17048@debbugs.gnu.org; Thu, 20 Mar 2014 11:45:36 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2KFjXUx023248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Mar 2014 15:45:33 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2KFjWbj027971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Mar 2014 15:45:32 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2KFjVJx027964; Thu, 20 Mar 2014 15:45:31 GMT MIME-Version: 1.0 Message-ID: <0ef3a4c3-3d8f-47ca-91c5-26ccc08c3046@default> Date: Thu, 20 Mar 2014 08:45:31 -0700 (PDT) From: Drew Adams To: Jakub Jankiewicz , Stefan Subject: RE: bug#17048: switch-to-buffer function show killed buffers names References: <20140320121001.14c43fa4@jcubic> <20140320161346.3b7e1e87@jcubic> In-Reply-To: <20140320161346.3b7e1e87@jcubic> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17048 Cc: 17048@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (--) > Yes it's history, I think this fix the bug (but only for buffer names) >=20 > (add-hook 'kill-buffer-hook > (lambda () > (setq buffer-name-history (delete (buffer-name) > buffer-name-history)))) >=20 Bad idea. And not a bug. The history is supposed to be just that: a history of buffer names that the user has entered as minibuffer input. That this or that command might use this history for various things is irrelevant to this. If a given command has no use for buffer names that do not correspond to currently live buffers then it is _up to that command_ to DTRT for its own use. And not by modifying the history list but by filtering a copy of it. IOW, any such filtering should be done, if needed, by the code that USES the history variable. It should not be done to the variable itself, and especially not by some general code such as a kill-buffer hook. And in particular, command `switch-to-buffer' should NOT filter out such buffer names. Besides the full history being important, _a priori_, this command is specifically designed to let you create a new buffer, including a new buffer with the same name as one that previously existed but has been killed. Or, as Stefan pointed out, one that has a similar name (e.g. by editing a history-list entry). It is trivial for a user to write a command that, for example, lets her choose only among existing (live) buffers. And in that case she can also decide whether she wants the available history to be filtered similarly. Nothing wrong with that. But that is not `switch-to-buffer'. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 20 10:46:09 2021 Received: (at 17048) by debbugs.gnu.org; 20 Aug 2021 14:46:09 +0000 Received: from localhost ([127.0.0.1]:35274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH5ma-0004zU-NM for submit@debbugs.gnu.org; Fri, 20 Aug 2021 10:46:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH5mY-0004rY-5J for 17048@debbugs.gnu.org; Fri, 20 Aug 2021 10:46:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UJsuLJQunip6gNanJ0dhL5PBm6jpyWIfoTvrvGzMEQg=; b=JtP6hQ5h9FZvivgQ0+CSjDRbxk joOWy7dizPOkdz/hJ0OIgqUZII787QKXNPllhE1LVJJ8aBr7Ebo60odA/MGzcy0aZH4B5Clc0BQMl b5GcL2wmV5efnJ2EnjwsLPK5aBnzCHTDPdaMQv38vm+5C1SuG7KzGERfspgzxiRAR3Gc=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mH5mM-00052p-DC; Fri, 20 Aug 2021 16:45:58 +0200 From: Lars Ingebrigtsen To: Jakub Jankiewicz Subject: Re: bug#17048: minibuffer history should filter out impossible entries References: <20140320121001.14c43fa4@jcubic> <20140320161346.3b7e1e87@jcubic> Date: Fri, 20 Aug 2021 16:45:50 +0200 In-Reply-To: <20140320161346.3b7e1e87@jcubic> (Jakub Jankiewicz's message of "Thu, 20 Mar 2014 16:13:46 +0100") Message-ID: <87a6lc6uox.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Jakub Jankiewicz writes: > Yes it's history, I think this fix the bug (but only for buffer names) > > (add-hook 'kill-buffer-hook > (lambda () > (setq buffer-name-history (delete (buffer-name) > buffer-name-history)))) 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: -2.3 (--) X-Debbugs-Envelope-To: 17048 Cc: Stefan , 17048@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: -3.3 (---) Jakub Jankiewicz writes: > Yes it's history, I think this fix the bug (but only for buffer names) > > (add-hook 'kill-buffer-hook > (lambda () > (setq buffer-name-history (delete (buffer-name) > buffer-name-history)))) (I'm going through old bug reports that unfortunately weren't resolved at the time.) I think this is the correct solution here -- adding a user option for this could make sense (if many wanted this functionality), but I haven't really seem much demand for that, so I think doing it via this hook is the right way to go. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 20 10:46:12 2021 Received: (at control) by debbugs.gnu.org; 20 Aug 2021 14:46:12 +0000 Received: from localhost ([127.0.0.1]:35277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH5me-00052g-1W for submit@debbugs.gnu.org; Fri, 20 Aug 2021 10:46:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH5mc-0004wb-TY for control@debbugs.gnu.org; Fri, 20 Aug 2021 10:46:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=s/ADfPfLkf98r3XrMQBa7RaHSSPdTiSWoRPJHDU2TLs=; b=Q3S3hH25mURLN4NgU47ORNjtwX VwXcnj5GySHwPHqrLFXgup8FIrwK7q4RFetk/LCs/zNWs0lJzjH/cIR/j24m8ZDSaVRllgU2/A4MZ 0WtEND557wYiFWpQgTujBqAli8HfHgQswoxCg0I3yN5remPNWkF/xjVNq8ETYaTRXpoI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mH5mU-000538-Vr for control@debbugs.gnu.org; Fri, 20 Aug 2021 16:46:05 +0200 Date: Fri, 20 Aug 2021 16:46:02 +0200 Message-Id: <878s0w6uol.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17048 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 17048 wontfix close 17048 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: -2.3 (--) 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: -3.3 (---) tags 17048 wontfix close 17048 quit From unknown Mon Jun 23 23:49:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 18 Sep 2021 11:24:06 +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