# HG changeset patch # User Romain Francoise # Date 1164139613 0 # Node ID db85df5747aedd87f7fba635e3a54b3a7fe7c20f # Parent 0c249832f2a3bcec5fc297cbea4bcb2b83ece10f (find-library-name): Don't strip ".el" from library name (reverts change of 2005-10-25). diff -r 0c249832f2a3 -r db85df5747ae lisp/ChangeLog --- a/lisp/ChangeLog Tue Nov 21 17:27:51 2006 +0000 +++ b/lisp/ChangeLog Tue Nov 21 20:06:53 2006 +0000 @@ -1,3 +1,8 @@ +2006-11-21 Romain Francoise + + * emacs-lisp/find-func.el (find-library-name): Don't strip ".el" + from library name (reverts change of 2005-10-25). + 2006-11-21 Lennart Borgman * tutorial.el (tutorial--default-keys): Add newline and diff -r 0c249832f2a3 -r db85df5747ae lisp/emacs-lisp/find-func.el --- a/lisp/emacs-lisp/find-func.el Tue Nov 21 17:27:51 2006 +0000 +++ b/lisp/emacs-lisp/find-func.el Tue Nov 21 20:06:53 2006 +0000 @@ -147,9 +147,9 @@ (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)