aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/find-func.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index f174a64fcba..d2e10eab7dc 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -357,8 +357,10 @@ signal an error.
357 357
358If VERBOSE is non-nil, and FUNCTION is an alias, display a 358If VERBOSE is non-nil, and FUNCTION is an alias, display a
359message about the whole chain of aliases." 359message about the whole chain of aliases."
360 (let ((def (if (symbolp function) 360 (let ((def (when (symbolp function)
361 (find-function-advised-original function))) 361 (or (fboundp function)
362 (signal 'void-function (list function)))
363 (find-function-advised-original function)))
362 aliases) 364 aliases)
363 ;; FIXME for completeness, it might be nice to print something like: 365 ;; FIXME for completeness, it might be nice to print something like:
364 ;; foo (which is advised), which is an alias for bar (which is advised). 366 ;; foo (which is advised), which is an alias for bar (which is advised).