浏览代码

Remove redundant advice on command-execute

This used to be necessary because it called call-interactively in C
code, where advice is not used, but now it does a proper lisp call to
call-interactively, so the advice on that gets used no matter what.
Ryan C. Thompson 11 年之前
父节点
当前提交
56c0796d57
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      ido-ubiquitous.el

+ 0 - 9
ido-ubiquitous.el

@@ -616,15 +616,6 @@ If there is no override set for CMD in
       (ido-ubiquitous-get-command-override (ad-get-arg 0))
       (ido-ubiquitous-get-command-override (ad-get-arg 0))
     ad-do-it))
     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
-       ;; Ugly hack because Emacs byte compiler doesn't know that CMD
-       ;; is defined for some reason
-       (bound-and-true-p cmd))
-    ad-do-it))
-
 ;;; Workaround for https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/24
 ;;; Workaround for https://github.com/DarwinAwardWinner/ido-ubiquitous/issues/24
 
 
 ;; When `call-interactively' is advised, `called-interactively-p'
 ;; When `call-interactively' is advised, `called-interactively-p'