Просмотр исходного кода

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

Phil Hagelberg 13 лет назад
Родитель
Сommit
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