浏览代码

Use "ad-get-arg" in some advices

Ryan C. Thompson 11 年之前
父节点
当前提交
7ccd8c9529
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ido-ubiquitous.el

+ 2 - 2
ido-ubiquitous.el

@@ -600,13 +600,13 @@ If there is no override set for CMD in
 (defadvice call-interactively (around ido-ubiquitous activate)
   "Implements the behavior specified in `ido-ubiquitous-command-overrides'."
   (ido-ubiquitous-with-override
-      (ido-ubiquitous-get-command-override function)
+      (ido-ubiquitous-get-command-override (ad-get-arg 0))
     ad-do-it))
 
 (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 cmd)
+      (ido-ubiquitous-get-command-override (ad-get-arg 0))
     ad-do-it))
 
 ;;; Other