aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-18 16:43:04 +0000
committerRichard M. Stallman1994-11-18 16:43:04 +0000
commit07a0bda3c9ca05fb3e3f7c232d28410247d83df0 (patch)
tree879d6875496c3132d476d72241672b7791e0752a /src
parent58cabff0518a237897d9f8e343b91b87cb15eafe (diff)
downloademacs-07a0bda3c9ca05fb3e3f7c232d28410247d83df0.tar.gz
emacs-07a0bda3c9ca05fb3e3f7c232d28410247d83df0.zip
(Fload): Call Fsubstitute_in_file_name after trying handler.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index c08e5fc8c1a..a753eb91868 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -361,13 +361,17 @@ Return t if file exists.")
361#endif /* DOS_NT */ 361#endif /* DOS_NT */
362 362
363 CHECK_STRING (str, 0); 363 CHECK_STRING (str, 0);
364 str = Fsubstitute_in_file_name (str);
365 364
366 /* If file name is magic, call the handler. */ 365 /* If file name is magic, call the handler. */
367 handler = Ffind_file_name_handler (str, Qload); 366 handler = Ffind_file_name_handler (str, Qload);
368 if (!NILP (handler)) 367 if (!NILP (handler))
369 return call5 (handler, Qload, str, noerror, nomessage, nosuffix); 368 return call5 (handler, Qload, str, noerror, nomessage, nosuffix);
370 369
370 /* Do this after the handler to avoid
371 the need to gcpro noerror, nomessage and nosuffix.
372 (Below here, we care only whether they are nil or not.) */
373 str = Fsubstitute_in_file_name (str);
374
371 /* Avoid weird lossage with null string as arg, 375 /* Avoid weird lossage with null string as arg,
372 since it would try to load a directory as a Lisp file */ 376 since it would try to load a directory as a Lisp file */
373 if (XSTRING (str)->size > 0) 377 if (XSTRING (str)->size > 0)