diff options
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/src/lread.c b/src/lread.c index d7c5db3a02c..90bc8c11b96 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1922,7 +1922,7 @@ which is the input stream for reading characters. | |||
| 1922 | This function does not move point. */) | 1922 | This function does not move point. */) |
| 1923 | (Lisp_Object start, Lisp_Object end, Lisp_Object printflag, Lisp_Object read_function) | 1923 | (Lisp_Object start, Lisp_Object end, Lisp_Object printflag, Lisp_Object read_function) |
| 1924 | { | 1924 | { |
| 1925 | /* FIXME: Do the eval-sexp-add-defvars danse! */ | 1925 | /* FIXME: Do the eval-sexp-add-defvars dance! */ |
| 1926 | ptrdiff_t count = SPECPDL_INDEX (); | 1926 | ptrdiff_t count = SPECPDL_INDEX (); |
| 1927 | Lisp_Object tem, cbuf; | 1927 | Lisp_Object tem, cbuf; |
| 1928 | 1928 | ||
| @@ -3990,7 +3990,7 @@ init_obarray (void) | |||
| 3990 | Qnil = intern_c_string ("nil"); | 3990 | Qnil = intern_c_string ("nil"); |
| 3991 | 3991 | ||
| 3992 | /* Fmake_symbol inits fields of new symbols with Qunbound and Qnil, | 3992 | /* Fmake_symbol inits fields of new symbols with Qunbound and Qnil, |
| 3993 | so those two need to be fixed manally. */ | 3993 | so those two need to be fixed manually. */ |
| 3994 | SET_SYMBOL_VAL (XSYMBOL (Qunbound), Qunbound); | 3994 | SET_SYMBOL_VAL (XSYMBOL (Qunbound), Qunbound); |
| 3995 | XSYMBOL (Qunbound)->function = Qunbound; | 3995 | XSYMBOL (Qunbound)->function = Qunbound; |
| 3996 | XSYMBOL (Qunbound)->plist = Qnil; | 3996 | XSYMBOL (Qunbound)->plist = Qnil; |
| @@ -4186,13 +4186,16 @@ init_lread (void) | |||
| 4186 | } | 4186 | } |
| 4187 | 4187 | ||
| 4188 | /* Add site-lisp under the installation dir, if it exists. */ | 4188 | /* Add site-lisp under the installation dir, if it exists. */ |
| 4189 | tem = Fexpand_file_name (build_string ("site-lisp"), | 4189 | if (!no_site_lisp) |
| 4190 | Vinstallation_directory); | ||
| 4191 | tem1 = Ffile_exists_p (tem); | ||
| 4192 | if (!NILP (tem1)) | ||
| 4193 | { | 4190 | { |
| 4194 | if (NILP (Fmember (tem, Vload_path))) | 4191 | tem = Fexpand_file_name (build_string ("site-lisp"), |
| 4195 | Vload_path = Fcons (tem, Vload_path); | 4192 | Vinstallation_directory); |
| 4193 | tem1 = Ffile_exists_p (tem); | ||
| 4194 | if (!NILP (tem1)) | ||
| 4195 | { | ||
| 4196 | if (NILP (Fmember (tem, Vload_path))) | ||
| 4197 | Vload_path = Fcons (tem, Vload_path); | ||
| 4198 | } | ||
| 4196 | } | 4199 | } |
| 4197 | 4200 | ||
| 4198 | /* If Emacs was not built in the source directory, | 4201 | /* If Emacs was not built in the source directory, |
| @@ -4228,11 +4231,14 @@ init_lread (void) | |||
| 4228 | if (NILP (Fmember (tem, Vload_path))) | 4231 | if (NILP (Fmember (tem, Vload_path))) |
| 4229 | Vload_path = Fcons (tem, Vload_path); | 4232 | Vload_path = Fcons (tem, Vload_path); |
| 4230 | 4233 | ||
| 4231 | tem = Fexpand_file_name (build_string ("site-lisp"), | 4234 | if (!no_site_lisp) |
| 4232 | Vsource_directory); | 4235 | { |
| 4236 | tem = Fexpand_file_name (build_string ("site-lisp"), | ||
| 4237 | Vsource_directory); | ||
| 4233 | 4238 | ||
| 4234 | if (NILP (Fmember (tem, Vload_path))) | 4239 | if (NILP (Fmember (tem, Vload_path))) |
| 4235 | Vload_path = Fcons (tem, Vload_path); | 4240 | Vload_path = Fcons (tem, Vload_path); |
| 4241 | } | ||
| 4236 | } | 4242 | } |
| 4237 | } | 4243 | } |
| 4238 | if (!NILP (sitelisp) && !no_site_lisp) | 4244 | if (!NILP (sitelisp) && !no_site_lisp) |