diff options
| author | Luc Teirlinck | 2006-02-27 02:03:00 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2006-02-27 02:03:00 +0000 |
| commit | f352b9d7735eb10f2c604aa9ba0bc8f8ee964d1b (patch) | |
| tree | 66d1c7d3e599b242bda33a35f573134e540b6def | |
| parent | 667b73dcdff92ed14f0266c257a26b6958436ab8 (diff) | |
| download | emacs-f352b9d7735eb10f2c604aa9ba0bc8f8ee964d1b.tar.gz emacs-f352b9d7735eb10f2c604aa9ba0bc8f8ee964d1b.zip | |
(find-library-suffixes): Use `get-load-suffixes' instead of `load-suffixes'.
(find-library-name): Use `load-file-rep-suffixes' instead of '("").
| -rw-r--r-- | lisp/emacs-lisp/find-func.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 8776d4522c2..4f961df0791 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el | |||
| @@ -142,7 +142,7 @@ See the functions `find-function' and `find-variable'." | |||
| 142 | 142 | ||
| 143 | (defun find-library-suffixes () | 143 | (defun find-library-suffixes () |
| 144 | (let ((suffixes nil)) | 144 | (let ((suffixes nil)) |
| 145 | (dolist (suffix load-suffixes (nreverse suffixes)) | 145 | (dolist (suffix (get-load-suffixes) (nreverse suffixes)) |
| 146 | (unless (string-match "elc" suffix) (push suffix suffixes))))) | 146 | (unless (string-match "elc" suffix) (push suffix suffixes))))) |
| 147 | 147 | ||
| 148 | (defun find-library-name (library) | 148 | (defun find-library-name (library) |
| @@ -153,7 +153,7 @@ See the functions `find-function' and `find-variable'." | |||
| 153 | (setq library (replace-match "" t t library))) | 153 | (setq library (replace-match "" t t library))) |
| 154 | (or (locate-file library | 154 | (or (locate-file library |
| 155 | (or find-function-source-path load-path) | 155 | (or find-function-source-path load-path) |
| 156 | (append (find-library-suffixes) '(""))) | 156 | (append (find-library-suffixes) load-file-rep-suffixes)) |
| 157 | (error "Can't find library %s" library))) | 157 | (error "Can't find library %s" library))) |
| 158 | 158 | ||
| 159 | (defvar find-function-C-source-directory | 159 | (defvar find-function-C-source-directory |