diff options
Diffstat (limited to 'lisp/comint.el')
| -rw-r--r-- | lisp/comint.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index d5d95f8cbc0..d0c2e477d5a 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1191,7 +1191,8 @@ If N is negative, find the next or Nth next match." | |||
| 1191 | (setq comint-stored-incomplete-input | 1191 | (setq comint-stored-incomplete-input |
| 1192 | (funcall comint-get-old-input))) | 1192 | (funcall comint-get-old-input))) |
| 1193 | (setq comint-input-ring-index pos) | 1193 | (setq comint-input-ring-index pos) |
| 1194 | (message "History item: %d" (1+ pos)) | 1194 | (unless isearch-mode |
| 1195 | (message "History item: %d" (1+ pos))) | ||
| 1195 | (comint-delete-input) | 1196 | (comint-delete-input) |
| 1196 | (insert (ring-ref comint-input-ring pos))))) | 1197 | (insert (ring-ref comint-input-ring pos))))) |
| 1197 | 1198 | ||
| @@ -1540,8 +1541,11 @@ the function `isearch-message'." | |||
| 1540 | (overlay-put comint-history-isearch-message-overlay 'evaporate t)) | 1541 | (overlay-put comint-history-isearch-message-overlay 'evaporate t)) |
| 1541 | (overlay-put comint-history-isearch-message-overlay | 1542 | (overlay-put comint-history-isearch-message-overlay |
| 1542 | 'display (isearch-message-prefix c-q-hack ellipsis)) | 1543 | 'display (isearch-message-prefix c-q-hack ellipsis)) |
| 1543 | ;; And clear any previous isearch message. | 1544 | (if (and comint-input-ring-index (not ellipsis)) |
| 1544 | (message ""))) | 1545 | ;; Display the current history index. |
| 1546 | (message "History item: %d" (1+ comint-input-ring-index)) | ||
| 1547 | ;; Or clear a previous isearch message. | ||
| 1548 | (message "")))) | ||
| 1545 | 1549 | ||
| 1546 | (defun comint-history-isearch-wrap () | 1550 | (defun comint-history-isearch-wrap () |
| 1547 | "Wrap the input history search when search fails. | 1551 | "Wrap the input history search when search fails. |