summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-01-03 07:06:18 +0000
committerRichard M. Stallman <rms@gnu.org>1998-01-03 07:06:18 +0000
commitaeab5be0a87197d1aabc4f43f577afa79e5161cb (patch)
tree5d6936da89dade3ba3a446306eba3abd3547f322 /lisp/replace.el
parent13161e8bd9a9c5362073276c017ff39fd547659d (diff)
downloademacs-aeab5be0a87197d1aabc4f43f577afa79e5161cb.tar.gz
(occur): Pass default to read-from-minibuffer so that
M-n can insert default value into minibuffer.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index be006618d83..bfe47d20d6c 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1,6 +1,6 @@
;;; replace.el --- replace commands for Emacs.
-;; Copyright (C) 1985, 1986, 1987, 1992, 1994, 1996 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 86, 87, 92, 94, 96, 1997 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
@@ -405,11 +405,9 @@ the matching is case-sensitive."
(format "List lines matching regexp (default `%s'): "
default)
"List lines matching regexp: ")
- nil nil nil 'regexp-history nil t)))
- (if (string-equal input "")
- default
- (set-text-properties 0 (length input) nil input)
- input))
+ nil nil nil 'regexp-history default t)))
+ (set-text-properties 0 (length input) nil input)
+ input)
current-prefix-arg))
(let ((nlines (if nlines
(prefix-numeric-value nlines)