From: Eli Zaretskii Date: Sun, 6 Apr 1997 14:32:33 +0000 (+0000) Subject: (init_cmdargs) [MSDOS]: Make the change that sets X-Git-Tag: emacs-20.1~2633 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=70344b3461fedd48fc86cee5d22579990b3a4b37;p=emacs.git (init_cmdargs) [MSDOS]: Make the change that sets `installation-directory' if `info' is found as its subdirectory or sibling, be conditioned on MSDOS (it makes trouble on Unix). --- diff --git a/src/emacs.c b/src/emacs.c index 62a49f938f0..763b778e0c9 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -271,11 +271,15 @@ init_cmdargs (argc, argv, skip_args) tem = Fexpand_file_name (build_string ("lib-src"), dir); lib_src_exists = Ffile_exists_p (tem); +#ifdef MSDOS /* MSDOS installations frequently remove lib-src, but we still must set installation-directory, or else info won't find its files (it uses the value of installation-directory). */ tem = Fexpand_file_name (build_string ("info"), dir); info_exists = Ffile_exists_p (tem); +#else + info_exists = Qnil; +#endif if (!NILP (lib_src_exists) || !NILP (info_exists)) { @@ -293,8 +297,14 @@ init_cmdargs (argc, argv, skip_args) tem = Fexpand_file_name (build_string ("../lib-src"), dir); lib_src_exists = Ffile_exists_p (tem); + +#ifdef MSDOS + /* See the MSDOS commentary above. */ tem = Fexpand_file_name (build_string ("../info"), dir); info_exists = Ffile_exists_p (tem); +#else + info_exists = Qnil; +#endif if (!NILP (lib_src_exists) || !NILP (info_exists)) {