diff options
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/lread.c b/src/lread.c index cdbd09d2f89..7c0b0475786 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2822,7 +2822,7 @@ read1 (register Lisp_Object readcharfun, int *pch, int first_in_list) | |||
| 2822 | So we now use the same heuristic as for backquote: old-style | 2822 | So we now use the same heuristic as for backquote: old-style |
| 2823 | unquotes are only recognized when first on a list, and when | 2823 | unquotes are only recognized when first on a list, and when |
| 2824 | followed by a space. | 2824 | followed by a space. |
| 2825 | Because it's more difficult to peak 2 chars ahead, a new-style | 2825 | Because it's more difficult to peek 2 chars ahead, a new-style |
| 2826 | ,@ can still not be used outside of a `, unless it's in the middle | 2826 | ,@ can still not be used outside of a `, unless it's in the middle |
| 2827 | of a list. */ | 2827 | of a list. */ |
| 2828 | if (new_backquote_flag | 2828 | if (new_backquote_flag |
| @@ -4180,13 +4180,16 @@ init_lread (void) | |||
| 4180 | } | 4180 | } |
| 4181 | 4181 | ||
| 4182 | /* Add site-lisp under the installation dir, if it exists. */ | 4182 | /* Add site-lisp under the installation dir, if it exists. */ |
| 4183 | tem = Fexpand_file_name (build_string ("site-lisp"), | 4183 | if (!no_site_lisp) |
| 4184 | Vinstallation_directory); | ||
| 4185 | tem1 = Ffile_exists_p (tem); | ||
| 4186 | if (!NILP (tem1)) | ||
| 4187 | { | 4184 | { |
| 4188 | if (NILP (Fmember (tem, Vload_path))) | 4185 | tem = Fexpand_file_name (build_string ("site-lisp"), |
| 4189 | Vload_path = Fcons (tem, Vload_path); | 4186 | Vinstallation_directory); |
| 4187 | tem1 = Ffile_exists_p (tem); | ||
| 4188 | if (!NILP (tem1)) | ||
| 4189 | { | ||
| 4190 | if (NILP (Fmember (tem, Vload_path))) | ||
| 4191 | Vload_path = Fcons (tem, Vload_path); | ||
| 4192 | } | ||
| 4190 | } | 4193 | } |
| 4191 | 4194 | ||
| 4192 | /* If Emacs was not built in the source directory, | 4195 | /* If Emacs was not built in the source directory, |
| @@ -4222,11 +4225,14 @@ init_lread (void) | |||
| 4222 | if (NILP (Fmember (tem, Vload_path))) | 4225 | if (NILP (Fmember (tem, Vload_path))) |
| 4223 | Vload_path = Fcons (tem, Vload_path); | 4226 | Vload_path = Fcons (tem, Vload_path); |
| 4224 | 4227 | ||
| 4225 | tem = Fexpand_file_name (build_string ("site-lisp"), | 4228 | if (!no_site_lisp) |
| 4226 | Vsource_directory); | 4229 | { |
| 4230 | tem = Fexpand_file_name (build_string ("site-lisp"), | ||
| 4231 | Vsource_directory); | ||
| 4227 | 4232 | ||
| 4228 | if (NILP (Fmember (tem, Vload_path))) | 4233 | if (NILP (Fmember (tem, Vload_path))) |
| 4229 | Vload_path = Fcons (tem, Vload_path); | 4234 | Vload_path = Fcons (tem, Vload_path); |
| 4235 | } | ||
| 4230 | } | 4236 | } |
| 4231 | } | 4237 | } |
| 4232 | if (!NILP (sitelisp) && !no_site_lisp) | 4238 | if (!NILP (sitelisp) && !no_site_lisp) |