]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't override completion-category-defaults in fido-mode
authorJoão Távora <joaotavora@gmail.com>
Wed, 7 Dec 2022 10:43:59 +0000 (10:43 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 7 Dec 2022 19:07:12 +0000 (19:07 +0000)
To more closely emulate ido-mode, fido-mode and fido-vertical-mode
strongly lean to the 'flex completion style.  But overriding
completion-category-defaults is not the correct way to do it, since
sometimes even the 'flex style isn't possible.

* lisp/icomplete.el (icomplete--fido-mode-setup): Don't set
completion-category-defaults here.

lisp/icomplete.el

index ef710d582d3825390ac2efcc6bd8c77b3e2ffa2c..983931c20cabd5e1d5bf1b28389db8c79a053c95 100644 (file)
@@ -416,7 +416,6 @@ if that doesn't produce a completion match."
                 icomplete-scroll (not (null icomplete-vertical-mode))
                 completion-styles '(flex)
                 completion-flex-nospace nil
-                completion-category-defaults nil
                 completion-ignore-case t
                 read-buffer-completion-ignore-case t
                 read-file-name-completion-ignore-case t)))