GNU bug report logs - #70996
project-find-file defaults

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Fri, 17 May 2024 06:53:01 UTC

Severity: normal

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Juri Linkov <juri <at> linkov.net>
Cc: 70996 <at> debbugs.gnu.org, Spencer Baugh <sbaugh <at> janestreet.com>
Subject: bug#70996: project-find-file defaults
Date: Fri, 14 Jun 2024 20:24:33 +0300
On 14/06/2024 20:00, Juri Linkov wrote:
>>> I personally never use the file-name-at-point behavior of
>>> project-find-file, but I'm happy with it being higher-precedence because
>>> it will match find-file - as long as it also matches find-file in only
>>> including filenames of existing files.
>> In case you agree with my concerns above (I'm happy to be convinced
>> otherwise), we could try to do something like
>>
>>    (completion-try-completion (thing-at-point 'filename)
>>                               TABLE nil LEN)
> Unfortunately, this might get a false positive on a short word under point
> that with high likelihood will match a file name with a short substring.

It might. But we could set up the styles (or some other way to do the 
matching) so that it would only match full file name segments.




This bug report was last modified 1 year and 36 days ago.

Previous Next


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