]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/find-func.el (find-function-library):
authorGlenn Morris <rgm@gnu.org>
Thu, 26 May 2016 23:50:54 +0000 (19:50 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 26 May 2016 23:50:54 +0000 (19:50 -0400)
Update for symbol-function no longer erroring.  (Bug#23626)

lisp/emacs-lisp/find-func.el

index f174a64fcbac1dcaaf00513c43162cc84d3dd7b2..d2e10eab7dce3496cbe27be52ed66e7407062a9e 100644 (file)
@@ -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).