浏览代码

Hack around a defadvice bug that causes a load error

Hopefully addresses #18.
Ryan C. Thompson 11 年之前
父节点
当前提交
0f3bb8929f
共有 1 个文件被更改,包括 4 次插入1 次删除
  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