# HG changeset patch # User Richard M. Stallman # Date 883811178 0 # Node ID a30c6f1b33355df3355d76551cb630f77615349a # Parent 7eb29ad824ebf23086a70480c31e8276e3c3ff32 (occur): Pass default to read-from-minibuffer so that M-n can insert default value into minibuffer. diff -r 7eb29ad824eb -r a30c6f1b3335 lisp/replace.el --- a/lisp/replace.el Sat Jan 03 00:04:35 1998 +0000 +++ b/lisp/replace.el Sat Jan 03 07:06:18 1998 +0000 @@ -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 @@ (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)