diff options
| author | Richard M. Stallman | 1994-01-17 00:46:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-17 00:46:25 +0000 |
| commit | 05630743f9f4aec061e020e61c67ef57769592f6 (patch) | |
| tree | a7a2ba88e4feb559bd03fc30bcf2657ba1b7bc4e /src | |
| parent | 74180aa4ea4bf379947251a929eae8ff8a35de43 (diff) | |
| download | emacs-05630743f9f4aec061e020e61c67ef57769592f6.tar.gz emacs-05630743f9f4aec061e020e61c67ef57769592f6.zip | |
(init_callproc): Use Vinstallation_directory.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/callproc.c b/src/callproc.c index 9b61002a530..77b97f55da3 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -776,15 +776,13 @@ init_callproc () | |||
| 776 | register char * sh; | 776 | register char * sh; |
| 777 | Lisp_Object tempdir; | 777 | Lisp_Object tempdir; |
| 778 | 778 | ||
| 779 | if (initialized && !NILP (Vinvocation_directory)) | 779 | if (initialized && !NILP (Vinstallation_directory)) |
| 780 | { | 780 | { |
| 781 | /* Add to the path the ../lib-src dir of the Emacs executable, | 781 | /* Add to the path the lib-src subdir of the installation dir. */ |
| 782 | if that dir exists. */ | 782 | Lisp_Object tem; |
| 783 | Lisp_Object tem, tem1; | 783 | tem = Fexpand_file_name (build_string ("lib-src"), |
| 784 | tem = Fexpand_file_name (build_string ("../lib-src"), | 784 | Vinstallation_directory); |
| 785 | Vinvocation_directory); | 785 | if (NILP (Fmember (tem, Vexec_path))) |
| 786 | tem1 = Ffile_exists_p (tem); | ||
| 787 | if (!NILP (tem1) && NILP (Fmember (tem, Vexec_path))) | ||
| 788 | { | 786 | { |
| 789 | Vexec_path = nconc2 (Vexec_path, Fcons (tem, Qnil)); | 787 | Vexec_path = nconc2 (Vexec_path, Fcons (tem, Qnil)); |
| 790 | Vexec_directory = Ffile_name_as_directory (tem); | 788 | Vexec_directory = Ffile_name_as_directory (tem); |
| @@ -793,13 +791,9 @@ init_callproc () | |||
| 793 | Do so if ../etc exists and has our DOC-... file in it. */ | 791 | Do so if ../etc exists and has our DOC-... file in it. */ |
| 794 | if (data_dir == 0) | 792 | if (data_dir == 0) |
| 795 | { | 793 | { |
| 796 | Lisp_Object tem, tem2, tem3; | 794 | tem = Fexpand_file_name (build_string ("etc"), |
| 797 | tem = Fexpand_file_name (build_string ("../etc"), | 795 | Vinstallation_directory); |
| 798 | Vinvocation_directory); | 796 | Vdata_directory = Ffile_name_as_directory (tem); |
| 799 | tem2 = Fexpand_file_name (Vdoc_file_name, tem); | ||
| 800 | tem3 = Ffile_exists_p (tem2); | ||
| 801 | if (!NILP (tem3)) | ||
| 802 | Vdata_directory = Ffile_name_as_directory (tem); | ||
| 803 | } | 797 | } |
| 804 | } | 798 | } |
| 805 | } | 799 | } |