diff options
| author | Luc Teirlinck | 2006-02-27 02:01:08 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2006-02-27 02:01:08 +0000 |
| commit | 667b73dcdff92ed14f0266c257a26b6958436ab8 (patch) | |
| tree | 936c4d3f69a5a7780dcf0d489b7be4046f660cd4 | |
| parent | de10856c9dbce0840b044d023f7cc82bfcf638db (diff) | |
| download | emacs-667b73dcdff92ed14f0266c257a26b6958436ab8.tar.gz emacs-667b73dcdff92ed14f0266c257a26b6958436ab8.zip | |
(locate-library): Use `get-load-suffixes' instead of `load-suffixes'
and `load-file-rep-suffixes' instead of '("").
| -rw-r--r-- | lisp/subr.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index c543ecffad3..f515b6b3753 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1324,12 +1324,13 @@ string. When run interactively, the argument INTERACTIVE-CALL is t, | |||
| 1324 | and the file name is displayed in the echo area." | 1324 | and the file name is displayed in the echo area." |
| 1325 | (interactive (list (completing-read "Locate library: " | 1325 | (interactive (list (completing-read "Locate library: " |
| 1326 | 'locate-file-completion | 1326 | 'locate-file-completion |
| 1327 | (cons load-path load-suffixes)) | 1327 | (cons load-path (get-load-suffixes))) |
| 1328 | nil nil | 1328 | nil nil |
| 1329 | t)) | 1329 | t)) |
| 1330 | (let ((file (locate-file library | 1330 | (let ((file (locate-file library |
| 1331 | (or path load-path) | 1331 | (or path load-path) |
| 1332 | (append (unless nosuffix load-suffixes) '(""))))) | 1332 | (append (unless nosuffix (get-load-suffixes)) |
| 1333 | load-file-rep-suffixes)))) | ||
| 1333 | (if interactive-call | 1334 | (if interactive-call |
| 1334 | (if file | 1335 | (if file |
| 1335 | (message "Library is file %s" (abbreviate-file-name file)) | 1336 | (message "Library is file %s" (abbreviate-file-name file)) |