mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(occur): If no default, don't mention one.
This commit is contained in:
parent
f05f43e747
commit
166aaf6fb5
1 changed files with 3 additions and 1 deletions
|
|
@ -276,7 +276,9 @@ It serves as a menu to find any of the occurrences in this buffer.
|
|||
(interactive (list (let* ((default (car regexp-history))
|
||||
(input
|
||||
(read-from-minibuffer
|
||||
(format "List lines matching regexp (default `%s'): " default)
|
||||
(if default
|
||||
(format "List lines matching regexp (default `%s'): " default)
|
||||
"List lines matching regexp: ")
|
||||
nil nil nil
|
||||
'regexp-history)))
|
||||
(if (> (length input) 0) input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue