Function: Info-read-node-name
Info-read-node-name is a byte-compiled function defined in info.el.gz.
Signature
(Info-read-node-name PROMPT &optional DEFAULT)
Documentation
Read an Info node name with completion, prompting with PROMPT.
A node name can have the form "NODENAME", referring to a node in the current Info file, or "(FILENAME)NODENAME", referring to a node in FILENAME. "(FILENAME)" is a short format to go to the Top node in FILENAME.
Source Code
;; Defined in /usr/src/emacs/lisp/info.el.gz
;; Arrange to highlight the proper letters in the completion list buffer.
(defun Info-read-node-name (prompt &optional default)
"Read an Info node name with completion, prompting with PROMPT.
A node name can have the form \"NODENAME\", referring to a node
in the current Info file, or \"(FILENAME)NODENAME\", referring to
a node in FILENAME. \"(FILENAME)\" is a short format to go to
the Top node in FILENAME."
(let* ((completion-ignore-case t)
(Info-read-node-completion-table (Info-build-node-completions))
(nodename (completing-read prompt #'Info-read-node-name-1 nil t nil
'Info-minibuf-history default)))
(if (equal nodename "")
(Info-read-node-name prompt)
nodename)))