emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/capf-autosuggest 025afdf 53/63: Prevent capf functions


From: ELPA Syncer
Subject: [elpa] externals/capf-autosuggest 025afdf 53/63: Prevent capf functions from moving point
Date: Wed, 27 Oct 2021 14:58:03 -0400 (EDT)

branch: externals/capf-autosuggest
commit 025afdf80288d63f40a9e050b7644a221f1ac9da
Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
Commit: jakanakaevangeli <jakanakaevangeli@chiru.no>

    Prevent capf functions from moving point
---
 capf-autosuggest.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/capf-autosuggest.el b/capf-autosuggest.el
index 9327ac7..4d33eea 100644
--- a/capf-autosuggest.el
+++ b/capf-autosuggest.el
@@ -184,8 +184,10 @@ Otherwise, return nil."
              (condition-case nil
                  (catch catch-sym
                    (while-no-input
-                     (capf-autosuggest-orig-capf
-                      'capf-autosuggest-capf-functions)))
+                     ;; `ielm-complete-filename' may illegaly move point
+                     (save-excursion
+                       (capf-autosuggest-orig-capf
+                        'capf-autosuggest-capf-functions))))
                ((buffer-read-only quit) t)))
       (`(,beg ,end ,table . ,plist)
        (let* ((pred (plist-get plist :predicate))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]