diff options
| author | Richard M. Stallman | 1997-07-13 21:19:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-13 21:19:52 +0000 |
| commit | 33046fc90de69e4fd4c196f62815e3f290702354 (patch) | |
| tree | 115fb1b756a801a36764adc44b2086090f5e502b /src | |
| parent | e2f35ede084bfe561f2f843c890ed622d78339ac (diff) | |
| download | emacs-33046fc90de69e4fd4c196f62815e3f290702354.tar.gz emacs-33046fc90de69e4fd4c196f62815e3f290702354.zip | |
(init_lread): Don't add to load-path lisp subdirectories
of the source tree if the parent of the source was moved after dumping Emacs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lread.c b/src/lread.c index 22acdda6bfa..7f718dce681 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Lisp parsing and input streams. | 1 | /* Lisp parsing and input streams. |
| 2 | Copyright (C) 1985, 1986, 1987, 1988, 1989, | 2 | Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 1997 |
| 3 | 1993, 1994, 1995 Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -2534,10 +2534,20 @@ init_lread () | |||
| 2534 | 2534 | ||
| 2535 | if (NILP (Fequal (Vinstallation_directory, Vsource_directory))) | 2535 | if (NILP (Fequal (Vinstallation_directory, Vsource_directory))) |
| 2536 | { | 2536 | { |
| 2537 | Lisp_Object tem2; | ||
| 2538 | |||
| 2537 | tem = Fexpand_file_name (build_string ("src/Makefile"), | 2539 | tem = Fexpand_file_name (build_string ("src/Makefile"), |
| 2538 | Vinstallation_directory); | 2540 | Vinstallation_directory); |
| 2539 | tem1 = Ffile_exists_p (tem); | 2541 | tem1 = Ffile_exists_p (tem); |
| 2540 | if (!NILP (tem1)) | 2542 | |
| 2543 | /* Don't be fooled if they moved the entire source tree | ||
| 2544 | AFTER dumping Emacs. If the build directory is indeed | ||
| 2545 | different from the source dir, src/Makefile.in and | ||
| 2546 | src/Makefile will not be found together. */ | ||
| 2547 | tem = Fexpand_file_name (build_string ("src/Makefile.in"), | ||
| 2548 | Vinstallation_directory); | ||
| 2549 | tem2 = Ffile_exists_p (tem); | ||
| 2550 | if (!NILP (tem1) && NILP (tem2)) | ||
| 2541 | { | 2551 | { |
| 2542 | tem = Fexpand_file_name (build_string ("lisp"), | 2552 | tem = Fexpand_file_name (build_string ("lisp"), |
| 2543 | Vsource_directory); | 2553 | Vsource_directory); |