Browse Source

Add a better workaround for #146

Ryan C. Thompson 7 years ago
parent
commit
d3493021f4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ido-completing-read+.el

+ 6 - 0
ido-completing-read+.el

@@ -520,6 +520,12 @@ completion for them."
           (if ido-cr+-dynamic-collection
               (memoize (indirect-function 'all-completions))
             'all-completions))
+         ;; Disable flx-ido for dynamic collections in Emacs 26.
+         ;; Temporary workaround for #146.
+         (flx-ido-mode
+          (and flx-ido-mode
+               (or (version< emacs-version "26")
+                   (not ido-cr+-dynamic-collection))))
          ;; If the whitelist is empty, everything is whitelisted
          (whitelisted (not ido-cr+-function-whitelist))
          ;; If non-nil, we need alternate nil DEF handling