Explorar el Código

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

Phil Hagelberg hace 13 años
padre
commit
b60a7ff43a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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