]> git.eshelyaron.com Git - emacs.git/commit
Add bounds-of-thing-at-point property for 'number'
authorVisuwesh <visuweshm@gmail.com>
Sat, 9 Mar 2024 09:47:26 +0000 (15:17 +0530)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 09:04:09 +0000 (10:04 +0100)
commit240c79c7dacf27119278b0cf29d1cdbf35987e94
treeee8a080e0e17c8b5aa8567d0c5f9b584eadc65bf
parentfb2dd1801db0fbffddd38ef28f3f81727307850a
Add bounds-of-thing-at-point property for 'number'

* lisp/thingatpt.el (thing-at-point-decimal-regexp)
(thing-at-point-hexadecimal-regexp): Extract regexps from...
(number-at-point): ...here.  Use them in 'number-at-point'.
(number): Add 'bounds-of-thing-at-point' property as
`forward-word' does not always return the right boundary,
e.g., in latex-mode buffers.  (Bug#69239)

(cherry picked from commit cb9ee24ea69be4a70f68cb2d564b23a55cb84216)
lisp/thingatpt.el