瀏覽代碼

Add a better workaround for #146

Ryan C. Thompson 7 年之前
父節點
當前提交
d3493021f4
共有 1 個文件被更改,包括 6 次插入0 次删除
  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