GNU bug report logs - #47247
28.0.50; read-file-name: should display slash correctly in the prompt

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Thu, 18 Mar 2021 18:20:02 UTC

Severity: minor

Tags: notabug

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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: Jean Louis <bugs <at> gnu.support>
Cc: 47247 <at> debbugs.gnu.org
Subject: bug#47247: 28.0.50; read-file-name: should display slash correctly in the prompt
Date: Thu, 18 Mar 2021 20:58:54 +0200
> From: Jean Louis <bugs <at> gnu.support>
> Date: Thu, 18 Mar 2021 21:16:11 +0300
> 
> 
> When I do this:
> 
> (read-file-name "File name for export: " (getenv "HOME") nil nil (concat "Location-Set-ID-" "731" ".gpx"))
> 
> The file name in the prompt s displayed as:
> 
> File name for export: ~Location-Set-ID-731.gpx
> 
> without slash, rather than as:
> 
> File name for export: ~/Location-Set-ID-731.gpx

That's a cockpit error: you should run the directory through
expand-file-name if you want to use (getenv "HOME") in that context.




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

Previous Next


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