aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorEli Zaretskii2001-01-08 16:59:54 +0000
committerEli Zaretskii2001-01-08 16:59:54 +0000
commitbbc96600a75e7ba655fe8679e41c7c3da91fc89a (patch)
treee53c7fbb82a27cba22848b95af26181bd0dd6e92 /lisp/info.el
parent56f24bc188cc4ec3e51f44c53789122b615be8a7 (diff)
downloademacs-bbc96600a75e7ba655fe8679e41c7c3da91fc89a.tar.gz
emacs-bbc96600a75e7ba655fe8679e41c7c3da91fc89a.zip
(Info-search): Print the default as part of the prompt.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 6239b036fd3..a298607785d 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1097,8 +1097,12 @@ If FORK is a string, it is the name to use for the new buffer."
1097 1097
1098(defun Info-search (regexp) 1098(defun Info-search (regexp)
1099 "Search for REGEXP, starting from point, and select node it's found in." 1099 "Search for REGEXP, starting from point, and select node it's found in."
1100 (interactive (list (read-string "Regexp search: " 1100 (interactive (list (read-string
1101 nil 'Info-search-history))) 1101 (if Info-search-history
1102 (format "Regexp search (default `%s'): "
1103 (car Info-search-history))
1104 "Regexp search: ")
1105 nil 'Info-search-history)))
1102 (when transient-mark-mode 1106 (when transient-mark-mode
1103 (deactivate-mark)) 1107 (deactivate-mark))
1104 (when (equal regexp "") 1108 (when (equal regexp "")