diff options
author | Karl Heuer <kwzh@gnu.org> | 1999-06-12 03:52:13 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1999-06-12 03:52:13 +0000 |
commit | 3481a5c0f6f25772ca5f576576e913cc8d89909d (patch) | |
tree | 5efc701a33a27011b39c8baf9d3e5a41c87c35b6 /lisp/info-look.el | |
parent | a9a679b70ee79a68f2865c60572baa8acf6d44a5 (diff) | |
download | emacs-3481a5c0f6f25772ca5f576576e913cc8d89909d.tar.gz |
(info-lookup-file, info-lookup-symbol): Doc fix.
(info-lookup-interactive-arguments): Never insert the default
into the minibuffer automatically.
Diffstat (limited to 'lisp/info-look.el')
-rw-r--r-- | lisp/info-look.el | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el index 5183ef60230..943ae3bad0e 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el @@ -260,10 +260,10 @@ system." ;;;###autoload (defun info-lookup-symbol (symbol &optional mode) - "Display the documentation of a symbol. -If called interactively, SYMBOL will be read from the mini-buffer. -Prefix argument means unconditionally insert the default symbol name -into the mini-buffer so that it can be edited. + "Display the definition of SYMBOL, as found in the relevant manual. +When this command is called interactively, it reads SYMBOL from the minibuffer. +In the minibuffer, use M-n to yank the default argument value +into the minibuffer so you can edit it. The default symbol is the one found at point." (interactive (info-lookup-interactive-arguments 'symbol)) @@ -272,30 +272,28 @@ The default symbol is the one found at point." ;;;###autoload (defun info-lookup-file (file &optional mode) "Display the documentation of a file. -If called interactively, FILE will be read from the mini-buffer. -Prefix argument means unconditionally insert the default file name -into the mini-buffer so that it can be edited. +When this command is called interactively, it reads FILE from the minibuffer. +In the minibuffer, use M-n to yank the default file name +into the minibuffer so you can edit it. The default file name is the one found at point." (interactive (info-lookup-interactive-arguments 'file)) (info-lookup 'file file mode)) (defun info-lookup-interactive-arguments (topic) - "Return default value and help mode for help topic TOPIC." + "Read and return argument value (and help mode) for help topic TOPIC." (let* ((mode (if (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)) - (input (if (or current-prefix-arg (not (assoc default completions))) - default)) (completion-ignore-case (info-lookup->ignore-case topic mode)) (enable-recursive-minibuffers t) (value (completing-read - (if (and default (not input)) + (if default (format "Describe %s (default %s): " topic default) (format "Describe %s: " topic)) - completions nil nil input 'info-lookup-history))) + completions nil nil nil 'info-lookup-history default))) (list (if (equal value "") default value) mode))) (defun info-lookup-select-mode () |