From 4dbf594b9ff464fbf64b46120d19fb064db14753 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 12 Sep 2002 21:48:20 +0000 Subject: [PATCH] (find-library-name): Don't forget the empty suffix. Fix stale variable name. --- lisp/emacs-lisp/find-func.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5