[Top][All Lists]

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

bug#21391: 24.5; `thing-at-point' should return a string

From: Andreas Röhler
Subject: bug#21391: 24.5; `thing-at-point' should return a string
Date: Wed, 9 Nov 2016 07:43:31 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0

On 09.11.2016 01:04, Dmitry Gutov wrote:
On 08.11.2016 17:05, Eli Zaretskii wrote:

But then somehow the discussion shifted to be about whether to _force_
thing-at-point value to be a string, even if it isn't for some reason.

I'd suggest trying to fix that from the other end, as one alternative. If we agree that the return value of thing-at-point should be a string, (get 'number 'thing-at-point) can't return `number-at-point', it should return a function that will return the said number as a string.

It might be worth noticing that result of thing-at-point natively is a string. In case these string is not returned for now, additional functions are called upon. For example "intern" in case of symbol-at-point, which makes me frown. ;)

reply via email to

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