comparison src/lread.c @ 364:f4767dc8fff4

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Tue, 30 Jul 1991 08:36:29 +0000
parents 84ec93d39015
children 7c6f74ef31a3
comparison
equal deleted inserted replaced
363:f4f9b557d934 364:f4767dc8fff4
1418 abort (); 1418 abort ();
1419 } 1419 }
1420 1420
1421 #endif /* standalone */ 1421 #endif /* standalone */
1422 1422
1423 init_read () 1423 init_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;
1433 dirfile = Fcar (normal_path); 1449 dirfile = Fcar (normal_path);
1434 if (!NULL (dirfile)) 1450 if (!NULL (dirfile))
1438 printf ("Warning: lisp library (%s) does not exist.\n", 1454 printf ("Warning: lisp library (%s) does not exist.\n",
1439 XSTRING (Fcar (normal_path))->data); 1455 XSTRING (Fcar (normal_path))->data);
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
1453 void 1471 void
1454 syms_of_read () 1472 syms_of_lread ()
1455 { 1473 {
1456 defsubr (&Sread); 1474 defsubr (&Sread);
1457 defsubr (&Sread_from_string); 1475 defsubr (&Sread_from_string);
1458 defsubr (&Sintern); 1476 defsubr (&Sintern);
1459 defsubr (&Sintern_soft); 1477 defsubr (&Sintern_soft);