Function: info-lookup-interactive-arguments

info-lookup-interactive-arguments is a byte-compiled function defined in info-look.el.gz.

Signature

(info-lookup-interactive-arguments TOPIC &optional QUERY)

Documentation

Read and return argument value (and help mode) for help TOPIC.

TOPIC should be any known symbol of a help topic, such as file or symbol. See the documentation of HELP-TOPIC in the doc string of info-lookup-alist. If optional argument QUERY is non-nil, query for the help mode.

Source Code

;; Defined in /usr/src/emacs/lisp/info-look.el.gz
(defun info-lookup-interactive-arguments (topic &optional query)
  "Read and return argument value (and help mode) for help TOPIC.
TOPIC should be any known symbol of a help topic, such as `file'
or `symbol'.  See the documentation of HELP-TOPIC in the doc
string of `info-lookup-alist'.
If optional argument QUERY is non-nil, query for the help mode."
  (let* ((mode (cond (query
		      (info-lookup-change-mode topic))
		     ((info-lookup->mode-value topic (info-lookup-select-mode))
		      info-lookup-mode)
		     ((info-lookup-change-mode topic))))
	 (completions (info-lookup->completions topic mode))
	 (default (info-lookup-guess-default topic mode))
	 (completion-ignore-case (info-lookup->ignore-case topic mode))
	 (enable-recursive-minibuffers t)
	 (value (completing-read
		 (format-prompt "Describe %s" default topic)
		 completions nil nil nil 'info-lookup-history default)))
    (list (if (equal value "") default value) mode)))