aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-31 00:24:03 -0400
committerStefan Monnier2011-03-31 00:24:03 -0400
commit40d83b412f584cc02e68d4eac8fd5e6eb769e2fe (patch)
treeb56f27a7e6d75a8c1fd27b00179a27b5efea0a32 /src/frame.c
parentf488fb6528738131ef41859e1f04125f2e50efce (diff)
parent44f230aa043ebb222aa0876b44d70484d5dd38db (diff)
downloademacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.tar.gz
emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.zip
Merge from trunk
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/frame.c b/src/frame.c
index 05938f3e1f0..1b6d36092ae 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -890,7 +890,7 @@ to that frame. */)
890{ 890{
891 /* Preserve prefix arg that the command loop just cleared. */ 891 /* Preserve prefix arg that the command loop just cleared. */
892 KVAR (current_kboard, Vprefix_arg) = Vcurrent_prefix_arg; 892 KVAR (current_kboard, Vprefix_arg) = Vcurrent_prefix_arg;
893 call1 (Vrun_hooks, Qmouse_leave_buffer_hook); 893 Frun_hooks (1, &Qmouse_leave_buffer_hook);
894 return do_switch_frame (event, 0, 0, Qnil); 894 return do_switch_frame (event, 0, 0, Qnil);
895} 895}
896 896
@@ -2529,7 +2529,7 @@ use is not recommended. Explicitly check for a frame-parameter instead. */)
2529 } 2529 }
2530 2530
2531 /* Now process them in reverse of specified order. */ 2531 /* Now process them in reverse of specified order. */
2532 for (i--; i >= 0; i--) 2532 while (--i >= 0)
2533 { 2533 {
2534 prop = parms[i]; 2534 prop = parms[i];
2535 val = values[i]; 2535 val = values[i];
@@ -2902,7 +2902,7 @@ x_set_frame_parameters (FRAME_PTR f, Lisp_Object alist)
2902 /* Record in these vectors all the parms specified. */ 2902 /* Record in these vectors all the parms specified. */
2903 Lisp_Object *parms; 2903 Lisp_Object *parms;
2904 Lisp_Object *values; 2904 Lisp_Object *values;
2905 int i, p; 2905 size_t i, p;
2906 int left_no_change = 0, top_no_change = 0; 2906 int left_no_change = 0, top_no_change = 0;
2907 int icon_left_no_change = 0, icon_top_no_change = 0; 2907 int icon_left_no_change = 0, icon_top_no_change = 0;
2908 int size_changed = 0; 2908 int size_changed = 0;
@@ -2975,7 +2975,7 @@ x_set_frame_parameters (FRAME_PTR f, Lisp_Object alist)
2975 } 2975 }
2976 2976
2977 /* Now process them in reverse of specified order. */ 2977 /* Now process them in reverse of specified order. */
2978 for (i--; i >= 0; i--) 2978 while (i-- != 0)
2979 { 2979 {
2980 Lisp_Object prop, val; 2980 Lisp_Object prop, val;
2981 2981
@@ -3713,8 +3713,7 @@ validate_x_resource_name (void)
3713 return; 3713 return;
3714 3714
3715 /* If name is entirely invalid, or nearly so, use `emacs'. */ 3715 /* If name is entirely invalid, or nearly so, use `emacs'. */
3716 if (good_count == 0 3716 if (good_count < 2)
3717 || (good_count == 1 && bad_count > 0))
3718 { 3717 {
3719 Vx_resource_name = build_string ("emacs"); 3718 Vx_resource_name = build_string ("emacs");
3720 return; 3719 return;