GNU bug report logs - #21087
24.5; ff-find-other-file will create a file with an extra trailling backslash

Previous Next

Package: emacs;

Reported by: ".." <akml <at> 163.com>

Date: Sat, 18 Jul 2015 17:20:02 UTC

Severity: minor

Found in version 24.5

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: ".." <akml <at> 163.com>
Cc: 21087 <at> debbugs.gnu.org
Subject: bug#21087: 24.5; ff-find-other-file will create a file with an extra trailling	backslash
Date: Sat, 18 Jul 2015 20:40:52 +0300
> Date: Sat, 18 Jul 2015 23:47:15 +0800 (CST)
> From: ".." <akml <at> 163.com>
> 
> It jumps out that ff-find-other-file will create the expecting file name with
> an extra
> trailling backslash, which makes the the newly opened buffer as directory.
> This happens after I updated all the 3rd party packages to the
> latest version. Although I havn't found out which package caused this
> issue, but the following patch will fix it, and I think it makes
> more sense to use read-file-name than read-directory-name
> 
> --- emacs\share\emacs\24.5\lisp\find-file.el
> +++ emacs\share\emacs\24.5\lisp\find-file.el
> @@ -495,7 +495,7 @@
> (setq name
> (expand-file-name
> - (read-directory-name
> + (read-file-name
> (format "Find or create %s in: " default-name)
> default-directory default-name nil)))

But that question is about the directory in which to create a file, so
read-directory-name sounds about right to me.




This bug report was last modified 4 years and 286 days ago.

Previous Next


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