From: Stefan Monnier Date: Thu, 12 Sep 2002 21:48:20 +0000 (+0000) Subject: (find-library-name): Don't forget the empty suffix. Fix stale variable name. X-Git-Tag: ttn-vms-21-2-B4~13198 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4dbf594b9ff464fbf64b46120d19fb064db14753;p=emacs.git (find-library-name): Don't forget the empty suffix. Fix stale variable name. --- diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 40016cec928..6186577079e 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -125,8 +125,8 @@ See the functions `find-function' and `find-variable'." (setq library (replace-match "" t t library 1))) (or (locate-file library (or find-function-source-path load-path) - (find-library-suffixes)) - (error "Can't find library %s" file))) + (append (find-library-suffixes) "")) + (error "Can't find library %s" library))) ;;;###autoload (defun find-library (library)