Function: end-of-thing

end-of-thing is a byte-compiled function defined in thingatpt.el.gz.

Signature

(end-of-thing THING)

Documentation

Move point to the end of THING.

The bounds of THING are determined by bounds-of-thing-at-point.

Source Code

;; Defined in /usr/src/emacs/lisp/thingatpt.el.gz
(defun end-of-thing (thing)
  "Move point to the end of THING.
The bounds of THING are determined by `bounds-of-thing-at-point'."
  (let ((bounds (bounds-of-thing-at-point thing)))
    (or bounds (error "No %s here" thing))
    (goto-char (cdr bounds))))