summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/find-func.el
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2006-11-21 20:06:53 +0000
committerRomain Francoise <romain@orebokech.com>2006-11-21 20:06:53 +0000
commitfef1f0f2a53aefd5c3e44fc48c02aabb891232ba (patch)
treedc8f7c3d70441c72d8be535fc59e32046e0a5a24 /lisp/emacs-lisp/find-func.el
parent2d1af8babff10f98d64dbdcf97dcefcc64ccd894 (diff)
downloademacs-fef1f0f2a53aefd5c3e44fc48c02aabb891232ba.tar.gz
(find-library-name): Don't strip ".el" from library name (reverts change
of 2005-10-25).
Diffstat (limited to 'lisp/emacs-lisp/find-func.el')
-rw-r--r--lisp/emacs-lisp/find-func.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 10a052dc97e..a51493d22ea 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -147,9 +147,9 @@ See the functions `find-function' and `find-variable'."
(defun find-library-name (library)
"Return the absolute file name of the Lisp source of LIBRARY."
- ;; Strip off the extension to take advantage of library suffixes in
- ;; the call to `locate-file'.
- (if (string-match "\\.el\\(c\\(\\..*\\)?\\)?\\'" library)
+ ;; If the library is byte-compiled, try to find a source library by
+ ;; 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)