aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorGlenn Morris2008-01-16 08:11:05 +0000
committerGlenn Morris2008-01-16 08:11:05 +0000
commitb11a06ccc7ea7e282e435bf4b3e46f4ed3bee9f1 (patch)
treec011f46d2884a8920e3f8b63d5208333bdb234f0 /lisp/comint.el
parent28e4e2b434e3574f01b69c585dcccaecde6c940f (diff)
downloademacs-b11a06ccc7ea7e282e435bf4b3e46f4ed3bee9f1.tar.gz
emacs-b11a06ccc7ea7e282e435bf4b3e46f4ed3bee9f1.zip
(comint-regexp-arg): Fix no-input case.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 6fb89e28181..70d6f85ff68 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1022,9 +1022,11 @@ See also `comint-read-input-ring'."
1022 (last-command last-command) 1022 (last-command last-command)
1023 (regexp (read-from-minibuffer prompt nil nil nil 1023 (regexp (read-from-minibuffer prompt nil nil nil
1024 'minibuffer-history-search-history))) 1024 'minibuffer-history-search-history)))
1025 ;; If the user didn't enter anything, nothing is added to m-h-s-h.
1026 ;; Use the previous search regexp, if there is one.
1025 (list (if (string-equal regexp "") 1027 (list (if (string-equal regexp "")
1026 (setcar minibuffer-history-search-history 1028 (or (car minibuffer-history-search-history)
1027 (nth 1 minibuffer-history-search-history)) 1029 regexp)
1028 regexp) 1030 regexp)
1029 (prefix-numeric-value current-prefix-arg)))) 1031 (prefix-numeric-value current-prefix-arg))))
1030 1032