]> code.delx.au - gnu-emacs/commitdiff
(locate-library): Use `get-load-suffixes' instead of `load-suffixes'
authorLuc Teirlinck <teirllm@auburn.edu>
Mon, 27 Feb 2006 02:01:08 +0000 (02:01 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Mon, 27 Feb 2006 02:01:08 +0000 (02:01 +0000)
and `load-file-rep-suffixes' instead of '("").

lisp/subr.el

index c543ecffad3c321c02e85f25bc5ddd94c5e971f5..f515b6b37533416060ed727588c87ab3e1b0704c 100644 (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))