[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/capf-autosuggest 200c509 50/63: Disable overlay before
From: |
ELPA Syncer |
Subject: |
[elpa] externals/capf-autosuggest 200c509 50/63: Disable overlay before executing a partial accept command |
Date: |
Wed, 27 Oct 2021 14:58:03 -0400 (EDT) |
branch: externals/capf-autosuggest
commit 200c5098570528f6bef094fbf0ca0d927b82c338
Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
Commit: jakanakaevangeli <jakanakaevangeli@chiru.no>
Disable overlay before executing a partial accept command
---
capf-autosuggest.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/capf-autosuggest.el b/capf-autosuggest.el
index 0968e6b..6dc124b 100644
--- a/capf-autosuggest.el
+++ b/capf-autosuggest.el
@@ -258,12 +258,13 @@ interactively. Afterwards, the added text is deleted,
but only
the portion after point. Additionally, if point is outside of
the added text, the whole text is deleted."
(let (beg end text)
+ (setq beg (overlay-start capf-autosuggest--overlay))
+ (capf-autosuggest-active-mode -1)
(with-silent-modifications
(catch 'cancel-atomic-change
(atomic-change-group
(save-excursion
- (goto-char (overlay-start capf-autosuggest--overlay))
- (setq beg (point))
+ (goto-char beg)
(insert-and-inherit capf-autosuggest--str)
(setq end (point)))
(call-interactively command)
@@ -311,10 +312,9 @@ the added text, the whole text is deleted."
Do not call this command if variable `capf-autosuggest-active-mode' is
inactive."
(interactive)
- (capf-autosuggest-call-partial-accept-cmd
- (lambda ()
- (interactive)
- (goto-char (overlay-start capf-autosuggest--overlay)))))
+ (when capf-autosuggest-active-mode
+ (goto-char (overlay-start capf-autosuggest--overlay))
+ (insert-and-inherit capf-autosuggest--str)))
(defun capf-autosuggest-comint-previous-matching-input-from-input (n)
"Like `comint-previous-matching-input-from-input'.
- [elpa] externals/capf-autosuggest abd71ab 29/63: Don't leak overlays when killing all local variables, (continued)
- [elpa] externals/capf-autosuggest abd71ab 29/63: Don't leak overlays when killing all local variables, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 8f091ce 26/63: Extend description, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 024d438 28/63: Don't exclude completion-in-region-mode, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 40336d0 38/63: Adjust short description, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 76b643a 34/63: Doc fixes and additions, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest b16a9d8 36/63: Silence compiler warnings, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 4461655 40/63: Try not to interfere with command output too much, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 84bdbc5 44/63: Fix completion-in-region popping up in eshell after "(forward", ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 2b241a4 43/63: Avoid recomputing string length, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 1ede511 46/63: Minor doc fix, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 200c509 50/63: Disable overlay before executing a partial accept command,
ELPA Syncer <=
- [elpa] externals/capf-autosuggest 3064910 54/63: Add undo-boundary when accepting suggestion, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 3f53162 58/63: Remove README, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 0bcdfae 59/63: Add license, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 05980d5 60/63: Adjust package headers, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 3e36894 61/63: Fix copyright notice, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 9fb8c7e 10/63: Fix cursor display if suggested string begins with newline, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest a5f0de5 19/63: Rearrange functions, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 8f0c505 11/63: Fix package header, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 74ed3c9 15/63: Doc fixes, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 65a33a7 05/63: Fix short description, ELPA Syncer, 2021/10/27