1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

(locate-library): Use get-load-suffixes' instead of load-suffixes'

and `load-file-rep-suffixes' instead of '("").
This commit is contained in:
Luc Teirlinck 2006-02-27 02:01:08 +00:00
parent de10856c9d
commit 667b73dcdf

View File

@ -1324,12 +1324,13 @@ string. When run interactively, the argument INTERACTIVE-CALL is t,
and the file name is displayed in the echo area."
(interactive (list (completing-read "Locate library: "
'locate-file-completion
(cons load-path load-suffixes))
(cons load-path (get-load-suffixes)))
nil nil
t))
(let ((file (locate-file library
(or path load-path)
(append (unless nosuffix load-suffixes) '("")))))
(append (unless nosuffix (get-load-suffixes))
load-file-rep-suffixes))))
(if interactive-call
(if file
(message "Library is file %s" (abbreviate-file-name file))