mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
* thingatpt.el (number-at-point): Apply a thing-at-point property.
This commit is contained in:
parent
ba11600816
commit
748b0d840f
@ -1,3 +1,7 @@
|
||||
2012-10-29 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* thingatpt.el (number-at-point): Apply a thing-at-point property.
|
||||
|
||||
2012-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* vc/diff-mode.el (diff-context->unified): Don't get confused by "hunk
|
||||
|
@ -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…
Reference in New Issue
Block a user