aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-24 18:42:33 +0000
committerRichard M. Stallman1993-07-24 18:42:33 +0000
commit166aaf6fb59de9e0b32ec6d75ac316b829d95fe6 (patch)
treec7997b7861c5cf451de5a7b55c1a61f776e91389
parentf05f43e747fc7f072d445df6a4de7dfb1998acbb (diff)
downloademacs-166aaf6fb59de9e0b32ec6d75ac316b829d95fe6.tar.gz
emacs-166aaf6fb59de9e0b32ec6d75ac316b829d95fe6.zip
(occur): If no default, don't mention one.
-rw-r--r--lisp/replace.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 49f3920dded..2a4dad983a1 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -276,7 +276,9 @@ It serves as a menu to find any of the occurrences in this buffer.
276 (interactive (list (let* ((default (car regexp-history)) 276 (interactive (list (let* ((default (car regexp-history))
277 (input 277 (input
278 (read-from-minibuffer 278 (read-from-minibuffer
279 (format "List lines matching regexp (default `%s'): " default) 279 (if default
280 (format "List lines matching regexp (default `%s'): " default)
281 "List lines matching regexp: ")
280 nil nil nil 282 nil nil nil
281 'regexp-history))) 283 'regexp-history)))
282 (if (> (length input) 0) input 284 (if (> (length input) 0) input