branch: externals/sly
commit 773595accb1260e2d5823294888f9ec9e488090c
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
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))