diff options
| author | Richard M. Stallman | 2005-12-11 05:10:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-12-11 05:10:08 +0000 |
| commit | 06100606c1512e0f1bac929a10af057313b4cfbd (patch) | |
| tree | 35762b77837c6f3b16c231d9917cbf667b686e03 /src | |
| parent | 356e6d8de4516169075b06405cb8283d544b78b6 (diff) | |
| download | emacs-06100606c1512e0f1bac929a10af057313b4cfbd.tar.gz emacs-06100606c1512e0f1bac929a10af057313b4cfbd.zip | |
(Frequire): Treat evaluating from a source file
like loading the file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -3559,14 +3559,20 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 3559 | { | 3559 | { |
| 3560 | register Lisp_Object tem; | 3560 | register Lisp_Object tem; |
| 3561 | struct gcpro gcpro1, gcpro2; | 3561 | struct gcpro gcpro1, gcpro2; |
| 3562 | int from_file = load_in_progress; | ||
| 3562 | 3563 | ||
| 3563 | CHECK_SYMBOL (feature); | 3564 | CHECK_SYMBOL (feature); |
| 3564 | 3565 | ||
| 3565 | /* Record the presence of `require' in this file | 3566 | /* Record the presence of `require' in this file |
| 3566 | even if the feature specified is already loaded. | 3567 | even if the feature specified is already loaded. |
| 3567 | But not more than once in any file, | 3568 | But not more than once in any file, |
| 3568 | and not when we aren't loading a file. */ | 3569 | and not when we aren't loading or reading from a file. */ |
| 3569 | if (load_in_progress) | 3570 | if (!from_file) |
| 3571 | for (tem = Vcurrent_load_list; CONSP (tem); tem = XCDR (tem)) | ||
| 3572 | if (NILP (XCDR (tem)) && STRINGP (XCAR (tem))) | ||
| 3573 | from_file = 1; | ||
| 3574 | |||
| 3575 | if (from_file) | ||
| 3570 | { | 3576 | { |
| 3571 | tem = Fcons (Qrequire, feature); | 3577 | tem = Fcons (Qrequire, feature); |
| 3572 | if (NILP (Fmember (tem, Vcurrent_load_list))) | 3578 | if (NILP (Fmember (tem, Vcurrent_load_list))) |