From 71c152e2af45e79bcc7e58a47571f83d6811256c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 26 May 2016 19:50:54 -0400 Subject: [PATCH] * lisp/emacs-lisp/find-func.el (find-function-library): Update for symbol-function no longer erroring. (Bug#23626) --- lisp/emacs-lisp/find-func.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index f174a64fcb..d2e10eab7d 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -357,8 +357,10 @@ signal an error. If VERBOSE is non-nil, and FUNCTION is an alias, display a message about the whole chain of aliases." - (let ((def (if (symbolp function) - (find-function-advised-original function))) + (let ((def (when (symbolp function) + (or (fboundp function) + (signal 'void-function (list function))) + (find-function-advised-original function))) aliases) ;; FIXME for completeness, it might be nice to print something like: ;; foo (which is advised), which is an alias for bar (which is advised). -- 2.39.2