aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1991-07-30 08:36:29 +0000
committerJim Blandy1991-07-30 08:36:29 +0000
commit279499f0260c120b50054b385e78236fe8618694 (patch)
tree8d1e0ddc52ea5bb9b5fc553bf52611cca3b95dce /src
parentd5e7c279e59c8dbc3175b23aea201a2877738e66 (diff)
downloademacs-279499f0260c120b50054b385e78236fe8618694.tar.gz
emacs-279499f0260c120b50054b385e78236fe8618694.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/lread.c32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/lread.c b/src/lread.c
index 14f05371abb..5450fa30c33 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1420,13 +1420,29 @@ defvar_per_buffer (namestring, address, doc)
1420 1420
1421#endif /* standalone */ 1421#endif /* standalone */
1422 1422
1423init_read () 1423init_lread ()
1424{ 1424{
1425 char *normal = PATH_LOADSEARCH; 1425 char *normal = PATH_LOADSEARCH;
1426 Lisp_Object normal_path; 1426 Lisp_Object normal_path;
1427 1427
1428 /* Compute the default load-path. */
1429#ifndef CANNOT_DUMP
1430 /* If running a dumped Emacs in which load-path was set before dumping
1431 to a nonstandard value, use that value. */
1432 if (initialized
1433 && !(XTYPE (Vload_path) == Lisp_Cons
1434 && XTYPE (XCONS (Vload_path)->car) == Lisp_String
1435 && !strcmp (XSTRING (XCONS (Vload_path)->car)->data, "../lisp")))
1436 normal_path = Vload_path;
1437 else
1438#endif
1439 {
1440 normal_path = decode_env_path ("", normal);
1441
1442 Vload_path = normal_path;
1443 }
1444
1428 /* Warn if dirs in the *standard* path don't exist. */ 1445 /* Warn if dirs in the *standard* path don't exist. */
1429 normal_path = decode_env_path ("", normal);
1430 for (; !NULL (normal_path); normal_path = XCONS (normal_path)->cdr) 1446 for (; !NULL (normal_path); normal_path = XCONS (normal_path)->cdr)
1431 { 1447 {
1432 Lisp_Object dirfile; 1448 Lisp_Object dirfile;
@@ -1440,18 +1456,20 @@ init_read ()
1440 } 1456 }
1441 } 1457 }
1442 1458
1443 Vvalues = Qnil; 1459 if (egetenv ("EMACSLOADPATH"))
1444 1460 Vload_path = decode_env_path ("EMACSLOADPATH", normal);
1445 Vload_path = decode_env_path ("EMACSLOADPATH", normal);
1446#ifndef CANNOT_DUMP 1461#ifndef CANNOT_DUMP
1447 if (!NULL (Vpurify_flag)) 1462 if (!NULL (Vpurify_flag))
1448 Vload_path = Fcons (build_string ("../lisp"), Vload_path); 1463 Vload_path = Fcons (build_string ("../lisp"), Vload_path);
1449#endif /* not CANNOT_DUMP */ 1464#endif
1465
1466 Vvalues = Qnil;
1467
1450 load_in_progress = 0; 1468 load_in_progress = 0;
1451} 1469}
1452 1470
1453void 1471void
1454syms_of_read () 1472syms_of_lread ()
1455{ 1473{
1456 defsubr (&Sread); 1474 defsubr (&Sread);
1457 defsubr (&Sread_from_string); 1475 defsubr (&Sread_from_string);