to take advantage of `find-library-suffixes'.
+2005-10-25 Romain Francoise <romain@orebokech.com>
+
+ * emacs-lisp/find-func.el (find-library-name): Also strip
+ extension if library name ends in .el, to take advantage of
+ `find-library-suffixes'.
+
2005-10-25 Richard M. Stallman <rms@gnu.org>
* menu-bar.el (menu-bar-help-menu): Say which kind of therapist.
(defun find-library-name (library)
"Return the absolute file name of the Lisp source of LIBRARY."
- ;; If the library is byte-compiled, try to find a source library by
- ;; the same name.
- (if (string-match "\\.el\\(c\\(\\..*\\)?\\)\\'" library)
+ ;; Strip off the extension to take advantage of library suffixes in
+ ;; the call to `locate-file'.
+ (if (string-match "\\.el\\(c\\(\\..*\\)?\\)?\\'" library)
(setq library (replace-match "" t t library)))
(or (locate-file library
(or find-function-source-path load-path)