GNU bug report logs - #4657
23.1.50; duplicate entries in file-name-history from read-file-name

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>

Date: Tue, 6 Oct 2009 22:35:05 UTC

Severity: minor

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #12 received at 4657-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
Cc: 4657-done <at> 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
> (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.



This bug report was last modified 15 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.