Function: beginning-of-thing

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

Signature

(beginning-of-thing THING)

Documentation

Move point to the beginning 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
;; Go to beginning/end

(defun beginning-of-thing (thing)
  "Move point to the beginning 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 (car bounds))))