aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Wohler2011-07-03 19:58:14 -0700
committerBill Wohler2011-07-03 19:58:14 -0700
commit3ca74e5368a1022e332a0601d9be2418dbe8c083 (patch)
treea4bb4d280cb6758e8e2dec263e1ea261e90fa924 /src
parent92ec073e6441e7abfdc49c7734a880fecdf2d1f3 (diff)
parenta555cb879988c74b28cb0aa1e9cd1b19f5df6980 (diff)
downloademacs-3ca74e5368a1022e332a0601d9be2418dbe8c083.tar.gz
emacs-3ca74e5368a1022e332a0601d9be2418dbe8c083.zip
Merge from trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog24
-rw-r--r--src/callint.c7
-rw-r--r--src/editfns.c3
-rw-r--r--src/eval.c25
-rw-r--r--src/gnutls.c44
-rw-r--r--src/xfaces.c12
6 files changed, 69 insertions, 46 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d77a246a50a..f861e8ed5f7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,27 @@
12011-07-04 Juanma Barranquero <lekktu@gmail.com>
2
3 * gnutls.c (Fgnutls_boot): Don't mention :verify-error.
4 (syms_of_gnutls): Remove duplicate DEFSYM for
5 Qgnutls_bootprop_verify_hostname_error, an error for
6 Qgnutls_bootprop_verify_error (which is no longer used).
7
8 * eval.c (find_handler_clause): Remove parameters `sig' and `data',
9 unused since 2011-01-26T20:02:07Z!monnier@iro.umontreal.ca. All callers changed.
10 Also (re)move comments that are misplaced or no longer relevant.
11
122011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
13
14 * callint.c (Finteractive): Clarify the meaning of "@" (bug#8813).
15
162011-07-03 Chong Yidong <cyd@stupidchicken.com>
17
18 * xfaces.c (Finternal_merge_in_global_face): Modify the foreground
19 and background color parameters if they have been changed.
20
212011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
22
23 * editfns.c (Fformat): Clarify the - and 0 flags (bug#6659).
24
12011-07-03 Paul Eggert <eggert@cs.ucla.edu> 252011-07-03 Paul Eggert <eggert@cs.ucla.edu>
2 26
3 * xsettings.c (SYSTEM_FONT): Define only when used. 27 * xsettings.c (SYSTEM_FONT): Define only when used.
diff --git a/src/callint.c b/src/callint.c
index 4d0a2a07921..1371b403e4b 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -105,9 +105,10 @@ Z -- Coding system, nil if no prefix arg.
105 105
106In addition, if the string begins with `*', an error is signaled if 106In addition, if the string begins with `*', an error is signaled if
107 the buffer is read-only. 107 the buffer is read-only.
108If the string begins with `@', Emacs searches the key sequence which 108If `@' appears at the beginning of the string, and if the key sequence
109 invoked the command for its first mouse click (or any other event 109 used to invoke the command includes any mouse events, then the window
110 which specifies a window). 110 associated with the first of those events is selected before the
111 command is run.
111If the string begins with `^' and `shift-select-mode' is non-nil, 112If the string begins with `^' and `shift-select-mode' is non-nil,
112 Emacs first calls the function `handle-shift-selection'. 113 Emacs first calls the function `handle-shift-selection'.
113You may use `@', `*', and `^' together. They are processed in the 114You may use `@', `*', and `^' together. They are processed in the
diff --git a/src/editfns.c b/src/editfns.c
index 5328b714b0f..c470c9be985 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3557,7 +3557,8 @@ The width specifier supplies a lower limit for the length of the
3557printed representation. The padding, if any, normally goes on the 3557printed representation. The padding, if any, normally goes on the
3558left, but it goes on the right if the - flag is present. The padding 3558left, but it goes on the right if the - flag is present. The padding
3559character is normally a space, but it is 0 if the 0 flag is present. 3559character is normally a space, but it is 0 if the 0 flag is present.
3560The - flag takes precedence over the 0 flag. 3560The 0 flag is ignored if the - flag is present, or the format sequence
3561is something other than %d, %e, %f, and %g.
3561 3562
3562For %e, %f, and %g sequences, the number after the "." in the 3563For %e, %f, and %g sequences, the number after the "." in the
3563precision specifier says how many decimal places to show; if zero, the 3564precision specifier says how many decimal places to show; if zero, the
diff --git a/src/eval.c b/src/eval.c
index cb8b4f3ea07..e8a3f947f9d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1640,8 +1640,7 @@ internal_condition_case_n (Lisp_Object (*bfun) (ptrdiff_t, Lisp_Object *),
1640} 1640}
1641 1641
1642 1642
1643static Lisp_Object find_handler_clause (Lisp_Object, Lisp_Object, 1643static Lisp_Object find_handler_clause (Lisp_Object, Lisp_Object);
1644 Lisp_Object, Lisp_Object);
1645static int maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig, 1644static int maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig,
1646 Lisp_Object data); 1645 Lisp_Object data);
1647 1646
@@ -1717,8 +1716,7 @@ See also the function `condition-case'. */)
1717 1716
1718 for (h = handlerlist; h; h = h->next) 1717 for (h = handlerlist; h; h = h->next)
1719 { 1718 {
1720 clause = find_handler_clause (h->handler, conditions, 1719 clause = find_handler_clause (h->handler, conditions);
1721 error_symbol, data);
1722 if (!NILP (clause)) 1720 if (!NILP (clause))
1723 break; 1721 break;
1724 } 1722 }
@@ -1889,8 +1887,10 @@ skip_debugger (Lisp_Object conditions, Lisp_Object data)
1889} 1887}
1890 1888
1891/* Call the debugger if calling it is currently enabled for CONDITIONS. 1889/* Call the debugger if calling it is currently enabled for CONDITIONS.
1892 SIG and DATA describe the signal, as in find_handler_clause. */ 1890 SIG and DATA describe the signal. There are two ways to pass them:
1893 1891 = SIG is the error symbol, and DATA is the rest of the data.
1892 = SIG is nil, and DATA is (SYMBOL . REST-OF-DATA).
1893 This is for memory-full errors only. */
1894static int 1894static int
1895maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig, Lisp_Object data) 1895maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig, Lisp_Object data)
1896{ 1896{
@@ -1917,19 +1917,8 @@ maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig, Lisp_Object data)
1917 return 0; 1917 return 0;
1918} 1918}
1919 1919
1920/* Value of Qlambda means we have called debugger and user has continued.
1921 There are two ways to pass SIG and DATA:
1922 = SIG is the error symbol, and DATA is the rest of the data.
1923 = SIG is nil, and DATA is (SYMBOL . REST-OF-DATA).
1924 This is for memory-full errors only.
1925
1926 We need to increase max_specpdl_size temporarily around
1927 anything we do that can push on the specpdl, so as not to get
1928 a second error here in case we're handling specpdl overflow. */
1929
1930static Lisp_Object 1920static Lisp_Object
1931find_handler_clause (Lisp_Object handlers, Lisp_Object conditions, 1921find_handler_clause (Lisp_Object handlers, Lisp_Object conditions)
1932 Lisp_Object sig, Lisp_Object data)
1933{ 1922{
1934 register Lisp_Object h; 1923 register Lisp_Object h;
1935 1924
diff --git a/src/gnutls.c b/src/gnutls.c
index 2a055ac40f0..55c7ff01c0c 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -638,9 +638,6 @@ certificates for `gnutls-x509pki'.
638:verify-flags is a bitset as per GnuTLS' 638:verify-flags is a bitset as per GnuTLS'
639gnutls_certificate_set_verify_flags. 639gnutls_certificate_set_verify_flags.
640 640
641:verify-error, if non-nil, makes failure of the certificate validation
642an error. Otherwise it will be just a series of warnings.
643
644:verify-hostname-error, if non-nil, makes a hostname mismatch an 641:verify-hostname-error, if non-nil, makes a hostname mismatch an
645error. Otherwise it will be just a warning. 642error. Otherwise it will be just a warning.
646 643
@@ -1100,36 +1097,35 @@ syms_of_gnutls (void)
1100{ 1097{
1101 gnutls_global_initialized = 0; 1098 gnutls_global_initialized = 0;
1102 1099
1103 DEFSYM(Qgnutls_dll, "gnutls"); 1100 DEFSYM (Qgnutls_dll, "gnutls");
1104 DEFSYM(Qgnutls_log_level, "gnutls-log-level"); 1101 DEFSYM (Qgnutls_log_level, "gnutls-log-level");
1105 DEFSYM(Qgnutls_code, "gnutls-code"); 1102 DEFSYM (Qgnutls_code, "gnutls-code");
1106 DEFSYM(Qgnutls_anon, "gnutls-anon"); 1103 DEFSYM (Qgnutls_anon, "gnutls-anon");
1107 DEFSYM(Qgnutls_x509pki, "gnutls-x509pki"); 1104 DEFSYM (Qgnutls_x509pki, "gnutls-x509pki");
1108 DEFSYM(Qgnutls_bootprop_hostname, ":hostname"); 1105 DEFSYM (Qgnutls_bootprop_hostname, ":hostname");
1109 DEFSYM(Qgnutls_bootprop_priority, ":priority"); 1106 DEFSYM (Qgnutls_bootprop_priority, ":priority");
1110 DEFSYM(Qgnutls_bootprop_trustfiles, ":trustfiles"); 1107 DEFSYM (Qgnutls_bootprop_trustfiles, ":trustfiles");
1111 DEFSYM(Qgnutls_bootprop_keylist, ":keylist"); 1108 DEFSYM (Qgnutls_bootprop_keylist, ":keylist");
1112 DEFSYM(Qgnutls_bootprop_crlfiles, ":crlfiles"); 1109 DEFSYM (Qgnutls_bootprop_crlfiles, ":crlfiles");
1113 DEFSYM(Qgnutls_bootprop_callbacks, ":callbacks"); 1110 DEFSYM (Qgnutls_bootprop_callbacks, ":callbacks");
1114 DEFSYM(Qgnutls_bootprop_callbacks_verify, "verify"); 1111 DEFSYM (Qgnutls_bootprop_callbacks_verify, "verify");
1115 DEFSYM(Qgnutls_bootprop_loglevel, ":loglevel"); 1112 DEFSYM (Qgnutls_bootprop_loglevel, ":loglevel");
1116 DEFSYM(Qgnutls_bootprop_verify_flags, ":verify-flags"); 1113 DEFSYM (Qgnutls_bootprop_verify_flags, ":verify-flags");
1117 DEFSYM(Qgnutls_bootprop_verify_hostname_error, ":verify-error"); 1114 DEFSYM (Qgnutls_bootprop_verify_hostname_error, ":verify-hostname-error");
1118 DEFSYM(Qgnutls_bootprop_verify_hostname_error, ":verify-hostname-error"); 1115
1119 1116 DEFSYM (Qgnutls_e_interrupted, "gnutls-e-interrupted");
1120 DEFSYM(Qgnutls_e_interrupted, "gnutls-e-interrupted");
1121 Fput (Qgnutls_e_interrupted, Qgnutls_code, 1117 Fput (Qgnutls_e_interrupted, Qgnutls_code,
1122 make_number (GNUTLS_E_INTERRUPTED)); 1118 make_number (GNUTLS_E_INTERRUPTED));
1123 1119
1124 DEFSYM(Qgnutls_e_again, "gnutls-e-again"); 1120 DEFSYM (Qgnutls_e_again, "gnutls-e-again");
1125 Fput (Qgnutls_e_again, Qgnutls_code, 1121 Fput (Qgnutls_e_again, Qgnutls_code,
1126 make_number (GNUTLS_E_AGAIN)); 1122 make_number (GNUTLS_E_AGAIN));
1127 1123
1128 DEFSYM(Qgnutls_e_invalid_session, "gnutls-e-invalid-session"); 1124 DEFSYM (Qgnutls_e_invalid_session, "gnutls-e-invalid-session");
1129 Fput (Qgnutls_e_invalid_session, Qgnutls_code, 1125 Fput (Qgnutls_e_invalid_session, Qgnutls_code,
1130 make_number (GNUTLS_E_INVALID_SESSION)); 1126 make_number (GNUTLS_E_INVALID_SESSION));
1131 1127
1132 DEFSYM(Qgnutls_e_not_ready_for_handshake, "gnutls-e-not-ready-for-handshake"); 1128 DEFSYM (Qgnutls_e_not_ready_for_handshake, "gnutls-e-not-ready-for-handshake");
1133 Fput (Qgnutls_e_not_ready_for_handshake, Qgnutls_code, 1129 Fput (Qgnutls_e_not_ready_for_handshake, Qgnutls_code,
1134 make_number (GNUTLS_E_APPLICATION_ERROR_MIN)); 1130 make_number (GNUTLS_E_APPLICATION_ERROR_MIN));
1135 1131
diff --git a/src/xfaces.c b/src/xfaces.c
index 4f06bd3ba55..91f4b133466 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3813,6 +3813,18 @@ Default face attributes override any local face attributes. */)
3813 Fmodify_frame_parameters (frame, Fcons (Fcons (Qfont, name), 3813 Fmodify_frame_parameters (frame, Fcons (Fcons (Qfont, name),
3814 Qnil)); 3814 Qnil));
3815 } 3815 }
3816
3817 if (STRINGP (gvec[LFACE_FOREGROUND_INDEX]))
3818 Fmodify_frame_parameters (frame,
3819 Fcons (Fcons (Qforeground_color,
3820 gvec[LFACE_FOREGROUND_INDEX]),
3821 Qnil));
3822
3823 if (STRINGP (gvec[LFACE_BACKGROUND_INDEX]))
3824 Fmodify_frame_parameters (frame,
3825 Fcons (Fcons (Qbackground_color,
3826 gvec[LFACE_BACKGROUND_INDEX]),
3827 Qnil));
3816 } 3828 }
3817 } 3829 }
3818 3830