How can I get ffap
to offer a non-existent file?
I'm in a buffer with point inside something that looks like some/directory/structure/a_long_file_name.ext
, where a directory some/directory/structure
exists but there is no file called a_long_file_name.ext
. I want to create that file. Obviously I can select the path, copy it, and yank it at the find-file
prompt, but the point of ffap
is to not have to do that. If I run M-x ffap
, it highlights the whole path but only offers the existing prefix in the minibuffer.
Steps to reproduce: emacs -Q
, type /etc/foo
then M-x ffap RET
. Observed behavior: /etc/foo
is highlighted, but the minibuffer offers /etc/
. Desired behavior: the minibuffer offers /etc/foo
.
I'm using Emacs 24.5 or 25.2 with no higher-level package, just plain ffap.el
.