From unknown Sun Sep 07 02:53:37 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#4657 <4657@debbugs.gnu.org> To: bug#4657 <4657@debbugs.gnu.org> Subject: Status: 23.1.50; duplicate entries in file-name-history from read-file-name Reply-To: bug#4657 <4657@debbugs.gnu.org> Date: Sun, 07 Sep 2025 09:53:37 +0000 retitle 4657 23.1.50; duplicate entries in file-name-history from read-file= -name reassign 4657 emacs submitter 4657 "Roland Winkler" severity 4657 minor thanks From Roland.Winkler@physik.uni-erlangen.de Tue Oct 6 15:28:19 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Oct 2009 22:28:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n96MSHrx025451 for ; Tue, 6 Oct 2009 15:28:19 -0700 Received: from mx10.gnu.org ([199.232.76.166]:51130) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MvIW0-0003X8-Ru for emacs-pretest-bug@gnu.org; Tue, 06 Oct 2009 18:28:16 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MvIVy-0003B2-Kk for emacs-pretest-bug@gnu.org; Tue, 06 Oct 2009 18:28:16 -0400 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:2843) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvIVy-0002Rh-4V for emacs-pretest-bug@gnu.org; Tue, 06 Oct 2009 18:28:14 -0400 Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id A10E78438F for ; Wed, 7 Oct 2009 00:26:40 +0200 (CEST) Date: Wed, 07 Oct 2009 00:26:39 +0200 Message-Id: From: "Roland Winkler" To: emacs-pretest-bug@gnu.org Subject: 23.1.50; duplicate entries in file-name-history from read-file-name X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 In a fresh emacs -q load and execute the command foo in order to read the file name ~/foo/bar (defun foo () (interactive) (read-file-name "File: (default ~/foo/bar) " "~/foo/" "~/foo/bar") (message "%s" file-name-history)) If I explicitly enter ~/foo/bar in the minibuffer, multiple executions of this command add this file to file-name-history only once. If I am lazy and just use the default value, each execution will add one more entry ~/foo/bar to file-name-history. I would expect that multiple equal entries in succession should always be avoided in file-name-history. In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-03 on foo Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: en_GB.utf8 value of $LANG: en_US.ISO-8859-15 value of $XMODIFIERS: nil locale-coding-system: iso-latin-9-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction From rgm@gnu.org Thu Oct 8 18:17:55 2009 Received: (at control) by emacsbugs.donarmstrong.com; 9 Oct 2009 01:17:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.4 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n991HrfD004861 for ; Thu, 8 Oct 2009 18:17:54 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mw47E-0008FM-P4; Thu, 08 Oct 2009 21:17:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19150.36672.671829.836541@fencepost.gnu.org> Date: Thu, 8 Oct 2009 21:17:52 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: yPum?Sc=U8('9-m~;OJMkGv@)"i3z`fS02?D_[O%Sg/B;sa$JKssZ-Kb8>FQabl5z!PEE7 X-Debbugs-No-Ack: yes reassign 4681 emacs,ns merge 4681 4625 severity 4657 minor From cyd@stupidchicken.com Sun Oct 18 15:26:59 2009 Received: (at 4657-done) by emacsbugs.donarmstrong.com; 18 Oct 2009 22:26:59 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po39.its.yale.edu (pantheon-po39.its.yale.edu [130.132.50.100]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9IMQvSL003565 for <4657-done@emacsbugs.donarmstrong.com>; Sun, 18 Oct 2009 15:26:58 -0700 Received: from furry (adsl-99-69-49-186.dsl.wlfrct.sbcglobal.net [99.69.49.186]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n9IMQpol017813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 18 Oct 2009 18:26:52 -0400 Received: by furry (Postfix, from userid 1000) id 71B06C070; Sun, 18 Oct 2009 18:26:50 -0400 (EDT) From: Chong Yidong To: "Roland Winkler" Cc: 4657-done@debbugs.gnu.org Subject: Re: 23.1.50; duplicate entries in file-name-history from read-file-name Date: Sun, 18 Oct 2009 18:26:50 -0400 Message-ID: <871vl05oet.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > (defun foo () > (interactive) > (read-file-name "File: (default ~/foo/bar) " "~/foo/" "~/foo/bar") > (message "%s" file-name-history)) > If I explicitly enter ~/foo/bar in the minibuffer, multiple > executions of this command add this file to file-name-history only > once. If I am lazy and just use the default value, each execution > will add one more entry ~/foo/bar to file-name-history. I would > expect that multiple equal entries in succession should always be > avoided in file-name-history. I've checked in a fix. From unknown Sun Sep 07 02:53:37 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, 17 Nov 2009 15:24:13 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator