diff options
| author | Daniel Colascione | 2014-03-30 12:12:57 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-03-30 12:12:57 -0700 |
| commit | 1861d5a7121b349c4fb4db0ea06c898fcc85ca76 (patch) | |
| tree | 3251b77f0af62fae9a1704d6836d07e644c93c09 | |
| parent | f9d45267c81a05c1c7782aa38a1fcc018c013683 (diff) | |
| download | emacs-1861d5a7121b349c4fb4db0ea06c898fcc85ca76.tar.gz emacs-1861d5a7121b349c4fb4db0ea06c898fcc85ca76.zip | |
completion-in-region-mode improvements
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/comint.el | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
3 files changed, 17 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ce4ee87abaf..af658ee09b6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2014-03-30 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * comint.el (comint-send-input): Deactivate | ||
| 4 | completion-in-region-mode before we send comint input. | ||
| 5 | (Bug#17139). | ||
| 6 | |||
| 7 | * simple.el (keyboard-quit): Deactivate completion-in-region-mode | ||
| 8 | on keyboard-quit. | ||
| 9 | |||
| 1 | 2014-03-29 Glenn Morris <rgm@gnu.org> | 10 | 2014-03-29 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * textmodes/reftex.el: Manage most autoloads automatically. | 12 | * textmodes/reftex.el: Manage most autoloads automatically. |
diff --git a/lisp/comint.el b/lisp/comint.el index ec11d5b162b..dfc3fee0884 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1769,6 +1769,12 @@ If the Comint is Lucid Common Lisp, | |||
| 1769 | 1769 | ||
| 1770 | Similarly for Soar, Scheme, etc." | 1770 | Similarly for Soar, Scheme, etc." |
| 1771 | (interactive) | 1771 | (interactive) |
| 1772 | ;; If we're currently completing, stop. We're definitely done | ||
| 1773 | ;; completing, and by sending the input, we might cause side effects | ||
| 1774 | ;; that will confuse the code running in the completion | ||
| 1775 | ;; post-command-hook. | ||
| 1776 | (when completion-in-region-mode | ||
| 1777 | (completion-in-region-mode -1)) | ||
| 1772 | ;; Note that the input string does not include its terminal newline. | 1778 | ;; Note that the input string does not include its terminal newline. |
| 1773 | (let ((proc (get-buffer-process (current-buffer)))) | 1779 | (let ((proc (get-buffer-process (current-buffer)))) |
| 1774 | (if (not proc) (user-error "Current buffer has no process") | 1780 | (if (not proc) (user-error "Current buffer has no process") |
diff --git a/lisp/simple.el b/lisp/simple.el index 6cc9c6bfd6b..eee9c9b9689 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6580,6 +6580,8 @@ At top-level, as an editor command, this simply beeps." | |||
| 6580 | (deactivate-mark)) | 6580 | (deactivate-mark)) |
| 6581 | (if (fboundp 'kmacro-keyboard-quit) | 6581 | (if (fboundp 'kmacro-keyboard-quit) |
| 6582 | (kmacro-keyboard-quit)) | 6582 | (kmacro-keyboard-quit)) |
| 6583 | (when completion-in-region-mode | ||
| 6584 | (completion-in-region-mode -1)) | ||
| 6583 | (setq defining-kbd-macro nil) | 6585 | (setq defining-kbd-macro nil) |
| 6584 | (let ((debug-on-quit nil)) | 6586 | (let ((debug-on-quit nil)) |
| 6585 | (signal 'quit nil))) | 6587 | (signal 'quit nil))) |