diff options
| author | Richard M. Stallman | 1994-05-12 06:35:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-12 06:35:19 +0000 |
| commit | 7e93368366c143567013485ac8d1098c6797993a (patch) | |
| tree | 73baa5f8cea1d5b36245750d452ceec203d74dd6 /src | |
| parent | 412723df84ac423729b00047c29f56fb373089e1 (diff) | |
| download | emacs-7e93368366c143567013485ac8d1098c6797993a.tar.gz emacs-7e93368366c143567013485ac8d1098c6797993a.zip | |
(init_callproc): Never set Vdata_directory based on
the executable's location. But maybe set it from source dir.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 606d5e013e2..b3f88e56f66 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -851,10 +851,34 @@ init_callproc () | |||
| 851 | { | 851 | { |
| 852 | tem = Fexpand_file_name (build_string ("etc"), | 852 | tem = Fexpand_file_name (build_string ("etc"), |
| 853 | Vinstallation_directory); | 853 | Vinstallation_directory); |
| 854 | Vdoc_directory = Vdata_directory = Ffile_name_as_directory (tem); | 854 | Vdoc_directory = Ffile_name_as_directory (tem); |
| 855 | } | 855 | } |
| 856 | } | 856 | } |
| 857 | } | 857 | } |
| 858 | |||
| 859 | /* Look for the files that should be in etc. We don't use | ||
| 860 | Vinstallation_directory, because these files are never installed | ||
| 861 | in /bin near the executable, and they are never in the build | ||
| 862 | directory when that's different from the source directory. | ||
| 863 | |||
| 864 | Instead, if these files are not in the nominal place, we try the | ||
| 865 | source directory. */ | ||
| 866 | if (data_dir == 0) | ||
| 867 | { | ||
| 868 | Lisp_Object tem, tem1, newdir; | ||
| 869 | |||
| 870 | tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory); | ||
| 871 | tem1 = Ffile_exists_p (tem); | ||
| 872 | if (NILP (tem1)) | ||
| 873 | { | ||
| 874 | newdir = Fexpand_file_name (build_string ("../etc/"), | ||
| 875 | build_string (PATH_DUMPLOADSEARCH)); | ||
| 876 | tem = Fexpand_file_name (build_string ("GNU"), newdir); | ||
| 877 | tem1 = Ffile_exists_p (tem); | ||
| 878 | if (!NILP (tem1)) | ||
| 879 | Vdata_directory = newdir; | ||
| 880 | } | ||
| 881 | } | ||
| 858 | #endif | 882 | #endif |
| 859 | 883 | ||
| 860 | tempdir = Fdirectory_file_name (Vexec_directory); | 884 | tempdir = Fdirectory_file_name (Vexec_directory); |