Mercurial > emacs
changeset 69169:10a4ff23378e
(find-library-suffixes): Use `get-load-suffixes' instead of `load-suffixes'.
(find-library-name): Use `load-file-rep-suffixes' instead of '("").
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Mon, 27 Feb 2006 02:03:00 +0000 |
parents | 6e701396a0ec |
children | 7de818fd5125 |
files | lisp/emacs-lisp/find-func.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/find-func.el Mon Feb 27 02:01:08 2006 +0000 +++ b/lisp/emacs-lisp/find-func.el Mon Feb 27 02:03:00 2006 +0000 @@ -142,7 +142,7 @@ (defun find-library-suffixes () (let ((suffixes nil)) - (dolist (suffix load-suffixes (nreverse suffixes)) + (dolist (suffix (get-load-suffixes) (nreverse suffixes)) (unless (string-match "elc" suffix) (push suffix suffixes))))) (defun find-library-name (library) @@ -153,7 +153,7 @@ (setq library (replace-match "" t t library))) (or (locate-file library (or find-function-source-path load-path) - (append (find-library-suffixes) '(""))) + (append (find-library-suffixes) load-file-rep-suffixes)) (error "Can't find library %s" library))) (defvar find-function-C-source-directory