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

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

bug#44588: 28.0.50; project-find-file with thing at point


From: Dmitry Gutov
Subject: bug#44588: 28.0.50; project-find-file with thing at point
Date: Sun, 15 Nov 2020 00:53:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 14.11.2020 17:19, Lars Ingebrigtsen wrote:
Dmitry Gutov <dgutov@yandex.ru> writes:

On 12.11.2020 14:34, Lars Ingebrigtsen wrote:
The doc string is trying to say that the string under point is the
default -- it doesn't check that it matches an existing file.  I'll
adjust the doc string.

Well, the default _is_ (thing-at-point 'filename), though.

Which just looks for a regexp, not whether it's a file that exists.

Right. But a file name doesn't have to describe an existing file to be a file name. One example: the argument to file-exists-p.

I have noticed that too often the picked up default is too long,
though. And that clutters up the prompt. Perhaps
project--completing-read-strict should shorten it with ellipsis to
some predefined width.

It'd be pretty unusual for a prompt to elide bits of the string it's
actually going to use.

Perhaps.

I wonder if others see the problem I described, and if so whether they have other suggestions.





reply via email to

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