Function: kotl-mode:next-line
kotl-mode:next-line is an interactive and byte-compiled function
defined in kotl-mode.el.
Signature
(kotl-mode:next-line ARG)
Documentation
Move point to ARGth next line and return point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:next-line (arg)
"Move point to ARGth next line and return point."
(interactive "p")
(kotl-mode:maintain-region-highlight)
(kotl-mode:set-temp-goal-column)
(let ((lines-left 0))
(cond ((> arg 0)
(while (and (> arg 0)
(= 0 (setq lines-left (+ lines-left (kfill:forward-line 1)))))
(cond ((kotl-mode:eobp)
(setq arg 0))
;; Visible blank line between cells
((and (looking-at "^$") (not (eq (kproperty:get (point) 'invisible) t)))
nil) ;; Don't count this line.
(t
(setq arg (1- arg)))))
(when (kotl-mode:eobp)
(when (zerop lines-left)
(setq lines-left 1))
(kfill:forward-line -1)
(goto-char (kcell-view:end-contents)))
(when (/= lines-left 0)
(and (called-interactively-p 'interactive)
(message "(kotl-mode:next-line): End of buffer") (beep)))
(kotl-mode:line-move 0)
(kotl-mode:to-valid-position))
((< arg 0)
(kotl-mode:previous-line (- arg)))))
(setq this-command 'next-line)
(point))