Function: forward-to-word

forward-to-word is an autoloaded, interactive and byte-compiled function defined in misc.el.gz.

Signature

(forward-to-word ARG)

Documentation

Move forward until encountering the beginning of a word.

With argument, do this that many times.

Probably introduced at or before Emacs version 17.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/misc.el.gz
;;;###autoload
(defun forward-to-word (arg)
  "Move forward until encountering the beginning of a word.
With argument, do this that many times."
  (interactive "^p")
  (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg)
      (goto-char (if (> arg 0) (point-max) (point-min)))))