Function: Info-handle-in-node-hdr-assist
Info-handle-in-node-hdr-assist is a byte-compiled function defined in
hmouse-info.el.
Signature
(Info-handle-in-node-hdr-assist)
Documentation
When smart-info-assist command is executed on an Info node header, go to node.
When within the <FILE> header go to the DIR top-level node.
When within any other header (<Up>, <Previous>, or <Next>) go to
last node from history list. Return t if in Info node header.
Otherwise return nil.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-info.el
(defun Info-handle-in-node-hdr-assist ()
"When `smart-info-assist' command is executed on an Info node header, go to node.
When within the <FILE> header go to the DIR `top-level node'.
When within any other header (<Up>, <Previous>, or <Next>) go to
last node from history list. Return t if in Info node header.
Otherwise return nil."
;;
;; Test if on 1st line of node, i.e. node header
;;
(when (first-line-p)
(save-excursion
(if (and
(re-search-forward "[:, \t\n\r]" nil t)
(re-search-backward
"\\(File\\|Node\\|Up\\|Prev\\|Previous\\|Next\\):[ \t]" nil t) )
;; If in <FILE> hdr
(progn (if (string-equal
"file"
(downcase (match-string-no-properties 1)))
(Info-directory)
(Info-last))
t)
(error "Node header not found")
nil))))