diff options
| author | Glenn Morris | 2012-08-29 20:47:33 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-08-29 20:47:33 -0400 |
| commit | 31d024384ce7b399475651d7114b097a0309152c (patch) | |
| tree | a2f48ee6db0dcf333cb203ea74cfbf703e76b0e0 /src | |
| parent | 966560123e15a30174313673b00c16ce6b692aa6 (diff) | |
| download | emacs-31d024384ce7b399475651d7114b097a0309152c.tar.gz emacs-31d024384ce7b399475651d7114b097a0309152c.zip | |
init_lread fix for bug#12302
* src/lread.c (init_lread): For out-of-tree builds, only add the
source directory's site-lisp dir to the load-path if it exists,
consistent with in-tree builds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lread.c | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b5751d859c0..fef02d8cbb5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-08-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * lread.c (init_lread): For out-of-tree builds, only add the | ||
| 4 | source directory's site-lisp dir to the load-path if it exists, | ||
| 5 | consistent with in-tree builds. (Bug#12302) | ||
| 6 | |||
| 1 | 2012-08-28 Jan Djärv <jan.h.d@swipnet.se> | 7 | 2012-08-28 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 8 | ||
| 3 | * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize | 9 | * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize |
diff --git a/src/lread.c b/src/lread.c index b0413c98765..aa3e0cfc5b8 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -4253,9 +4253,12 @@ init_lread (void) | |||
| 4253 | { | 4253 | { |
| 4254 | tem = Fexpand_file_name (build_string ("site-lisp"), | 4254 | tem = Fexpand_file_name (build_string ("site-lisp"), |
| 4255 | Vsource_directory); | 4255 | Vsource_directory); |
| 4256 | 4256 | tem1 = Ffile_exists_p (tem); | |
| 4257 | if (NILP (Fmember (tem, Vload_path))) | 4257 | if (!NILP (tem1)) |
| 4258 | Vload_path = Fcons (tem, Vload_path); | 4258 | { |
| 4259 | if (NILP (Fmember (tem, Vload_path))) | ||
| 4260 | Vload_path = Fcons (tem, Vload_path); | ||
| 4261 | } | ||
| 4259 | } | 4262 | } |
| 4260 | } | 4263 | } |
| 4261 | } /* Vinstallation_directory != Vsource_directory */ | 4264 | } /* Vinstallation_directory != Vsource_directory */ |