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

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

RE: [External] : Re: (bounds-of-thing-at-point 'number) ⇒ nil


From: Drew Adams
Subject: RE: [External] : Re: (bounds-of-thing-at-point 'number) ⇒ nil
Date: Sun, 6 Feb 2022 08:43:21 +0000

> > I think it just means that nobody has implemented
> > `bounds-of-thing-at-point' for 'number. Patches welcome :-)
> 
> I don't think it means that.  Here's a definition.
> Add it to thingatpt.el, if you really believe it's
> welcome.  (This isn't be the first time this and
> similar have been offered.)
> 
> Just drop the `tap-' prefix in both places.
> 
> (defun tap-bounds-of-number-at-point ()
>   "Return the bounds of the number represented by the numeral at point.
> Return nil if none is found."
>   (and (number-at-point)
>        (tap-bounds-of-thing-at-point 'sexp)))

Apropos - I offered exactly that definition in the
context of bug #21391 (I'd forgotten that I did):

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21391#136



reply via email to

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