diff options
author | Deepak Goel <deego@gnufans.org> | 2007-12-05 22:16:17 +0000 |
---|---|---|
committer | Deepak Goel <deego@gnufans.org> | 2007-12-05 22:16:17 +0000 |
commit | 8aa8da0595964fc0a0e5980b05afed9050031abe (patch) | |
tree | 3fc881a1af995ad8c77e0517f52d97122f756b72 /lisp/emacs-lisp | |
parent | b36fbf817e8bd6c2781991bccaeadb216783c72b (diff) | |
download | emacs-8aa8da0595964fc0a0e5980b05afed9050031abe.tar.gz emacs-8aa8da0595964fc0a0e5980b05afed9050031abe.tar.bz2 emacs-8aa8da0595964fc0a0e5980b05afed9050031abe.zip |
Make `find-function' prefer ".el" over "" to fix a bug (see emacs-devel)
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/find-func.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index b3c7c339030..24e26827f7c 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -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))) |