浏览代码

Detect if ido-mode is even enabled in the first place.

Phil Hagelberg 13 年之前
父节点
当前提交
b60a7ff43a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ido-ubiquitous.el

+ 2 - 1
ido-ubiquitous.el

@@ -50,7 +50,8 @@
 
 ;;;###autoload
 (defadvice completing-read (around use-ido-when-possible activate)
-  (if (or (not ido-ubiquitous-enabled) ; Manual override disable ido
+  (if (or (not ido-mode)
+          (not ido-ubiquitous-enabled) ; Manual override disable ido
           (and (boundp 'ido-cur-list)
                ido-cur-list)) ; Avoid infinite loop from ido calling this
       ad-do-it