Commit a8e96cea authored by Karl Heuer's avatar Karl Heuer
Browse files


No longer remove empty string from history.
Better error message if history is empty.
parent dfb7d195
......@@ -563,8 +563,9 @@ If N is negative, find the next or Nth next match."
;; Use the last regexp specified, by default, if input is empty.
(list (if (string= regexp "")
(setcar minibuffer-history-search-history
(nth 1 minibuffer-history-search-history))
(if minibuffer-history-search-history
(car minibuffer-history-search-history)
(error "No previous history search regexp"))
(prefix-numeric-value current-prefix-arg))))
(let ((history (symbol-value minibuffer-history-variable))
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