diff src/lread.c @ 50492:3a74e250f1a1

(openp): Get the Qfile_exists_p handler for STRING, not FN.
author Richard M. Stallman <rms@gnu.org>
date Tue, 08 Apr 2003 17:10:07 +0000
parents 75ed0f4a2f18
children b83d48b25b9b
line wrap: on
line diff
--- a/src/lread.c	Tue Apr 08 17:09:23 2003 +0000
+++ b/src/lread.c	Tue Apr 08 17:10:07 2003 +0000
@@ -1121,8 +1121,8 @@
 		  handler = Ffind_file_name_handler (filename, Qfile_exists_p);
 	     It's not clear why that was the case and it breaks things like
 	     (load "/bar.el") where the file is actually "/bar.el.gz".  */
-	  handler = Ffind_file_name_handler (filename, Qfile_exists_p);
 	  string = build_string (fn);
+	  handler = Ffind_file_name_handler (string, Qfile_exists_p);
 	  if ((!NILP (handler) || !NILP (predicate)) && !NATNUMP (predicate))
             {
 	      if (NILP (predicate))