bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28870: 25.3; find-file-at-point with spaces in path


From: H. Dieter Wilhelm
Subject: bug#28870: 25.3; find-file-at-point with spaces in path
Date: Thu, 07 Jan 2021 17:16:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hello 

While working on a cheap solution for my own nuisances on Windows I
found that for the upcoming Gnu Emacs-28 setting

(setq ffap-file-name-with-spaces 1)

is working quite fine!  FYI: ffap is checking if the file or path
exists.  So ffap-string-at-point might work for test strings but then
ffap is more reluctant... ;-)

     Dieter

Eli Zaretskii <eliz@gnu.org> writes:

> tags 28870 wishlist
> thanks
>
>> From: Guido Kraemer <gkraemer@bgc-jena.mpg.de>
>> Date: Mon, 16 Oct 2017 21:35:58 +0200
>> 
>> find-file-at-point does not work correctly if there are spaces in the 
>> path, but also exists in emacs 26.0.90.1 to reproduce:
>> 
>> 1) create the file "~/new folder/New Folder/New Empty File"
>> 2) emacs -q
>> 3) go to *scratch* buffer
>> 4) put the following in the scratch buffer:
>> 
>> "~/new folder/New Folder/New Empty File"
>> ".emacs.d/init.el"
>> 
>> 5) place point on each and run `find-file-at-point`
>> 
>> Observed bevior: the second line works fine, the first line does not
>> complete correctly, see also here:
>
> find-file-at-point doesn't currently support file names with spaces,
> it's a missing feature.  Patches to add that are welcome.
>
> FWIW, I think if such a feature is added, it should support several
> kinds of quoting: `..', '..', "..", ‘..’, etc., because we are talking
> about free text, where such file names could be quoted in many ways.
>
> Thanks.
>
>
>
>

-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany





reply via email to

[Prev in Thread] Current Thread [Next in Thread]