Mercurial > emacs
changeset 9103:948e8acb6990
(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.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 27 Sep 1994 00:30:32 +0000 |
parents | 7a73653817de |
children | 610e18fd64a9 |
files | src/xfns.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Tue Sep 27 00:27:58 1994 +0000 +++ b/src/xfns.c Tue Sep 27 00:30:32 1994 +0000 @@ -510,7 +510,7 @@ param_index = Fget (prop, Qx_frame_parameter); old_value = get_frame_param (f, prop); store_frame_param (f, prop, val); - if (XTYPE (param_index) == Lisp_Int + if (INTEGERP (param_index) && XINT (param_index) >= 0 && (XINT (param_index) < sizeof (x_frame_parms)/sizeof (x_frame_parms[0]))) @@ -1227,7 +1227,7 @@ if (FRAME_MINIBUF_ONLY_P (f)) return; - if (XTYPE (value) == Lisp_Int) + if (INTEGERP (value)) nlines = XINT (value); else nlines = 0; @@ -2285,7 +2285,7 @@ check_x (); name = x_get_arg (parms, Qname, "title", "Title", string); - if (XTYPE (name) != Lisp_String + if (!STRINGP (name) && ! EQ (name, Qunbound) && ! NILP (name)) error ("x-create-frame: name parameter must be a string"); @@ -2298,7 +2298,7 @@ f = make_minibuffer_frame (); minibuffer_only = 1; } - else if (XTYPE (tem) == Lisp_Window) + else if (WINDOWP (tem)) f = make_frame_without_minibuffer (tem); else f = make_frame (1); @@ -3366,7 +3366,7 @@ while (1) { obj = read_char (-1, 0, 0, Qnil, 0); - if (XTYPE (obj) != Lisp_Cons) + if (!CONSP (obj)) break; if (mouse_below_point) @@ -3498,9 +3498,9 @@ do { obj = read_char (-1, 0, 0, Qnil, 0); - if ((XTYPE (obj) != Lisp_Cons) + if (!CONSP (obj) || (! EQ (Fcar (Fcdr (Fcdr (obj))), - Qvertical_scroll_bar)) + Qvertical_scroll_bar)) || x_mouse_grabbed) { BLOCK_INPUT; @@ -3716,7 +3716,7 @@ obj = read_char (-1, 0, 0, Qnil, 0); BLOCK_INPUT; } - while (XTYPE (obj) == Lisp_Cons /* Mouse event */ + while (CONSP (obj) /* Mouse event */ && EQ (Fcar (Fcdr (Fcdr (obj))), Qnil) /* Not scroll bar */ && EQ (Vmouse_depressed, Qnil) /* Only motion events */ && EQ (Vmouse_window, selected_window) /* In this window */