aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorGlenn Morris2013-11-22 17:55:16 -0800
committerGlenn Morris2013-11-22 17:55:16 -0800
commit17e0445be4a6a4f437f4be4924074c90d6477481 (patch)
treec78a4df4e1c2f9daf840c96d15dc9e00dd71c68d /src/callproc.c
parent72648ef2605b654caf515ef020c2cac70cd0d741 (diff)
downloademacs-17e0445be4a6a4f437f4be4924074c90d6477481.tar.gz
emacs-17e0445be4a6a4f437f4be4924074c90d6477481.zip
Empty elements in EMACSLOADPATH now stand for the default
* src/lread.c (load_path_check): Take path to check as argument. (load_path_default): New, split from init_lread. (init_lread): Move calc of default load-path to load_path_default. Empty elements in EMACSLOADPATH now stand for the default. (load-path): Doc fix. * src/emacs.c (decode_env_path): Add option to treat empty elements as nil rather than ".". * src/callproc.c (init_callproc_1, init_callproc): * src/image.c (Vx_bitmap_file_path): * src/lisp.h (decode_env_path): * lread.c (Vsource_directory): Update for new argument spec of decode_env_path. * leim/Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting. * lisp/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting. * test/automated/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting. * doc/emacs/cmdargs.texi (General Variables): Empty elements in EMACSLOADPATH now mean the default load-path. * doc/lispref/loading.texi (Library Search): Empty elements in EMACSLOADPATH now mean the default load-path. * etc/NEWS: Mention this. Fixes: debbugs:12100
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 3317c1203bc..dfe315ab8db 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1,6 +1,6 @@
1/* Synchronous subprocess invocation for GNU Emacs. 1/* Synchronous subprocess invocation for GNU Emacs.
2 Copyright (C) 1985-1988, 1993-1995, 1999-2013 2
3 Free Software Foundation, Inc. 3Copyright (C) 1985-1988, 1993-1995, 1999-2013 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -1520,14 +1520,14 @@ init_callproc_1 (void)
1520#ifdef HAVE_NS 1520#ifdef HAVE_NS
1521 etc_dir ? etc_dir : 1521 etc_dir ? etc_dir :
1522#endif 1522#endif
1523 PATH_DATA); 1523 PATH_DATA, 0);
1524 Vdata_directory = Ffile_name_as_directory (Fcar (Vdata_directory)); 1524 Vdata_directory = Ffile_name_as_directory (Fcar (Vdata_directory));
1525 1525
1526 Vdoc_directory = decode_env_path ("EMACSDOC", 1526 Vdoc_directory = decode_env_path ("EMACSDOC",
1527#ifdef HAVE_NS 1527#ifdef HAVE_NS
1528 etc_dir ? etc_dir : 1528 etc_dir ? etc_dir :
1529#endif 1529#endif
1530 PATH_DOC); 1530 PATH_DOC, 0);
1531 Vdoc_directory = Ffile_name_as_directory (Fcar (Vdoc_directory)); 1531 Vdoc_directory = Ffile_name_as_directory (Fcar (Vdoc_directory));
1532 1532
1533 /* Check the EMACSPATH environment variable, defaulting to the 1533 /* Check the EMACSPATH environment variable, defaulting to the
@@ -1536,10 +1536,10 @@ init_callproc_1 (void)
1536#ifdef HAVE_NS 1536#ifdef HAVE_NS
1537 path_exec ? path_exec : 1537 path_exec ? path_exec :
1538#endif 1538#endif
1539 PATH_EXEC); 1539 PATH_EXEC, 0);
1540 Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path)); 1540 Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path));
1541 /* FIXME? For ns, path_exec should go at the front? */ 1541 /* FIXME? For ns, path_exec should go at the front? */
1542 Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path); 1542 Vexec_path = nconc2 (decode_env_path ("PATH", "", 0), Vexec_path);
1543} 1543}
1544 1544
1545/* This is run after init_cmdargs, when Vinstallation_directory is valid. */ 1545/* This is run after init_cmdargs, when Vinstallation_directory is valid. */
@@ -1580,9 +1580,9 @@ init_callproc (void)
1580#ifdef HAVE_NS 1580#ifdef HAVE_NS
1581 path_exec ? path_exec : 1581 path_exec ? path_exec :
1582#endif 1582#endif
1583 PATH_EXEC); 1583 PATH_EXEC, 0);
1584 Vexec_path = Fcons (tem, Vexec_path); 1584 Vexec_path = Fcons (tem, Vexec_path);
1585 Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path); 1585 Vexec_path = nconc2 (decode_env_path ("PATH", "", 0), Vexec_path);
1586 } 1586 }
1587 1587
1588 Vexec_directory = Ffile_name_as_directory (tem); 1588 Vexec_directory = Ffile_name_as_directory (tem);