(occur-read-primary-args): Set default to the car of
authorJuri Linkov <juri@jurta.org>
Thu, 1 May 2008 23:55:44 +0000 (23:55 +0000)
committerJuri Linkov <juri@jurta.org>
Thu, 1 May 2008 23:55:44 +0000 (23:55 +0000)
commit360289a661cb8a72d83683ed5d636eb8d80160a4
tree64f790a98c6baf4bda3e56d274eaaef6ea5a5abf
parentdffd9d9ad62e23829304abea77dc3b2b6dacb86c
(occur-read-primary-args): Set default to the car of
regexp-history and display it in the prompt, but don't add to the
list of minibuffer defaults.  Bind history-add-new-input to nil to
not add automatically `default'.  For empty input return `default'.
Otherwise, add `input' to regexp-history and return it.
(occur-1): Signal an error for the empty regexp.
lisp/replace.el