diff options
| -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 |