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

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

[nongnu] elpa/sly 6669067: Also sly-completion category to completion-ca


From: ELPA Syncer
Subject: [nongnu] elpa/sly 6669067: Also sly-completion category to completion-category-overrides
Date: Sun, 21 Nov 2021 04:58:00 -0500 (EST)

branch: elpa/sly
commit 6669067eea1f63c3c9e6c34ac8d453be76774f6c
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Also sly-completion category to completion-category-overrides
    
    It was already in completion-category-defaults but we really need it
    to override the UI's or the user's chosen completion style.
    
    * lib/sly-completion.el (completion-category-overrides): Add entry
    for sly-completion.
---
 lib/sly-completion.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/sly-completion.el b/lib/sly-completion.el
index 4c78780..5839ed4 100644
--- a/lib/sly-completion.el
+++ b/lib/sly-completion.el
@@ -234,11 +234,8 @@ ANNOTATION) describing each completion possibility."
                  (car new))
          (cadr new))))
 
-;; TODO: this `basic' completion style is actually a `backend'
-;; completion style, meaning a completion style where the filtering is
-;; done entirely by the backend.
-(when (boundp 'completion-category-defaults)
-  (add-to-list 'completion-category-defaults
+(when (boundp 'completion-category-overrides)
+  (add-to-list 'completion-category-overrides
                '(sly-completion (styles . (backend)))))
 
 (defun sly--completion-function-wrapper (fn)



reply via email to

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