Function: forward-thing

forward-thing is an autoloaded and byte-compiled function defined in thingatpt.el.gz.

Signature

(forward-thing THING &optional N)

Documentation

Move forward to the end of the Nth next THING.

THING should be a symbol specifying a type of syntactic entity. Possibilities include symbol, list, sexp, defun, filename, url, email, uuid, word, sentence, whitespace, line, and page.

Source Code

;; Defined in /usr/src/emacs/lisp/thingatpt.el.gz
;; Basic movement

;;;###autoload
(defun forward-thing (thing &optional n)
  "Move forward to the end of the Nth next THING.
THING should be a symbol specifying a type of syntactic entity.
Possibilities include `symbol', `list', `sexp', `defun',
`filename', `url', `email', `uuid', `word', `sentence', `whitespace',
`line', and `page'."
  (let ((forward-op (or (get thing 'forward-op)
			(intern-soft (format "forward-%s" thing)))))
    (if (functionp forward-op)
	(funcall forward-op (or n 1))
      (error "Can't determine how to move over a %s" thing))))