Browse Source

Use "ad-get-arg" in some advices

Ryan C. Thompson 11 years ago
parent
commit
7ccd8c9529
1 changed files with 2 additions and 2 deletions
  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