aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-08 05:01:06 +0000
committerRichard M. Stallman1993-08-08 05:01:06 +0000
commit80667d531d702af0b3258d5df140856f9f12087f (patch)
tree87c2dab879ec93d637cf652ad06d26fdf71c8f3e /src
parent53a051941ff1079a1d59639785e2c79705170002 (diff)
downloademacs-80667d531d702af0b3258d5df140856f9f12087f.tar.gz
emacs-80667d531d702af0b3258d5df140856f9f12087f.zip
(init_lread): Normally put Vinvocation_directory
at end of Vload_path, if not present already.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index 385a73d5af6..905bd264cd5 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1784,7 +1784,20 @@ init_lread ()
1784 1784
1785 dump_path = decode_env_path (0, PATH_DUMPLOADSEARCH); 1785 dump_path = decode_env_path (0, PATH_DUMPLOADSEARCH);
1786 if (! NILP (Fequal (dump_path, Vload_path))) 1786 if (! NILP (Fequal (dump_path, Vload_path)))
1787 Vload_path = decode_env_path (0, normal); 1787 {
1788 Vload_path = decode_env_path (0, normal);
1789 if (!NILP (Vinvocation_directory))
1790 {
1791 /* Add to the path the ../lisp dir of the Emacs executable,
1792 if that dir exists. */
1793 Lisp_Object tem, tem1;
1794 tem = Fexpand_file_name (build_string ("../lisp"),
1795 Vinvocation_directory);
1796 tem1 = Ffile_exists_p (tem);
1797 if (!NILP (tem1) && NILP (Fmember (tem, Vload_path)))
1798 Vload_path = nconc2 (Vload_path, Fcons (tem, Qnil));
1799 }
1800 }
1788 } 1801 }
1789 else 1802 else
1790 Vload_path = decode_env_path (0, normal); 1803 Vload_path = decode_env_path (0, normal);