diff options
| author | Richard M. Stallman | 2001-12-07 06:46:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-07 06:46:45 +0000 |
| commit | 70ec13773ab0b175f5992cec8f4441a760fd9e93 (patch) | |
| tree | d18f58f21ee2eae4119b84e2552f6b7781a00905 | |
| parent | 120d77d8211ab7c649a8896c842bda36a50efc10 (diff) | |
| download | emacs-70ec13773ab0b175f5992cec8f4441a760fd9e93.tar.gz emacs-70ec13773ab0b175f5992cec8f4441a760fd9e93.zip | |
(init_callproc): Set Vdata_directory based on the source
location whenever Emacs was not run installed.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/callproc.c | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9bc1a284be2..23e7753092a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-12-07 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * callproc.c (init_callproc): Set Vdata_directory based on the source | ||
| 4 | location whenever Emacs was run uninstalled. | ||
| 5 | |||
| 1 | 2001-12-06 Paul Eggert <eggert@twinsun.com> | 6 | 2001-12-06 Paul Eggert <eggert@twinsun.com> |
| 2 | 7 | ||
| 3 | * config.in (HAVE_WORKING_VFORK): New #undefs. | 8 | * config.in (HAVE_WORKING_VFORK): New #undefs. |
diff --git a/src/callproc.c b/src/callproc.c index 23f2b377b43..f35485f9fe8 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1489,7 +1489,11 @@ init_callproc () | |||
| 1489 | #ifndef DOS_NT | 1489 | #ifndef DOS_NT |
| 1490 | /* MSDOS uses wrapped binaries, so don't do this. */ | 1490 | /* MSDOS uses wrapped binaries, so don't do this. */ |
| 1491 | if (NILP (Fmember (tem, Vexec_path))) | 1491 | if (NILP (Fmember (tem, Vexec_path))) |
| 1492 | Vexec_path = nconc2 (Vexec_path, Fcons (tem, Qnil)); | 1492 | { |
| 1493 | Vexec_path = decode_env_path ("EMACSPATH", PATH_EXEC); | ||
| 1494 | Vexec_path = Fcons (tem, Vexec_path); | ||
| 1495 | Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path); | ||
| 1496 | } | ||
| 1493 | 1497 | ||
| 1494 | Vexec_directory = Ffile_name_as_directory (tem); | 1498 | Vexec_directory = Ffile_name_as_directory (tem); |
| 1495 | #endif /* not DOS_NT */ | 1499 | #endif /* not DOS_NT */ |
| @@ -1512,12 +1516,15 @@ init_callproc () | |||
| 1512 | source directory. */ | 1516 | source directory. */ |
| 1513 | if (data_dir == 0) | 1517 | if (data_dir == 0) |
| 1514 | { | 1518 | { |
| 1515 | Lisp_Object tem, tem1, newdir; | 1519 | Lisp_Object tem, tem1, srcdir; |
| 1516 | 1520 | ||
| 1521 | srcdir = Fexpand_file_name (build_string ("../src/"), | ||
| 1522 | build_string (PATH_DUMPLOADSEARCH)); | ||
| 1517 | tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory); | 1523 | tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory); |
| 1518 | tem1 = Ffile_exists_p (tem); | 1524 | tem1 = Ffile_exists_p (tem); |
| 1519 | if (NILP (tem1)) | 1525 | if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1)) |
| 1520 | { | 1526 | { |
| 1527 | Lisp_Object newdir; | ||
| 1521 | newdir = Fexpand_file_name (build_string ("../etc/"), | 1528 | newdir = Fexpand_file_name (build_string ("../etc/"), |
| 1522 | build_string (PATH_DUMPLOADSEARCH)); | 1529 | build_string (PATH_DUMPLOADSEARCH)); |
| 1523 | tem = Fexpand_file_name (build_string ("GNU"), newdir); | 1530 | tem = Fexpand_file_name (build_string ("GNU"), newdir); |