Function: kotl-mode:forward-word
kotl-mode:forward-word is an interactive and byte-compiled function
defined in kotl-mode.el.
Signature
(kotl-mode:forward-word &optional ARG)
Documentation
Move point forward ARG (or 1) words and return point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:forward-word (&optional arg)
"Move point forward ARG (or 1) words and return point."
(interactive "p")
(kotl-mode:maintain-region-highlight)
(unless arg
(setq arg 1))
(if (>= arg 0)
(while (> arg 0)
(cond ((kotl-mode:eobp) (setq arg 0))
((kotl-mode:eocp)
(kcell-view:next t)))
(unwind-protect
(forward-word 1)
(kotl-mode:to-valid-position))
;; If point is at beginning of a cell after moving forward a word,
;; then we moved over something other than a word (some
;; punctuation or an outline autonumber); therefore, leave counter as
;; is in order to move forward over next word.
(unless (kotl-mode:bocp)
(setq arg (1- arg))))
(kotl-mode:backward-word (- arg)))
(point))