aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-01-13 21:42:33 +0000
committerRichard M. Stallman1997-01-13 21:42:33 +0000
commitde004cc6b47849f148229e951f1c050f09da0d52 (patch)
treecf5e4bf9965794894273586d9749cde41000e0ef /src
parenta41284da64e27af4becf2c03069428af8c6c721e (diff)
downloademacs-de004cc6b47849f148229e951f1c050f09da0d52.tar.gz
emacs-de004cc6b47849f148229e951f1c050f09da0d52.zip
(init_cmdargs): Allow `installation-directory'
to be set if either `lib-src' or `info' are found as its subdirectories or siblings.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index fca9faf100e..7349a21698d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -270,7 +270,14 @@ init_cmdargs (argc, argv, skip_args)
270 not including lisp and info. */ 270 not including lisp and info. */
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 if (!NILP (lib_src_exists)) 273
274 /* MSDOS installations frequently remove lib-src, but we still
275 must set installation-directory, or else info won't find
276 its files (it uses the value of installation-directory). */
277 tem = Fexpand_file_name (build_string ("info"), dir);
278 info_exists = Ffile_exists_p (tem);
279
280 if (!NILP (lib_src_exists) || !NILP (info_exists))
274 { 281 {
275 tem = Fexpand_file_name (build_string ("etc"), dir); 282 tem = Fexpand_file_name (build_string ("etc"), dir);
276 etc_exists = Ffile_exists_p (tem); 283 etc_exists = Ffile_exists_p (tem);
@@ -285,7 +292,11 @@ init_cmdargs (argc, argv, skip_args)
285 /* See if dir's parent contains those subdirs. */ 292 /* See if dir's parent contains those subdirs. */
286 tem = Fexpand_file_name (build_string ("../lib-src"), dir); 293 tem = Fexpand_file_name (build_string ("../lib-src"), dir);
287 lib_src_exists = Ffile_exists_p (tem); 294 lib_src_exists = Ffile_exists_p (tem);
288 if (!NILP (lib_src_exists)) 295
296 tem = Fexpand_file_name (build_string ("../info"), dir);
297 info_exists = Ffile_exists_p (tem);
298
299 if (!NILP (lib_src_exists) || !NILP (info_exists))
289 { 300 {
290 tem = Fexpand_file_name (build_string ("../etc"), dir); 301 tem = Fexpand_file_name (build_string ("../etc"), dir);
291 etc_exists = Ffile_exists_p (tem); 302 etc_exists = Ffile_exists_p (tem);