Function: subword-forward
subword-forward is an interactive and byte-compiled function defined
in subword.el.gz.
Signature
(subword-forward &optional ARG)
Documentation
Do the same as forward-word but on subwords.
See the command subword-mode(var)/subword-mode(fun) for a description of subwords.
Optional argument ARG is the same as for forward-word.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/subword.el.gz
;; N.B. These commands aren't used unless explicitly invoked; they're
;; here for compatibility. Today, subword-mode leaves motion commands
;; alone and uses `find-word-boundary-function-table' to change how
;; `forward-word' and other low-level commands detect word boundaries.
;; This way, all word-related activities, not just the images we
;; imagine here, get subword treatment.
(defun subword-forward (&optional arg)
"Do the same as `forward-word' but on subwords.
See the command `subword-mode' for a description of subwords.
Optional argument ARG is the same as for `forward-word'."
(interactive "^p")
(unless arg (setq arg 1))
(cond
((< 0 arg)
(dotimes (_i arg (point))
(funcall subword-forward-function)))
((> 0 arg)
(dotimes (_i (- arg) (point))
(funcall subword-backward-function)))
(t
(point))))