aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii1997-04-06 14:32:33 +0000
committerEli Zaretskii1997-04-06 14:32:33 +0000
commit70344b3461fedd48fc86cee5d22579990b3a4b37 (patch)
tree71d6b4aa909e435fd51008988acc7552406d3ded /src
parent78897d3d9f61ae24e85035761d71ea252b8fd59b (diff)
downloademacs-70344b3461fedd48fc86cee5d22579990b3a4b37.tar.gz
emacs-70344b3461fedd48fc86cee5d22579990b3a4b37.zip
(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')
-rw-r--r--src/emacs.c10
1 files changed, 10 insertions, 0 deletions
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)
271 tem = Fexpand_file_name (build_string ("lib-src"), dir); 271 tem = Fexpand_file_name (build_string ("lib-src"), dir);
272 lib_src_exists = Ffile_exists_p (tem); 272 lib_src_exists = Ffile_exists_p (tem);
273 273
274#ifdef MSDOS
274 /* MSDOS installations frequently remove lib-src, but we still 275 /* MSDOS installations frequently remove lib-src, but we still
275 must set installation-directory, or else info won't find 276 must set installation-directory, or else info won't find
276 its files (it uses the value of installation-directory). */ 277 its files (it uses the value of installation-directory). */
277 tem = Fexpand_file_name (build_string ("info"), dir); 278 tem = Fexpand_file_name (build_string ("info"), dir);
278 info_exists = Ffile_exists_p (tem); 279 info_exists = Ffile_exists_p (tem);
280#else
281 info_exists = Qnil;
282#endif
279 283
280 if (!NILP (lib_src_exists) || !NILP (info_exists)) 284 if (!NILP (lib_src_exists) || !NILP (info_exists))
281 { 285 {
@@ -293,8 +297,14 @@ init_cmdargs (argc, argv, skip_args)
293 tem = Fexpand_file_name (build_string ("../lib-src"), dir); 297 tem = Fexpand_file_name (build_string ("../lib-src"), dir);
294 lib_src_exists = Ffile_exists_p (tem); 298 lib_src_exists = Ffile_exists_p (tem);
295 299
300
301#ifdef MSDOS
302 /* See the MSDOS commentary above. */
296 tem = Fexpand_file_name (build_string ("../info"), dir); 303 tem = Fexpand_file_name (build_string ("../info"), dir);
297 info_exists = Ffile_exists_p (tem); 304 info_exists = Ffile_exists_p (tem);
305#else
306 info_exists = Qnil;
307#endif
298 308
299 if (!NILP (lib_src_exists) || !NILP (info_exists)) 309 if (!NILP (lib_src_exists) || !NILP (info_exists))
300 { 310 {