Function: Info-handle-in-menu

Info-handle-in-menu is a byte-compiled function defined in hmouse-info.el.

Signature

(Info-handle-in-menu)

Documentation

Displays node referred to by an Info Menu Entry.

If point is within an Info menu entry, goes to node referenced by entry and returns t; otherwise returns nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-info.el
(defun Info-handle-in-menu ()
  "Displays node referred to by an Info Menu Entry.
If point is within an Info menu entry, goes to node referenced by
entry and returns t; otherwise returns nil."
  ;;
  ;; Test if there is a menu in this node
  ;;
  (when (Info-menu-item-at-p)
    (let ((node))
      (save-excursion
	(forward-char)	       ; Pass `*' char if point is in front of
	(when (search-backward "\n*" nil t)
	  (forward-char 2)
	  (setq node (Info-extract-menu-node-name nil (Info-index-node)))))
      (when node
	(Info-goto-node node)
	t))))