"\\<Octave-Info-mode-map>Follow a node reference near point.
Like \\[Octave-Info-menu], \\[Octave-Info-follow-reference], \\[Octave-Info-next], \\[Octave-Info-prev] or \\[Octave-Info-up] command, depending on where you click.
At end of the node's text, moves to the next node, or up if none."
(interactive "e")
(let* ((start (event-start click))
(window (car start))
(pos (car (cdr start))))
(select-window window)
(goto-char pos))
(and (not (Octave-Info-try-follow-nearest-node))
(save-excursion (forward-line 1) (eobp))
(Octave-Info-next-preorder)))
(defun Octave-Info-follow-nearest-node ()
"\\<Octave-Info-mode-map>Follow a node reference near point.
Like \\[Octave-Info-menu], \\[Octave-Info-follow-reference], \\[Octave-Info-next], \\[Octave-Info-prev] or \\[Octave-Info-up] command, depending on where point is.
If no reference to follow, moves to the next node, or up if none."
(interactive)
(or (Octave-Info-try-follow-nearest-node)
(Octave-Info-next-preorder)))
(defun Octave-Info-try-follow-nearest-node ()
"Follow a node reference near point. Return non-nil if successful."