aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2016-05-26 19:50:54 -0400
committerGlenn Morris2016-05-26 19:50:54 -0400
commit71c152e2af45e79bcc7e58a47571f83d6811256c (patch)
tree7249465f5fb49b2038ad2f408cae5126f4576cfe
parentc3489d050405ccb026cd44a280ead3a5f6b456d9 (diff)
downloademacs-71c152e2af45e79bcc7e58a47571f83d6811256c.tar.gz
emacs-71c152e2af45e79bcc7e58a47571f83d6811256c.zip
* lisp/emacs-lisp/find-func.el (find-function-library):
Update for symbol-function no longer erroring. (Bug#23626)
-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).