aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGrégoire Jadi2013-06-15 11:24:47 +0200
committerGrégoire Jadi2013-06-15 11:24:47 +0200
commit1a0f9e5e80586e4f2157fdfecae250c5619edf15 (patch)
treedbf9c38ab630787db0e41667efc19715f7d571b4 /src
parentc75684e7603cfea0ec91c63fca0187a5544245c8 (diff)
parent2a342ba649407875a265b8d56c9f7c3d87c4b43c (diff)
downloademacs-1a0f9e5e80586e4f2157fdfecae250c5619edf15.tar.gz
emacs-1a0f9e5e80586e4f2157fdfecae250c5619edf15.zip
Merge branch 'jave-xwidget' into xwidget
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/fileio.c2
-rw-r--r--src/fns.c5
-rw-r--r--src/lread.c6
4 files changed, 17 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 38eb460359c..827092e7f8a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12013-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
62013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change)
7
8 * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479)
9
12013-06-12 Xue Fuqiao <xfq.free@gmail.com> 102013-06-12 Xue Fuqiao <xfq.free@gmail.com>
2 11
3 * fileio.c (expand_file_name): Doc fix. 12 * fileio.c (expand_file_name): Doc fix.
diff --git a/src/fileio.c b/src/fileio.c
index ce5d4854fee..6a60186a84f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5596,7 +5596,7 @@ A non-nil CURRENT-ONLY argument means save only current buffer. */)
5596 point to non-strings reached from Vbuffer_alist. */ 5596 point to non-strings reached from Vbuffer_alist. */
5597 5597
5598 hook = intern ("auto-save-hook"); 5598 hook = intern ("auto-save-hook");
5599 Frun_hooks (1, &hook); 5599 safe_run_hooks (hook);
5600 5600
5601 if (STRINGP (Vauto_save_list_file_name)) 5601 if (STRINGP (Vauto_save_list_file_name))
5602 { 5602 {
diff --git a/src/fns.c b/src/fns.c
index 08c6f055f38..06d4e358f10 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -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
2548static Lisp_Object Qfuncall;
2549
2548DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, 2550DEFUN ("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.
2550The optional argument SUBFEATURES should be a list of symbols listing 2552The 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)
4866Used by `featurep' and `require', and altered by `provide'. */); 4868Used 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.
4489Each element looks like (REGEXP-OR-FEATURE FORMS...). 4489Each element looks like (REGEXP-OR-FEATURE FUNCS...).
4490 4490
4491REGEXP-OR-FEATURE is either a regular expression to match file names, or 4491REGEXP-OR-FEATURE is either a regular expression to match file names, or
4492a symbol \(a feature name). 4492a symbol \(a feature name).
4493 4493
4494When `load' is run and the file-name argument matches an element's 4494When `load' is run and the file-name argument matches an element's
4495REGEXP-OR-FEATURE, or when `provide' is run and provides the symbol 4495REGEXP-OR-FEATURE, or when `provide' is run and provides the symbol
4496REGEXP-OR-FEATURE, the FORMS in the element are executed. 4496REGEXP-OR-FEATURE, the FUNCS in the element are called.
4497 4497
4498An error in FORMS does not undo the load, but does prevent execution of 4498An error in FORMS does not undo the load, but does prevent execution of
4499the rest of the FORMS. */); 4499the rest of the FORMS. */);