diff options
| author | Karl Heuer | 1994-10-04 12:07:50 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 12:07:50 +0000 |
| commit | 2d80a27a7e891ec4858641f7a0f190208b703d44 (patch) | |
| tree | ad021a60f991c2904c229fddc97339313f5e00dc /src | |
| parent | e0cb2a68a0ea33e3c6d976124669f33577f1ccae (diff) | |
| download | emacs-2d80a27a7e891ec4858641f7a0f190208b703d44.tar.gz emacs-2d80a27a7e891ec4858641f7a0f190208b703d44.zip | |
(make_minibuffer_frame, make_terminal_frame, Fselected_frame,
Fframe_root_window, Fframe_selected_window, Fset_frame_selected_window,
Fnext_frame, Fprevious_frame, Fdelete_frame, Fmouse_position,
Fmouse_pixel_position, Fmake_frame_visible, Fmake_frame_invisible,
Ficonify_frame): Use new accessor macros instead of calling XSET directly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/frame.c b/src/frame.c index 8ddb32f7934..633945409ce 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -285,7 +285,7 @@ make_minibuffer_frame () | |||
| 285 | register Lisp_Object mini_window; | 285 | register Lisp_Object mini_window; |
| 286 | register Lisp_Object frame; | 286 | register Lisp_Object frame; |
| 287 | 287 | ||
| 288 | XSET (frame, Lisp_Frame, f); | 288 | XSETFRAME (frame, f); |
| 289 | 289 | ||
| 290 | f->auto_raise = 0; | 290 | f->auto_raise = 0; |
| 291 | f->auto_lower = 0; | 291 | f->auto_lower = 0; |
| @@ -323,13 +323,13 @@ make_terminal_frame () | |||
| 323 | Vframe_list = Qnil; | 323 | Vframe_list = Qnil; |
| 324 | f = make_frame (1); | 324 | f = make_frame (1); |
| 325 | 325 | ||
| 326 | XSET (frame, Lisp_Frame, f); | 326 | XSETFRAME (frame, f); |
| 327 | Vframe_list = Fcons (frame, Vframe_list); | 327 | Vframe_list = Fcons (frame, Vframe_list); |
| 328 | 328 | ||
| 329 | f->name = build_string ("terminal"); | 329 | f->name = build_string ("terminal"); |
| 330 | FRAME_SET_VISIBLE (f, 1); | 330 | FRAME_SET_VISIBLE (f, 1); |
| 331 | f->display.nothing = 1; /* Nonzero means frame isn't deleted. */ | 331 | f->display.nothing = 1; /* Nonzero means frame isn't deleted. */ |
| 332 | XSET (Vterminal_frame, Lisp_Frame, f); | 332 | XSETFRAME (Vterminal_frame, f); |
| 333 | return f; | 333 | return f; |
| 334 | } | 334 | } |
| 335 | 335 | ||
| @@ -452,7 +452,7 @@ DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, | |||
| 452 | () | 452 | () |
| 453 | { | 453 | { |
| 454 | Lisp_Object tem; | 454 | Lisp_Object tem; |
| 455 | XSET (tem, Lisp_Frame, selected_frame); | 455 | XSETFRAME (tem, selected_frame); |
| 456 | return tem; | 456 | return tem; |
| 457 | } | 457 | } |
| 458 | 458 | ||
| @@ -499,7 +499,7 @@ If omitted, FRAME defaults to the currently selected frame.") | |||
| 499 | Lisp_Object frame; | 499 | Lisp_Object frame; |
| 500 | { | 500 | { |
| 501 | if (NILP (frame)) | 501 | if (NILP (frame)) |
| 502 | XSET (frame, Lisp_Frame, selected_frame); | 502 | XSETFRAME (frame, selected_frame); |
| 503 | else | 503 | else |
| 504 | CHECK_LIVE_FRAME (frame, 0); | 504 | CHECK_LIVE_FRAME (frame, 0); |
| 505 | 505 | ||
| @@ -514,7 +514,7 @@ If omitted, FRAME defaults to the currently selected frame.") | |||
| 514 | Lisp_Object frame; | 514 | Lisp_Object frame; |
| 515 | { | 515 | { |
| 516 | if (NILP (frame)) | 516 | if (NILP (frame)) |
| 517 | XSET (frame, Lisp_Frame, selected_frame); | 517 | XSETFRAME (frame, selected_frame); |
| 518 | else | 518 | else |
| 519 | CHECK_LIVE_FRAME (frame, 0); | 519 | CHECK_LIVE_FRAME (frame, 0); |
| 520 | 520 | ||
| @@ -530,7 +530,7 @@ If FRAME is the selected frame, this makes WINDOW the selected window.") | |||
| 530 | Lisp_Object frame, window; | 530 | Lisp_Object frame, window; |
| 531 | { | 531 | { |
| 532 | if (NILP (frame)) | 532 | if (NILP (frame)) |
| 533 | XSET (frame, Lisp_Frame, selected_frame); | 533 | XSETFRAME (frame, selected_frame); |
| 534 | else | 534 | else |
| 535 | CHECK_LIVE_FRAME (frame, 0); | 535 | CHECK_LIVE_FRAME (frame, 0); |
| 536 | 536 | ||
| @@ -725,7 +725,7 @@ Otherwise, include all frames.") | |||
| 725 | Lisp_Object tail; | 725 | Lisp_Object tail; |
| 726 | 726 | ||
| 727 | if (NILP (frame)) | 727 | if (NILP (frame)) |
| 728 | XSET (frame, Lisp_Frame, selected_frame); | 728 | XSETFRAME (frame, selected_frame); |
| 729 | else | 729 | else |
| 730 | CHECK_LIVE_FRAME (frame, 0); | 730 | CHECK_LIVE_FRAME (frame, 0); |
| 731 | 731 | ||
| @@ -748,7 +748,7 @@ Otherwise, include all frames.") | |||
| 748 | Lisp_Object tail; | 748 | Lisp_Object tail; |
| 749 | 749 | ||
| 750 | if (NILP (frame)) | 750 | if (NILP (frame)) |
| 751 | XSET (frame, Lisp_Frame, selected_frame); | 751 | XSETFRAME (frame, selected_frame); |
| 752 | else | 752 | else |
| 753 | CHECK_LIVE_FRAME (frame, 0); | 753 | CHECK_LIVE_FRAME (frame, 0); |
| 754 | 754 | ||
| @@ -814,7 +814,7 @@ but if the second optional argument FORCE is non-nil, you may do so.") | |||
| 814 | if (EQ (frame, Qnil)) | 814 | if (EQ (frame, Qnil)) |
| 815 | { | 815 | { |
| 816 | f = selected_frame; | 816 | f = selected_frame; |
| 817 | XSET (frame, Lisp_Frame, f); | 817 | XSETFRAME (frame, f); |
| 818 | } | 818 | } |
| 819 | else | 819 | else |
| 820 | { | 820 | { |
| @@ -1005,7 +1005,7 @@ and nil for X and Y.") | |||
| 1005 | XSETINT (x, col); | 1005 | XSETINT (x, col); |
| 1006 | XSETINT (y, row); | 1006 | XSETINT (y, row); |
| 1007 | } | 1007 | } |
| 1008 | XSET (lispy_dummy, Lisp_Frame, f); | 1008 | XSETFRAME (lispy_dummy, f); |
| 1009 | return Fcons (lispy_dummy, Fcons (x, y)); | 1009 | return Fcons (lispy_dummy, Fcons (x, y)); |
| 1010 | } | 1010 | } |
| 1011 | 1011 | ||
| @@ -1035,7 +1035,7 @@ and nil for X and Y.") | |||
| 1035 | &lispy_dummy, &party_dummy, | 1035 | &lispy_dummy, &party_dummy, |
| 1036 | &x, &y, | 1036 | &x, &y, |
| 1037 | &long_dummy); | 1037 | &long_dummy); |
| 1038 | XSET (lispy_dummy, Lisp_Frame, f); | 1038 | XSETFRAME (lispy_dummy, f); |
| 1039 | return Fcons (lispy_dummy, Fcons (x, y)); | 1039 | return Fcons (lispy_dummy, Fcons (x, y)); |
| 1040 | } | 1040 | } |
| 1041 | 1041 | ||
| @@ -1090,7 +1090,7 @@ If omitted, FRAME defaults to the currently selected frame.") | |||
| 1090 | Lisp_Object frame; | 1090 | Lisp_Object frame; |
| 1091 | { | 1091 | { |
| 1092 | if (NILP (frame)) | 1092 | if (NILP (frame)) |
| 1093 | XSET (frame, Lisp_Frame, selected_frame); | 1093 | XSETFRAME (frame, selected_frame); |
| 1094 | 1094 | ||
| 1095 | CHECK_LIVE_FRAME (frame, 0); | 1095 | CHECK_LIVE_FRAME (frame, 0); |
| 1096 | 1096 | ||
| @@ -1119,7 +1119,7 @@ but if the second optional argument FORCE is non-nil, you may do so.") | |||
| 1119 | Lisp_Object frame, force; | 1119 | Lisp_Object frame, force; |
| 1120 | { | 1120 | { |
| 1121 | if (NILP (frame)) | 1121 | if (NILP (frame)) |
| 1122 | XSET (frame, Lisp_Frame, selected_frame); | 1122 | XSETFRAME (frame, selected_frame); |
| 1123 | 1123 | ||
| 1124 | CHECK_LIVE_FRAME (frame, 0); | 1124 | CHECK_LIVE_FRAME (frame, 0); |
| 1125 | 1125 | ||
| @@ -1160,7 +1160,7 @@ If omitted, FRAME defaults to the currently selected frame.") | |||
| 1160 | Lisp_Object frame; | 1160 | Lisp_Object frame; |
| 1161 | { | 1161 | { |
| 1162 | if (NILP (frame)) | 1162 | if (NILP (frame)) |
| 1163 | XSET (frame, Lisp_Frame, selected_frame); | 1163 | XSETFRAME (frame, selected_frame); |
| 1164 | 1164 | ||
| 1165 | CHECK_LIVE_FRAME (frame, 0); | 1165 | CHECK_LIVE_FRAME (frame, 0); |
| 1166 | 1166 | ||