diff options
| author | Glenn Morris | 2011-12-06 21:16:53 -0500 |
|---|---|---|
| committer | Glenn Morris | 2011-12-06 21:16:53 -0500 |
| commit | 7efa6272f0cc8a3ef6d925c42a5cc09a2165baef (patch) | |
| tree | b11e2718f40aede17f24a2e8935240cc71584d2f | |
| parent | 86ed9fdc5749160a283e8c37cd6d60b692f63b79 (diff) | |
| download | emacs-7efa6272f0cc8a3ef6d925c42a5cc09a2165baef.tar.gz emacs-7efa6272f0cc8a3ef6d925c42a5cc09a2165baef.zip | |
Small init_lread fix for bug#10208
* src/lread.c (init_lread): If no_site_lisp, exclude site-lisp/ in
installation and source directories as well.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/lread.c | 26 |
2 files changed, 21 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fec0a0e41d7..f8d290774fc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-07 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * lread.c (init_lread): If no_site_lisp, exclude site-lisp/ in | ||
| 4 | installation and source directories as well. (Bug#10208) | ||
| 5 | |||
| 1 | 2011-12-06 Chong Yidong <cyd@gnu.org> | 6 | 2011-12-06 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * minibuf.c (Fread_from_minibuffer): Doc fix (Bug#10228). | 8 | * minibuf.c (Fread_from_minibuffer): Doc fix (Bug#10228). |
diff --git a/src/lread.c b/src/lread.c index cdbd09d2f89..582d8f46638 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -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) |