mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* thingatpt.el (number-at-point): Apply a thing-at-point property.
This commit is contained in:
parent
ba11600816
commit
748b0d840f
2 changed files with 5 additions and 0 deletions
|
|
@ -509,6 +509,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."
|
||||
(form-at-point 'sexp 'numberp))
|
||||
(put 'number 'thing-at-point 'number-at-point)
|
||||
;;;###autoload
|
||||
(defun list-at-point ()
|
||||
"Return the Lisp list at point, or nil if none is found."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue