branch: externals/company
commit 61d992bd62ebaacf6d3e9e621951f6408006fc54
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    Remove :company-use-while-no-input, just default to interrupting
    
    As long as completion is `non-essential', of course.
    
    #1468
    
    Resulting from this thread:
    https://lists.gnu.org/archive/html/emacs-devel/2024-05/msg01217.html
    
    This makes company-capf more compatible with Corfu, Cc @minad
---
 company-capf.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/company-capf.el b/company-capf.el
index 8d796f5f01..2543f3d8d2 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -189,12 +189,10 @@ so we can't just use the preceding variable instead.")
                      table pred))))
     (company-capf--save-current-data res meta)
     (when res
-      (let* ((interrupt (plist-get (nthcdr 4 res) :company-use-while-no-input))
-             (candidates (company-capf--candidates-1 input table pred
+      (let* ((candidates (company-capf--candidates-1 input table pred
                                                      (length input)
                                                      meta
-                                                     (and non-essential
-                                                          interrupt)))
+                                                     non-essential))
              (sortfun (cdr (assq 'display-sort-function meta)))
              (last (last candidates))
              (base-size (and (numberp (cdr last)) (cdr last))))

Reply via email to