diff options
| author | Richard M. Stallman | 1997-07-07 19:00:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-07 19:00:25 +0000 |
| commit | 4b104c4137b187b36513da3b4f7b3264bc06a9d3 (patch) | |
| tree | c1415a412521e33cc421ad16dc1966f3fa39961d /src | |
| parent | 368d104a8add2d32d5090373046128fac14476f4 (diff) | |
| download | emacs-4b104c4137b187b36513da3b4f7b3264bc06a9d3.tar.gz emacs-4b104c4137b187b36513da3b4f7b3264bc06a9d3.zip | |
(Vpreloaded_file_list): New variable.
(syms_of_lread): Set up Lisp variable.
(Fload): Add to Vpreloaded_file_list, if dumping.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lread.c b/src/lread.c index fb4d7554f92..22acdda6bfa 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -95,6 +95,9 @@ Lisp_Object Vload_history; | |||
| 95 | /* This is used to build the load history. */ | 95 | /* This is used to build the load history. */ |
| 96 | Lisp_Object Vcurrent_load_list; | 96 | Lisp_Object Vcurrent_load_list; |
| 97 | 97 | ||
| 98 | /* List of files that were preloaded. */ | ||
| 99 | Lisp_Object Vpreloaded_file_list; | ||
| 100 | |||
| 98 | /* Name of file actually being read by `load'. */ | 101 | /* Name of file actually being read by `load'. */ |
| 99 | Lisp_Object Vload_file_name; | 102 | Lisp_Object Vload_file_name; |
| 100 | 103 | ||
| @@ -501,6 +504,9 @@ Return t if file exists.") | |||
| 501 | error ("Failure to create stdio stream for %s", XSTRING (file)->data); | 504 | error ("Failure to create stdio stream for %s", XSTRING (file)->data); |
| 502 | } | 505 | } |
| 503 | 506 | ||
| 507 | if (! NILP (Vpurify_flag)) | ||
| 508 | Vpreloaded_file_list = Fcons (file, Vpreloaded_file_list); | ||
| 509 | |||
| 504 | if (NILP (nomessage)) | 510 | if (NILP (nomessage)) |
| 505 | { | 511 | { |
| 506 | if (newer) | 512 | if (newer) |
| @@ -2721,6 +2727,10 @@ You cannot count on them to still be there!"); | |||
| 2721 | = Fexpand_file_name (build_string ("../"), | 2727 | = Fexpand_file_name (build_string ("../"), |
| 2722 | Fcar (decode_env_path (0, PATH_DUMPLOADSEARCH))); | 2728 | Fcar (decode_env_path (0, PATH_DUMPLOADSEARCH))); |
| 2723 | 2729 | ||
| 2730 | DEFVAR_LISP ("preloaded-file-list", &Vpreloaded_file_list, | ||
| 2731 | "List of files that were preloaded (when dumping Emacs)."); | ||
| 2732 | Vpreloaded_file_list = Qnil; | ||
| 2733 | |||
| 2724 | /* Vsource_directory was initialized in init_lread. */ | 2734 | /* Vsource_directory was initialized in init_lread. */ |
| 2725 | 2735 | ||
| 2726 | load_descriptor_list = Qnil; | 2736 | load_descriptor_list = Qnil; |