diff options
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/comint.el | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8ae0d57023d..b1d4e26dfdb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-01-16 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * comint.el (comint-regexp-arg): Fix no-input case. | ||
| 4 | |||
| 1 | 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * smerge-mode.el (smerge-start-session): Rename from smerge-auto. | 7 | * smerge-mode.el (smerge-start-session): Rename from smerge-auto. |
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 | ||