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

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

[nongnu] externals/sly 773595a 3/7: Play nice with latest version of fid


From: Stefan Monnier
Subject: [nongnu] externals/sly 773595a 3/7: Play nice with latest version of fido-mode
Date: Sat, 21 Nov 2020 01:34:52 -0500 (EST)

branch: externals/sly
commit 773595accb1260e2d5823294888f9ec9e488090c
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Play nice with latest version of fido-mode
    
    Fido-mode disregards completion-category-defaults to promote 'flex
    among completion styles.  However, Emacs's 'flex' isn't workable for
    SLY, which uses its own flex-like completion style, 'backend'.
    Icomplete and vanilla completion respect that, but fido-mode was
    missing out.
    
    * lib/sly-completion.el (sly-read-symbol-name): Bind
    completion-category-overrides.
---
 lib/sly-completion.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/sly-completion.el b/lib/sly-completion.el
index 3a600cb..922dc8b 100644
--- a/lib/sly-completion.el
+++ b/lib/sly-completion.el
@@ -746,6 +746,9 @@ was given and ALLOW-EMPTY is non-nil)."
 The user is prompted if a prefix argument is in effect, if there is no
 symbol at point, or if QUERY is non-nil."
   (let* ((sym-at-point (sly-symbol-at-point))
+         (completion-category-overrides
+          (cons '(sly-completion (styles . (backend)))
+                completion-category-overrides))
          (wrapper (sly--completion-function-wrapper 
sly-complete-symbol-function))
          (do-it (lambda () (completing-read prompt wrapper nil nil 
sym-at-point))))
     (cond ((or current-prefix-arg query (not sym-at-point))



reply via email to

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