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

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

Re: (bounds-of-thing-at-point 'number) ⇒ nil


From: Robert Pluim
Subject: Re: (bounds-of-thing-at-point 'number) ⇒ nil
Date: Fri, 04 Feb 2022 15:41:43 +0100

>>>>> On Fri, 4 Feb 2022 14:20:47 +0100, <tomas@tuxteam.de> said:

    tomas> On Fri, Feb 04, 2022 at 03:47:19PM +0300, Jean Louis wrote:
    >> 
    >> (require 'thingatpt)
    >> 
    >> 123 
    >> ^
    >> 
    >> when    I   place    cursor   there    under   number    2,   and
    >> evaluate (bounds-of-thing-at-point  'number) I get result  nil. I
    >> am expecting to get the bounds.
    >> 
    >> When I evaluate (thing-at-point 'number) then I get see result being 
123. 

    tomas> Note that number isn't among the things mentioned in the function 
doc of
    tomas> `bounds-of-thing-at-point'. It is, however in that of 
`thing-at-point'.

    tomas> So the behaviour you describe is surprising, but it is documented :)

    tomas> Perhaps both functions might want to get reconciled with each others.
    tomas> But perhaps there is a deeper reason their "things" lists differ.

I think it just means that nobody has implemented
`bounds-of-thing-at-point' for 'number. Patches welcome :-)

Robert
-- 



reply via email to

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