Commit aeab5be0 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(occur): Pass default to read-from-minibuffer so that

M-n can insert default value into minibuffer.
parent 13161e8b
;;; 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'): "
"List lines matching regexp: ")
nil nil nil 'regexp-history nil t)))
(if (string-equal input "")
(set-text-properties 0 (length input) nil input)
nil nil nil 'regexp-history default t)))
(set-text-properties 0 (length input) nil input)
(let ((nlines (if nlines
(prefix-numeric-value nlines)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment