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

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

[elpa] externals/company b05e9ea272 1/5: Revert "Remove :company-use-whi


From: ELPA Syncer
Subject: [elpa] externals/company b05e9ea272 1/5: Revert "Remove :company-use-while-no-input, just default to interrupting"
Date: Mon, 24 Jun 2024 21:57:40 -0400 (EDT)

branch: externals/company
commit b05e9ea272312036fdc7df93fa8757f6c74a7b27
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    Revert "Remove :company-use-while-no-input, just default to interrupting"
    
    This reverts commit 61d992bd62ebaacf6d3e9e621951f6408006fc54.
    
    Update for #1468.
---
 company-capf.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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



reply via email to

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