diff lisp/subr.el @ 69168:6e701396a0ec

(locate-library): Use `get-load-suffixes' instead of `load-suffixes' and `load-file-rep-suffixes' instead of '("").
author Luc Teirlinck <teirllm@auburn.edu>
date Mon, 27 Feb 2006 02:01:08 +0000
parents f038d760daf1
children 196122ba0b05 8976b9f5eda1 5754737d1e04
line wrap: on
line diff
--- a/lisp/subr.el	Mon Feb 27 01:58:04 2006 +0000
+++ b/lisp/subr.el	Mon Feb 27 02:01:08 2006 +0000
@@ -1324,12 +1324,13 @@
 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))