aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lread.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index 7f0f1d1f6a8..2239bfc452a 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1164,7 +1164,7 @@ Return t if the file exists and loads successfully. */)
1164 1164
1165#ifdef HAVE_MODULES 1165#ifdef HAVE_MODULES
1166 if (suffix_p (found, MODULES_SUFFIX)) 1166 if (suffix_p (found, MODULES_SUFFIX))
1167 return Fmodule_load (found); 1167 return unbind_to (count, Fmodule_load (found));
1168#endif 1168#endif
1169 1169
1170 /* Check if we're stuck in a recursive load cycle. 1170 /* Check if we're stuck in a recursive load cycle.
@@ -4513,6 +4513,13 @@ to the specified file name if a suffix is allowed or required. */);
4513 Vload_suffixes = list2 (build_pure_c_string (".elc"), 4513 Vload_suffixes = list2 (build_pure_c_string (".elc"),
4514 build_pure_c_string (".el")); 4514 build_pure_c_string (".el"));
4515#endif 4515#endif
4516 DEFVAR_LISP ("module-file-suffix", Vmodule_file_suffix,
4517 doc: /* Suffix of loadable module file, or nil of modules are not supported. */);
4518#ifdef HAVE_MODULES
4519 Vmodule_file_suffix = build_pure_c_string (MODULES_SUFFIX);
4520#else
4521 Vmodule_file_suffix = Qnil;
4522#endif
4516 DEFVAR_LISP ("load-file-rep-suffixes", Vload_file_rep_suffixes, 4523 DEFVAR_LISP ("load-file-rep-suffixes", Vload_file_rep_suffixes,
4517 doc: /* List of suffixes that indicate representations of \ 4524 doc: /* List of suffixes that indicate representations of \
4518the same file. 4525the same file.