summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/nadvice.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-05-12 01:25:34 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-05-12 01:25:34 -0400
commit97100b43793e0e123068bd31691659886a066f39 (patch)
tree0dbd2947981d7fd092710f47910a4b06b0366e63 /lisp/emacs-lisp/nadvice.el
parent970fd40117f1af062578da2432fafa267893f838 (diff)
downloademacs-97100b43793e0e123068bd31691659886a066f39.tar.gz
* lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled
into autoloading just because of a silly indirection.
Diffstat (limited to 'lisp/emacs-lisp/nadvice.el')
-rw-r--r--lisp/emacs-lisp/nadvice.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index 332d1ed61b6..01027c43148 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -134,7 +134,7 @@ Each element has the form (WHERE BYTECODE STACK) where:
(defun advice--interactive-form (function)
;; Like `interactive-form' but tries to avoid autoloading functions.
(when (commandp function)
- (if (not (and (symbolp function) (autoloadp (symbol-function function))))
+ (if (not (and (symbolp function) (autoloadp (indirect-function function))))
(interactive-form function)
`(interactive (advice-eval-interactive-spec
(cadr (interactive-form ',function)))))))