+2008-01-16 Glenn Morris <rgm@gnu.org>
+
+ * comint.el (comint-regexp-arg): Fix no-input case.
+
2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
* smerge-mode.el (smerge-start-session): Rename from smerge-auto.
(last-command last-command)
(regexp (read-from-minibuffer prompt nil nil nil
'minibuffer-history-search-history)))
+ ;; If the user didn't enter anything, nothing is added to m-h-s-h.
+ ;; Use the previous search regexp, if there is one.
(list (if (string-equal regexp "")
- (setcar minibuffer-history-search-history
- (nth 1 minibuffer-history-search-history))
+ (or (car minibuffer-history-search-history)
+ regexp)
regexp)
(prefix-numeric-value current-prefix-arg))))