diff options
| author | Juri Linkov | 2013-05-01 11:05:05 +0300 |
|---|---|---|
| committer | Juri Linkov | 2013-05-01 11:05:05 +0300 |
| commit | 9e9be37c1870d81de1c375a6231ea1deec2834b1 (patch) | |
| tree | 15fbf92810a53c6a555b2e982f0ac0eaa764460e | |
| parent | 0fb0a4f376b5f19010055ebaf4f6bc24eca4fe28 (diff) | |
| download | emacs-9e9be37c1870d81de1c375a6231ea1deec2834b1.tar.gz emacs-9e9be37c1870d81de1c375a6231ea1deec2834b1.zip | |
* lisp/comint.el (comint-previous-matching-input): Don't print message
"History item: %d" when `isearch-mode' is active.
(comint-history-isearch-message): Print message "History item: %d"
when `comint-input-ring-index' is not empty and this function is
called from `isearch-update' with a nil `ellipsis'.
Fixes: debbugs:13223
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/comint.el | 10 |
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index edc75c736ad..cf2ac52dcbb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-05-01 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * comint.el (comint-previous-matching-input): Don't print message | ||
| 4 | "History item: %d" when `isearch-mode' is active. | ||
| 5 | (comint-history-isearch-message): Print message "History item: %d" | ||
| 6 | when `comint-input-ring-index' is not empty and this function is | ||
| 7 | called from `isearch-update' with a nil `ellipsis'. (Bug#13223) | ||
| 8 | |||
| 1 | 2013-05-01 Leo Liu <sdl.web@gmail.com> | 9 | 2013-05-01 Leo Liu <sdl.web@gmail.com> |
| 2 | 10 | ||
| 3 | * progmodes/octave.el (octave-abbrev-table): Remove abbrev | 11 | * progmodes/octave.el (octave-abbrev-table): Remove abbrev |
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. |