GNU bug report logs -
#50142
27.1; Meaning of interactive specifier "f" unexpectedly depends on visited file
Previous Next
Reported by: Markus Triska <triska <at> metalevel.at>
Date: Sat, 21 Aug 2021 08:49:02 UTC
Severity: normal
Tags: notabug
Found in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Markus Triska <triska <at> metalevel.at> writes:
> then the echo area unexpectedly shows:
>
> The file is: ~/f.el
>
> This is unexpected, since the minibuffer prompt when doing M-x f RET
> shows: "File:~/" (as before), indicating that pressing RET would yield
> "~/", also as before, not "~/f.el".
The "f" interactive spec is basically `read-file-name'. As the doc
string says:
---
If DEFAULT-FILENAME is omitted or
nil, then if INITIAL is non-nil, the default is DIR combined with
INITIAL; otherwise, if the current buffer is visiting a file,
that file serves as the default; otherwise, the default is simply
the string inserted into the minibuffer.
---
Which is what you're seeing.
So this is working as intended (and in any case, we can't change this
long standing behaviour), and I'm therefore closing this bug report.
This bug report was last modified 2 years and 269 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.