Function: Info-index-node
Info-index-node is a byte-compiled function defined in info.el.gz.
Signature
(Info-index-node &optional NODE FILE)
Documentation
Return non-nil value if NODE is an index node.
If NODE is nil, check the current Info node. If FILE is nil, check the current Info file.
Source Code
;; Defined in /usr/src/emacs/lisp/info.el.gz
(defun Info-index-node (&optional node file)
"Return non-nil value if NODE is an index node.
If NODE is nil, check the current Info node.
If FILE is nil, check the current Info file."
(or file (setq file Info-current-file))
(if (and (or (and node (not (equal node Info-current-node)))
(assoc file Info-index-nodes))
(not Info-current-node-virtual))
(member (or node Info-current-node) (Info-index-nodes file))
;; Don't search all index nodes if request is only for the current node
;; and file is not in the cache of index nodes
(save-match-data
(if (Info-file-supports-index-cookies file)
(save-excursion
(goto-char (+ (or (save-excursion
(search-backward "\n\^_" nil t))
(point-min)) 2))
(search-forward "\0\b[index\0\b]"
(or (save-excursion
(search-forward "\n\^_" nil t))
(point-max)) t))
(string-match "\\<Index\\>" (or node Info-current-node ""))))))