diff options
| author | Juri Linkov | 2014-12-29 02:52:38 +0200 |
|---|---|---|
| committer | Juri Linkov | 2014-12-29 02:52:38 +0200 |
| commit | a0ae3d7331f6126941f90c6b80c293685004e165 (patch) | |
| tree | a333d8c13e0f7cbef21ed5e919f99fa601c128bd | |
| parent | df0f2a5f3b6c4e439215245d19f9e9cadb742581 (diff) | |
| download | emacs-a0ae3d7331f6126941f90c6b80c293685004e165.tar.gz emacs-a0ae3d7331f6126941f90c6b80c293685004e165.zip | |
More fixes to support multi-line search in comint
* lisp/comint.el (comint-history-isearch-message): Use field-beginning
instead of comint-line-beginning-position - that's more fixes for
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html
(comint-history-isearch-message): Fix args of isearch-message-prefix.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/comint.el | 16 |
2 files changed, 18 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6982ee9a3dd..37f3892e2cb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2014-12-29 Juri Linkov <juri@linkov.net> | 1 | 2014-12-29 Juri Linkov <juri@linkov.net> |
| 2 | 2 | ||
| 3 | * comint.el (comint-history-isearch-message): Use field-beginning | ||
| 4 | instead of comint-line-beginning-position - that's more fixes for | ||
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html | ||
| 6 | (comint-history-isearch-message): Fix args of isearch-message-prefix. | ||
| 7 | |||
| 8 | 2014-12-29 Juri Linkov <juri@linkov.net> | ||
| 9 | |||
| 3 | * vc/vc-dir.el (vc-dir-display-file): New command (bug#19450). | 10 | * vc/vc-dir.el (vc-dir-display-file): New command (bug#19450). |
| 4 | (vc-dir-mode-map): Bind it to "\C-o". | 11 | (vc-dir-mode-map): Bind it to "\C-o". |
| 5 | (vc-dir-menu-map): Add it to menu. | 12 | (vc-dir-menu-map): Add it to menu. |
diff --git a/lisp/comint.el b/lisp/comint.el index 3085052087c..4acaa30db91 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1532,14 +1532,20 @@ the function `isearch-message'." | |||
| 1532 | ;; the initial comint prompt. | 1532 | ;; the initial comint prompt. |
| 1533 | (if (overlayp comint-history-isearch-message-overlay) | 1533 | (if (overlayp comint-history-isearch-message-overlay) |
| 1534 | (move-overlay comint-history-isearch-message-overlay | 1534 | (move-overlay comint-history-isearch-message-overlay |
| 1535 | (save-excursion (forward-line 0) (point)) | 1535 | (save-excursion |
| 1536 | (comint-line-beginning-position)) | 1536 | (goto-char (field-beginning)) |
| 1537 | (forward-line 0) | ||
| 1538 | (point)) | ||
| 1539 | (field-beginning)) | ||
| 1537 | (setq comint-history-isearch-message-overlay | 1540 | (setq comint-history-isearch-message-overlay |
| 1538 | (make-overlay (save-excursion (forward-line 0) (point)) | 1541 | (make-overlay (save-excursion |
| 1539 | (comint-line-beginning-position))) | 1542 | (goto-char (field-beginning)) |
| 1543 | (forward-line 0) | ||
| 1544 | (point)) | ||
| 1545 | (field-beginning))) | ||
| 1540 | (overlay-put comint-history-isearch-message-overlay 'evaporate t)) | 1546 | (overlay-put comint-history-isearch-message-overlay 'evaporate t)) |
| 1541 | (overlay-put comint-history-isearch-message-overlay | 1547 | (overlay-put comint-history-isearch-message-overlay |
| 1542 | 'display (isearch-message-prefix c-q-hack ellipsis)) | 1548 | 'display (isearch-message-prefix ellipsis isearch-nonincremental)) |
| 1543 | (if (and comint-input-ring-index (not ellipsis)) | 1549 | (if (and comint-input-ring-index (not ellipsis)) |
| 1544 | ;; Display the current history index. | 1550 | ;; Display the current history index. |
| 1545 | (message "History item: %d" (1+ comint-input-ring-index)) | 1551 | (message "History item: %d" (1+ comint-input-ring-index)) |