diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fns.c | 5 | ||||
| -rw-r--r-- | src/lread.c | 6 |
3 files changed, 12 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4d6e669612f..827092e7f8a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * lread.c (syms_of_lread): | ||
| 4 | * fns.c (Fprovide): Adjust to new format of after-load-alist. | ||
| 5 | |||
| 1 | 2013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change) | 6 | 2013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change) |
| 2 | 7 | ||
| 3 | * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479) | 8 | * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479) |
| @@ -2545,6 +2545,8 @@ SUBFEATURE can be used to check a specific subfeature of FEATURE. */) | |||
| 2545 | return (NILP (tem)) ? Qnil : Qt; | 2545 | return (NILP (tem)) ? Qnil : Qt; |
| 2546 | } | 2546 | } |
| 2547 | 2547 | ||
| 2548 | static Lisp_Object Qfuncall; | ||
| 2549 | |||
| 2548 | DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, | 2550 | DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, |
| 2549 | doc: /* Announce that FEATURE is a feature of the current Emacs. | 2551 | doc: /* Announce that FEATURE is a feature of the current Emacs. |
| 2550 | The optional argument SUBFEATURES should be a list of symbols listing | 2552 | The optional argument SUBFEATURES should be a list of symbols listing |
| @@ -2567,7 +2569,7 @@ particular subfeatures supported in this version of FEATURE. */) | |||
| 2567 | /* Run any load-hooks for this file. */ | 2569 | /* Run any load-hooks for this file. */ |
| 2568 | tem = Fassq (feature, Vafter_load_alist); | 2570 | tem = Fassq (feature, Vafter_load_alist); |
| 2569 | if (CONSP (tem)) | 2571 | if (CONSP (tem)) |
| 2570 | Fprogn (XCDR (tem)); | 2572 | Fmapc (Qfuncall, XCDR (tem)); |
| 2571 | 2573 | ||
| 2572 | return feature; | 2574 | return feature; |
| 2573 | } | 2575 | } |
| @@ -4866,6 +4868,7 @@ syms_of_fns (void) | |||
| 4866 | Used by `featurep' and `require', and altered by `provide'. */); | 4868 | Used by `featurep' and `require', and altered by `provide'. */); |
| 4867 | Vfeatures = Fcons (intern_c_string ("emacs"), Qnil); | 4869 | Vfeatures = Fcons (intern_c_string ("emacs"), Qnil); |
| 4868 | DEFSYM (Qsubfeatures, "subfeatures"); | 4870 | DEFSYM (Qsubfeatures, "subfeatures"); |
| 4871 | DEFSYM (Qfuncall, "funcall"); | ||
| 4869 | 4872 | ||
| 4870 | #ifdef HAVE_LANGINFO_CODESET | 4873 | #ifdef HAVE_LANGINFO_CODESET |
| 4871 | DEFSYM (Qcodeset, "codeset"); | 4874 | DEFSYM (Qcodeset, "codeset"); |
diff --git a/src/lread.c b/src/lread.c index 3ca644bb45b..b57665e365c 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -4485,15 +4485,15 @@ customize `jka-compr-load-suffixes' rather than the present variable. */); | |||
| 4485 | DEFSYM (Qload_in_progress, "load-in-progress"); | 4485 | DEFSYM (Qload_in_progress, "load-in-progress"); |
| 4486 | 4486 | ||
| 4487 | DEFVAR_LISP ("after-load-alist", Vafter_load_alist, | 4487 | DEFVAR_LISP ("after-load-alist", Vafter_load_alist, |
| 4488 | doc: /* An alist of expressions to be evalled when particular files are loaded. | 4488 | doc: /* An alist of functions to be evalled when particular files are loaded. |
| 4489 | Each element looks like (REGEXP-OR-FEATURE FORMS...). | 4489 | Each element looks like (REGEXP-OR-FEATURE FUNCS...). |
| 4490 | 4490 | ||
| 4491 | REGEXP-OR-FEATURE is either a regular expression to match file names, or | 4491 | REGEXP-OR-FEATURE is either a regular expression to match file names, or |
| 4492 | a symbol \(a feature name). | 4492 | a symbol \(a feature name). |
| 4493 | 4493 | ||
| 4494 | When `load' is run and the file-name argument matches an element's | 4494 | When `load' is run and the file-name argument matches an element's |
| 4495 | REGEXP-OR-FEATURE, or when `provide' is run and provides the symbol | 4495 | REGEXP-OR-FEATURE, or when `provide' is run and provides the symbol |
| 4496 | REGEXP-OR-FEATURE, the FORMS in the element are executed. | 4496 | REGEXP-OR-FEATURE, the FUNCS in the element are called. |
| 4497 | 4497 | ||
| 4498 | An error in FORMS does not undo the load, but does prevent execution of | 4498 | An error in FORMS does not undo the load, but does prevent execution of |
| 4499 | the rest of the FORMS. */); | 4499 | the rest of the FORMS. */); |