From 97100b43793e0e123068bd31691659886a066f39 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 12 May 2014 01:25:34 -0400 Subject: * lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled into autoloading just because of a silly indirection. --- lisp/emacs-lisp/nadvice.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') 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))))))) -- cgit v1.2.3