aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>1997-04-06 14:32:33 +0000
committerEli Zaretskii <[email protected]>1997-04-06 14:32:33 +0000
commit70344b3461fedd48fc86cee5d22579990b3a4b37 (patch)
tree71d6b4aa909e435fd51008988acc7552406d3ded /src/emacs.c
parent78897d3d9f61ae24e85035761d71ea252b8fd59b (diff)
(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).
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 62a49f938f..763b778e0c 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))
{