Subject: Re: bug#47247: 28.0.50; read-file-name: should display slash correctly in the prompt

From: Eli Zaretskii <[email-masked]>
Date: Thu, 18 Mar 2021 20:58:54 +0200

> From: Jean Louis <[email-masked]>
> 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.