Function: Info-read-index-item-name

Info-read-index-item-name is an autoloaded and byte-compiled function defined in hmouse-info.el.

Signature

(Info-read-index-item-name PROMPT)

Documentation

Read an Info index item name with completion, prompting with PROMPT.

An index item name can have the form "itemname", referring to an index item in the current Info file, or "(filename)itemname", referring to an item in filename. "(filename)" is a short format to go to the Top node in filename. Signal an error if a filename without an index is given.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-info.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************

;;;###autoload
(defun Info-read-index-item-name (prompt)
  "Read an Info index item name with completion, prompting with PROMPT.
An index item name can have the form \"itemname\", referring to an index
item in the current Info file, or \"(filename)itemname\", referring to
an item in filename.  \"(filename)\" is a short format to go to
the Top node in filename.  Signal an error if a filename without an
index is given."
  (let ((completion-ignore-case t)
	(Info-history-list nil)
	item-name)
    (save-window-excursion
      (info)
      (setq Info-complete-menu-buffer (clone-buffer)))
    (unwind-protect
	(progn
	  (while (equal "" (setq item-name
				 (completing-read prompt #'Info-read-index-item-name-1 nil t))))
	  item-name)
      (kill-buffer Info-complete-menu-buffer)
      (makunbound 'Info-complete-menu-buffer))))