diff options
| author | Chong Yidong | 2008-10-22 20:51:23 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-22 20:51:23 +0000 |
| commit | de285f273dc8cc93824c527bcf2c19d07cf2bdf7 (patch) | |
| tree | c5b2b6d7b6d5c14a1aa3ae40ac1a567343342f01 | |
| parent | d8ce500cff857bd3f25421c7457488a558b87b23 (diff) | |
| download | emacs-de285f273dc8cc93824c527bcf2c19d07cf2bdf7.tar.gz emacs-de285f273dc8cc93824c527bcf2c19d07cf2bdf7.zip | |
(sexp-at-point, symbol-at-point, number-at-point, list-at-point): Add
docstrings.
| -rw-r--r-- | lisp/thingatpt.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 6268d96c526..58dc08649de 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el | |||
| @@ -437,15 +437,22 @@ Signal an error if the entire string was not used." | |||
| 437 | (if (or (not pred) (funcall pred sexp)) sexp))) | 437 | (if (or (not pred) (funcall pred sexp)) sexp))) |
| 438 | 438 | ||
| 439 | ;;;###autoload | 439 | ;;;###autoload |
| 440 | (defun sexp-at-point () (form-at-point 'sexp)) | 440 | (defun sexp-at-point () |
| 441 | "Return the sexp at point, or nil if none is found." | ||
| 442 | (form-at-point 'sexp)) | ||
| 441 | ;;;###autoload | 443 | ;;;###autoload |
| 442 | (defun symbol-at-point () | 444 | (defun symbol-at-point () |
| 445 | "Return the symbol at point, or nil if none is found." | ||
| 443 | (let ((thing (thing-at-point 'symbol))) | 446 | (let ((thing (thing-at-point 'symbol))) |
| 444 | (if thing (intern thing)))) | 447 | (if thing (intern thing)))) |
| 445 | ;;;###autoload | 448 | ;;;###autoload |
| 446 | (defun number-at-point () (form-at-point 'sexp 'numberp)) | 449 | (defun number-at-point () |
| 450 | "Return the number at point, or nil if none is found." | ||
| 451 | (form-at-point 'sexp 'numberp)) | ||
| 447 | ;;;###autoload | 452 | ;;;###autoload |
| 448 | (defun list-at-point () (form-at-point 'list 'listp)) | 453 | (defun list-at-point () |
| 454 | "Return the Lisp list at point, or nil if none is found." | ||
| 455 | (form-at-point 'list 'listp)) | ||
| 449 | 456 | ||
| 450 | ;; arch-tag: bb65a163-dae2-4055-aedc-fe11f497f698 | 457 | ;; arch-tag: bb65a163-dae2-4055-aedc-fe11f497f698 |
| 451 | ;;; thingatpt.el ends here | 458 | ;;; thingatpt.el ends here |