Subject: 27.0.50; number-at-point misses hex

From: Andreas Röhler <[email-masked]>
Date: Thu, 19 Sep 2019 13:18:51 +0200

number-at-point from thingatpt.el doesn't recognize hex-numbers.

Currently defined like that:

(defun number-at-point ()
   "Return the number at point, or nil if none is found."
   (when (thing-at-point-looking-at "-?[0-9]+\\.?[0-9]*" 500)
     (string-to-number
      (buffer-substring (match-beginning 0) (match-end 0)))))

Maybe make the regexp customizable?

Thanks,

Andreas

In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32)
  of 2019-09-12