Skip to content

Commit

Permalink
Hack around a defadvice bug that causes a load error
Browse files Browse the repository at this point in the history
Hopefully addresses #18.
  • Loading branch information
DarwinAwardWinner committed Sep 5, 2013
1 parent da28383 commit 0f3bb89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ido-ubiquitous.el
Expand Up @@ -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
Expand Down

0 comments on commit 0f3bb89

Please sign in to comment.