diff options
Diffstat (limited to 'lisp/thingatpt.el')
-rw-r--r-- | lisp/thingatpt.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 1ce4b98fd1b..c33fb174a58 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -634,7 +634,7 @@ Signal an error if the entire string was not used." (defun number-at-point () "Return the number at point, or nil if none is found. Decimal numbers like \"14\" or \"-14.5\", as well as hex numbers -like \"0xBEEF09\" or \"#xBEEF09\", are regognized." +like \"0xBEEF09\" or \"#xBEEF09\", are recognized." (when (thing-at-point-looking-at "\\(-?[0-9]+\\.?[0-9]*\\)\\|\\(0x\\|#x\\)\\([a-zA-Z0-9]+\\)" 500) (if (match-beginning 1) |