Pārlūkot izejas kodu

Hack around a defadvice bug that causes a load error

Hopefully addresses #18.
Ryan C. Thompson 11 gadi atpakaļ
vecāks
revīzija
0f3bb8929f
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      ido-ubiquitous.el

+ 4 - 1
ido-ubiquitous.el

@@ -599,7 +599,10 @@ If there is no override set for CMD in
 (defadvice command-execute (around ido-ubiquitous activate)
   "Implements the behavior specified in `ido-ubiquitous-command-overrides'."
   (ido-ubiquitous-with-override
-      (ido-ubiquitous-get-command-override (ad-get-arg 0))
+      (ido-ubiquitous-get-command-override
+       ;; Ugly hack because Emacs byte compiler doesn't know that CMD
+       ;; is defined for some reason
+       (bound-and-true-p cmd))
     ad-do-it))
 
 ;;; Other