]> git.eshelyaron.com Git - emacs.git/commitdiff
Make `find-function' prefer ".el" over "" to fix a bug (see emacs-devel)
authorDeepak Goel <deego@gnufans.org>
Wed, 5 Dec 2007 22:16:17 +0000 (22:16 +0000)
committerDeepak Goel <deego@gnufans.org>
Wed, 5 Dec 2007 22:16:17 +0000 (22:16 +0000)
lisp/emacs-lisp/find-func.el

index b3c7c339030daff2647eae56d6803fc273bc0a38..24e26827f7cd5f67e8aa5b2143505eae83217531 100644 (file)
@@ -149,10 +149,14 @@ See the functions `find-function' and `find-variable'."
   ;; the same name.
   (if (string-match "\\.el\\(c\\(\\..*\\)?\\)\\'" library)
       (setq library (replace-match "" t t library)))
-  (or (locate-file library
-                  (or find-function-source-path load-path)
-                  (append (find-library-suffixes) load-file-rep-suffixes))
-      (error "Can't find library %s" library)))
+  (or 
+   (locate-file library
+               (or find-function-source-path load-path)
+               (find-library-suffixes))
+   (locate-file library
+               (or find-function-source-path load-path)
+               load-file-rep-suffixes)
+   (error "Can't find library %s" library)))
 
 (defvar find-function-C-source-directory
   (let ((dir (expand-file-name "src" source-directory)))