Function: hl-todo-next
hl-todo-next is an interactive and natively compiled function defined
in hl-todo.el.
Signature
(hl-todo-next ARG)
Documentation
Jump to the next TODO or similar keyword.
The prefix argument ARG specifies how many keywords to move. A negative argument means move backward that many keywords.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/b97f5zr6snxdbh1bgqmj50mq949vd13i-emacs-packages-deps/share/emacs/site-lisp/elpa/hl-todo-20261001.1547/hl-todo.el
;;;###autoload
(defun hl-todo-next (arg)
"Jump to the next TODO or similar keyword.
The prefix argument ARG specifies how many keywords to move.
A negative argument means move backward that many keywords."
(interactive "p")
(if (< arg 0)
(hl-todo-previous (- arg))
(while (and (> arg 0)
(not (eobp))
(progn
(when (let ((case-fold-search nil))
(looking-at (hl-todo--regexp)))
(goto-char (match-end 0)))
(or (hl-todo--search)
(if hl-todo-wrap-movement
nil
(user-error "No more matches")))))
(decf arg))
(when (> arg 0)
(let ((pos (save-excursion
(goto-char (point-min))
(let ((hl-todo-wrap-movement nil))
(hl-todo-next arg))
(point))))
(goto-char pos)))))