Commit 4dbf594b authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(find-library-name): Don't forget the empty suffix. Fix stale variable name.

parent df52e0e7
......@@ -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)
(error "Can't find library %s" file)))
(append (find-library-suffixes) ""))
(error "Can't find library %s" library)))
(defun find-library (library)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment