diff options
| author | Karl Heuer | 1994-10-04 12:33:33 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 12:33:33 +0000 |
| commit | 191ed777ea83e4e3bef03fa794d13e343a45c5ee (patch) | |
| tree | e80941893c2b48ed8d9346a44456279906d40e74 /src | |
| parent | ac22a6c4381822166d515f18cdab7f81f657421b (diff) | |
| download | emacs-191ed777ea83e4e3bef03fa794d13e343a45c5ee.tar.gz emacs-191ed777ea83e4e3bef03fa794d13e343a45c5ee.zip | |
(x_set_frame_parameters, x_set_visibility, Fx_create_frame,
x_get_focus_frame): Use new accessor macros instead of calling XSET directly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xfns.c b/src/xfns.c index a2a86ad2869..c087f87ca27 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -534,7 +534,7 @@ x_set_frame_parameters (f, alist) | |||
| 534 | if (f->display.x->left_pos < 0) | 534 | if (f->display.x->left_pos < 0) |
| 535 | left = Fcons (Qplus, Fcons (make_number (f->display.x->left_pos), Qnil)); | 535 | left = Fcons (Qplus, Fcons (make_number (f->display.x->left_pos), Qnil)); |
| 536 | else | 536 | else |
| 537 | XSET (left, Lisp_Int, f->display.x->left_pos); | 537 | XSETINT (left, f->display.x->left_pos); |
| 538 | } | 538 | } |
| 539 | if (EQ (top, Qunbound)) | 539 | if (EQ (top, Qunbound)) |
| 540 | { | 540 | { |
| @@ -542,14 +542,14 @@ x_set_frame_parameters (f, alist) | |||
| 542 | if (f->display.x->top_pos < 0) | 542 | if (f->display.x->top_pos < 0) |
| 543 | top = Fcons (Qplus, Fcons (make_number (f->display.x->top_pos), Qnil)); | 543 | top = Fcons (Qplus, Fcons (make_number (f->display.x->top_pos), Qnil)); |
| 544 | else | 544 | else |
| 545 | XSET (top, Lisp_Int, f->display.x->top_pos); | 545 | XSETINT (top, f->display.x->top_pos); |
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | /* Don't die if just one of these was set. */ | 548 | /* Don't die if just one of these was set. */ |
| 549 | if (EQ (width, Qunbound)) | 549 | if (EQ (width, Qunbound)) |
| 550 | XSET (width, Lisp_Int, FRAME_WIDTH (f)); | 550 | XSETINT (width, FRAME_WIDTH (f)); |
| 551 | if (EQ (height, Qunbound)) | 551 | if (EQ (height, Qunbound)) |
| 552 | XSET (height, Lisp_Int, FRAME_HEIGHT (f)); | 552 | XSETINT (height, FRAME_HEIGHT (f)); |
| 553 | 553 | ||
| 554 | /* Don't set these parameters these unless they've been explicitly | 554 | /* Don't set these parameters these unless they've been explicitly |
| 555 | specified. The window might be mapped or resized while we're in | 555 | specified. The window might be mapped or resized while we're in |
| @@ -564,7 +564,7 @@ x_set_frame_parameters (f, alist) | |||
| 564 | 564 | ||
| 565 | check_frame_size (f, &height, &width); | 565 | check_frame_size (f, &height, &width); |
| 566 | 566 | ||
| 567 | XSET (frame, Lisp_Frame, f); | 567 | XSETFRAME (frame, f); |
| 568 | 568 | ||
| 569 | if ((NUMBERP (width) && XINT (width) != FRAME_WIDTH (f)) | 569 | if ((NUMBERP (width) && XINT (width) != FRAME_WIDTH (f)) |
| 570 | || (NUMBERP (height) && XINT (height) != FRAME_HEIGHT (f))) | 570 | || (NUMBERP (height) && XINT (height) != FRAME_HEIGHT (f))) |
| @@ -1189,7 +1189,7 @@ x_set_visibility (f, value, oldval) | |||
| 1189 | Lisp_Object value, oldval; | 1189 | Lisp_Object value, oldval; |
| 1190 | { | 1190 | { |
| 1191 | Lisp_Object frame; | 1191 | Lisp_Object frame; |
| 1192 | XSET (frame, Lisp_Frame, f); | 1192 | XSETFRAME (frame, f); |
| 1193 | 1193 | ||
| 1194 | if (NILP (value)) | 1194 | if (NILP (value)) |
| 1195 | Fmake_frame_invisible (frame, Qt); | 1195 | Fmake_frame_invisible (frame, Qt); |
| @@ -2343,7 +2343,7 @@ be shared by the new frame.") | |||
| 2343 | specbind (Qx_resource_name, name); | 2343 | specbind (Qx_resource_name, name); |
| 2344 | } | 2344 | } |
| 2345 | 2345 | ||
| 2346 | XSET (frame, Lisp_Frame, f); | 2346 | XSETFRAME (frame, f); |
| 2347 | GCPRO1 (frame); | 2347 | GCPRO1 (frame); |
| 2348 | 2348 | ||
| 2349 | f->output_method = output_x_window; | 2349 | f->output_method = output_x_window; |
| @@ -2519,7 +2519,7 @@ x_get_focus_frame () | |||
| 2519 | if (! x_focus_frame) | 2519 | if (! x_focus_frame) |
| 2520 | return Qnil; | 2520 | return Qnil; |
| 2521 | 2521 | ||
| 2522 | XSET (xfocus, Lisp_Frame, x_focus_frame); | 2522 | XSETFRAME (xfocus, x_focus_frame); |
| 2523 | return xfocus; | 2523 | return xfocus; |
| 2524 | } | 2524 | } |
| 2525 | 2525 | ||