aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-09-27 00:30:32 +0000
committerKarl Heuer1994-09-27 00:30:32 +0000
commit6a5e54e26289cb4c9b7f2a3bbe44456a79be04a8 (patch)
tree25ac0efd9d0b4b676ba5763305e2fce6a04e8b05 /src
parentb5bb2705dc3f98c61db1b896481b414da4b4913d (diff)
downloademacs-6a5e54e26289cb4c9b7f2a3bbe44456a79be04a8.tar.gz
emacs-6a5e54e26289cb4c9b7f2a3bbe44456a79be04a8.zip
(x_set_frame_parameters, x_set_menu_bar_lines, Fx_create_frame,
Fx_select_region, Fx_horizontal_line, Fx_track_pointer): Use type test macros.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 006a6fb2599..7fdf8bb5204 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -510,7 +510,7 @@ x_set_frame_parameters (f, alist)
510 param_index = Fget (prop, Qx_frame_parameter); 510 param_index = Fget (prop, Qx_frame_parameter);
511 old_value = get_frame_param (f, prop); 511 old_value = get_frame_param (f, prop);
512 store_frame_param (f, prop, val); 512 store_frame_param (f, prop, val);
513 if (XTYPE (param_index) == Lisp_Int 513 if (INTEGERP (param_index)
514 && XINT (param_index) >= 0 514 && XINT (param_index) >= 0
515 && (XINT (param_index) 515 && (XINT (param_index)
516 < sizeof (x_frame_parms)/sizeof (x_frame_parms[0]))) 516 < sizeof (x_frame_parms)/sizeof (x_frame_parms[0])))
@@ -1227,7 +1227,7 @@ x_set_menu_bar_lines (f, value, oldval)
1227 if (FRAME_MINIBUF_ONLY_P (f)) 1227 if (FRAME_MINIBUF_ONLY_P (f))
1228 return; 1228 return;
1229 1229
1230 if (XTYPE (value) == Lisp_Int) 1230 if (INTEGERP (value))
1231 nlines = XINT (value); 1231 nlines = XINT (value);
1232 else 1232 else
1233 nlines = 0; 1233 nlines = 0;
@@ -2285,7 +2285,7 @@ be shared by the new frame.")
2285 check_x (); 2285 check_x ();
2286 2286
2287 name = x_get_arg (parms, Qname, "title", "Title", string); 2287 name = x_get_arg (parms, Qname, "title", "Title", string);
2288 if (XTYPE (name) != Lisp_String 2288 if (!STRINGP (name)
2289 && ! EQ (name, Qunbound) 2289 && ! EQ (name, Qunbound)
2290 && ! NILP (name)) 2290 && ! NILP (name))
2291 error ("x-create-frame: name parameter must be a string"); 2291 error ("x-create-frame: name parameter must be a string");
@@ -2298,7 +2298,7 @@ be shared by the new frame.")
2298 f = make_minibuffer_frame (); 2298 f = make_minibuffer_frame ();
2299 minibuffer_only = 1; 2299 minibuffer_only = 1;
2300 } 2300 }
2301 else if (XTYPE (tem) == Lisp_Window) 2301 else if (WINDOWP (tem))
2302 f = make_frame_without_minibuffer (tem); 2302 f = make_frame_without_minibuffer (tem);
2303 else 2303 else
2304 f = make_frame (1); 2304 f = make_frame (1);
@@ -3366,7 +3366,7 @@ DEFUN ("x-select-region", Fx_select_region, Sx_select_region, 1, 1, "e",
3366 while (1) 3366 while (1)
3367 { 3367 {
3368 obj = read_char (-1, 0, 0, Qnil, 0); 3368 obj = read_char (-1, 0, 0, Qnil, 0);
3369 if (XTYPE (obj) != Lisp_Cons) 3369 if (!CONSP (obj))
3370 break; 3370 break;
3371 3371
3372 if (mouse_below_point) 3372 if (mouse_below_point)
@@ -3498,9 +3498,9 @@ DEFUN ("x-horizontal-line", Fx_horizontal_line, Sx_horizontal_line, 1, 1, "e",
3498 do 3498 do
3499 { 3499 {
3500 obj = read_char (-1, 0, 0, Qnil, 0); 3500 obj = read_char (-1, 0, 0, Qnil, 0);
3501 if ((XTYPE (obj) != Lisp_Cons) 3501 if (!CONSP (obj)
3502 || (! EQ (Fcar (Fcdr (Fcdr (obj))), 3502 || (! EQ (Fcar (Fcdr (Fcdr (obj))),
3503 Qvertical_scroll_bar)) 3503 Qvertical_scroll_bar))
3504 || x_mouse_grabbed) 3504 || x_mouse_grabbed)
3505 { 3505 {
3506 BLOCK_INPUT; 3506 BLOCK_INPUT;
@@ -3716,7 +3716,7 @@ DEFUN ("x-track-pointer", Fx_track_pointer, Sx_track_pointer, 1, 1, "e",
3716 obj = read_char (-1, 0, 0, Qnil, 0); 3716 obj = read_char (-1, 0, 0, Qnil, 0);
3717 BLOCK_INPUT; 3717 BLOCK_INPUT;
3718 } 3718 }
3719 while (XTYPE (obj) == Lisp_Cons /* Mouse event */ 3719 while (CONSP (obj) /* Mouse event */
3720 && EQ (Fcar (Fcdr (Fcdr (obj))), Qnil) /* Not scroll bar */ 3720 && EQ (Fcar (Fcdr (Fcdr (obj))), Qnil) /* Not scroll bar */
3721 && EQ (Vmouse_depressed, Qnil) /* Only motion events */ 3721 && EQ (Vmouse_depressed, Qnil) /* Only motion events */
3722 && EQ (Vmouse_window, selected_window) /* In this window */ 3722 && EQ (Vmouse_window, selected_window) /* In this window */