diff lisp/info.el @ 35136:1eb26b81ece0

(Info-search): Print the default as part of the prompt.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 08 Jan 2001 16:59:54 +0000
parents dfb7567dbcfd
children da44bbe7fde5
line wrap: on
line diff
--- a/lisp/info.el	Mon Jan 08 16:32:12 2001 +0000
+++ b/lisp/info.el	Mon Jan 08 16:59:54 2001 +0000
@@ -1097,8 +1097,12 @@
 
 (defun Info-search (regexp)
   "Search for REGEXP, starting from point, and select node it's found in."
-  (interactive (list (read-string "Regexp search: "
- 				  nil 'Info-search-history)))
+  (interactive (list (read-string
+		      (if Info-search-history
+			  (format "Regexp search (default `%s'): "
+				  (car Info-search-history))
+			"Regexp search: ")
+		      nil 'Info-search-history)))
   (when transient-mark-mode
     (deactivate-mark))
   (when (equal regexp "")