emacs-devel
[Top][All Lists]
Advanced

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

Re: master b21015c: Clarify project-find-file doc string


From: Dmitry Gutov
Subject: Re: master b21015c: Clarify project-find-file doc string
Date: Tue, 17 Nov 2020 00:00:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 16.11.2020 23:51, Drew Adams wrote:
There's no such thing as "string at point" in
Emacs. Or under point, or around point, etc.
Not without specifying what kind of string it must be.

Why do you think so?

Because it's ill-defined, without extra details specified.

`ffap-string-at-point':
Return a string of characters from around point.

`comint-extract-string':
Return string around point, or nil.

Have you noticed that these two functions implement two entirely different notions of "string at point"?

___

My library thingatpt+.el defines these, based
loosely on `comint-extract-string':

`string-at-point'
`string-nearest-point'
`string-contents-at-point'
`string-contents-nearest-point'

The last two are the same as the first two,
except they don't include the string delimiters.

https://www.emacswiki.org/emacs/download/thingatpt%2b.el

And these obviously deal with the other kind of "string at point", not the one Lars referred to in the new docstring.



reply via email to

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