Function: hui:menu-forward-item

hui:menu-forward-item is an interactive and byte-compiled function defined in hui-mini.el.

Signature

(hui:menu-forward-item &optional ARG)

Documentation

Move point to the optional prefix ARGth next selectable minibuffer menu item.

If on the menu name prefix or the last item, move to the first item.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mini.el
(defun hui:menu-forward-item (&optional arg)
  "Move point to the optional prefix ARGth next selectable minibuffer menu item.
If on the menu name prefix or the last item, move to the first item."
  (interactive "p")
  (unless arg (setq arg 1))
  (if (< arg 0)
      (hui:menu-backward-item (- arg))
    (let (opoint)
      (while (> arg 0)
	;; First skip past menu name/description prompt, if within it.
	(when (hui:menu-name-at-p)
	  (setq opoint (point))
	  (skip-chars-backward "^ \t\n\r")
	  (skip-chars-forward " \t")
	  (skip-chars-forward "^<> \t\n\r")
	  (unless (looking-at ">\\s-")
	    (goto-char opoint)))
	(if (re-search-forward "\\s-+[^> \t\n\r]" nil t)
	    (backward-char 1)
	  (goto-char (point-min))
	  (when (looking-at "[^< \t\n\r]+>\\s-")
	    (hui:menu-forward-item)))
	(setq arg (1- arg))))))