aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorKen Raeburn1999-10-25 04:58:18 +0000
committerKen Raeburn1999-10-25 04:58:18 +0000
commit7539e11fca07e5837010aaae18eaaefc7e51cf52 (patch)
tree679815b93c740067026d3a86165a2433f71fbad6 /src/frame.c
parent3a7093d84fa090b8f2458cef0376b81de4bd77ff (diff)
downloademacs-7539e11fca07e5837010aaae18eaaefc7e51cf52.tar.gz
emacs-7539e11fca07e5837010aaae18eaaefc7e51cf52.zip
more XCAR/XCDR/XFLOAT_DATA uses, to help isolete lisp engine
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/frame.c b/src/frame.c
index e5f80fdea16..8298a01aa17 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -631,9 +631,9 @@ do_switch_frame (frame, no_enter, track)
631 /* If FRAME is a switch-frame event, extract the frame we should 631 /* If FRAME is a switch-frame event, extract the frame we should
632 switch to. */ 632 switch to. */
633 if (CONSP (frame) 633 if (CONSP (frame)
634 && EQ (XCONS (frame)->car, Qswitch_frame) 634 && EQ (XCAR (frame), Qswitch_frame)
635 && CONSP (XCONS (frame)->cdr)) 635 && CONSP (XCDR (frame)))
636 frame = XCONS (XCONS (frame)->cdr)->car; 636 frame = XCAR (XCDR (frame));
637 637
638 /* This used to say CHECK_LIVE_FRAME, but apparently it's possible for 638 /* This used to say CHECK_LIVE_FRAME, but apparently it's possible for
639 a switch-frame event to arrive after a frame is no longer live, 639 a switch-frame event to arrive after a frame is no longer live,
@@ -659,17 +659,17 @@ do_switch_frame (frame, no_enter, track)
659 { 659 {
660 Lisp_Object tail; 660 Lisp_Object tail;
661 661
662 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr) 662 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail))
663 { 663 {
664 Lisp_Object focus; 664 Lisp_Object focus;
665 665
666 if (!FRAMEP (XCONS (tail)->car)) 666 if (!FRAMEP (XCAR (tail)))
667 abort (); 667 abort ();
668 668
669 focus = FRAME_FOCUS_FRAME (XFRAME (XCONS (tail)->car)); 669 focus = FRAME_FOCUS_FRAME (XFRAME (XCAR (tail)));
670 670
671 if (FRAMEP (focus) && XFRAME (focus) == SELECTED_FRAME ()) 671 if (FRAMEP (focus) && XFRAME (focus) == SELECTED_FRAME ())
672 Fredirect_frame_focus (XCONS (tail)->car, frame); 672 Fredirect_frame_focus (XCAR (tail), frame);
673 } 673 }
674 } 674 }
675#else /* ! 0 */ 675#else /* ! 0 */
@@ -893,11 +893,11 @@ next_frame (frame, minibuf)
893 CHECK_LIVE_FRAME (frame, 0); 893 CHECK_LIVE_FRAME (frame, 0);
894 894
895 while (1) 895 while (1)
896 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr) 896 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail))
897 { 897 {
898 Lisp_Object f; 898 Lisp_Object f;
899 899
900 f = XCONS (tail)->car; 900 f = XCAR (tail);
901 901
902 if (passed 902 if (passed
903 && FRAME_KBOARD (XFRAME (f)) == FRAME_KBOARD (XFRAME (frame))) 903 && FRAME_KBOARD (XFRAME (f)) == FRAME_KBOARD (XFRAME (frame)))
@@ -968,11 +968,11 @@ prev_frame (frame, minibuf)
968 abort (); 968 abort ();
969 969
970 prev = Qnil; 970 prev = Qnil;
971 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr) 971 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail))
972 { 972 {
973 Lisp_Object f; 973 Lisp_Object f;
974 974
975 f = XCONS (tail)->car; 975 f = XCAR (tail);
976 if (!FRAMEP (f)) 976 if (!FRAMEP (f))
977 abort (); 977 abort ();
978 978
@@ -1087,11 +1087,11 @@ other_visible_frames (f)
1087 1087
1088 for (frames = Vframe_list; 1088 for (frames = Vframe_list;
1089 CONSP (frames); 1089 CONSP (frames);
1090 frames = XCONS (frames)->cdr) 1090 frames = XCDR (frames))
1091 { 1091 {
1092 Lisp_Object this; 1092 Lisp_Object this;
1093 1093
1094 this = XCONS (frames)->car; 1094 this = XCAR (frames);
1095 /* Verify that the frame's window still exists 1095 /* Verify that the frame's window still exists
1096 and we can still talk to it. And note any recent change 1096 and we can still talk to it. And note any recent change
1097 in visibility. */ 1097 in visibility. */
@@ -1148,7 +1148,7 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1148#if 0 1148#if 0
1149 /* This is a nice idea, but x_connection_closed needs to be able 1149 /* This is a nice idea, but x_connection_closed needs to be able
1150 to delete the last frame, if it is gone. */ 1150 to delete the last frame, if it is gone. */
1151 if (NILP (XCONS (Vframe_list)->cdr)) 1151 if (NILP (XCDR (Vframe_list)))
1152 error ("Attempt to delete the only frame"); 1152 error ("Attempt to delete the only frame");
1153#endif 1153#endif
1154 1154
@@ -1160,10 +1160,10 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1160 1160
1161 for (frames = Vframe_list; 1161 for (frames = Vframe_list;
1162 CONSP (frames); 1162 CONSP (frames);
1163 frames = XCONS (frames)->cdr) 1163 frames = XCDR (frames))
1164 { 1164 {
1165 Lisp_Object this; 1165 Lisp_Object this;
1166 this = XCONS (frames)->car; 1166 this = XCAR (frames);
1167 1167
1168 if (! EQ (this, frame) 1168 if (! EQ (this, frame)
1169 && EQ (frame, 1169 && EQ (frame,
@@ -1280,9 +1280,9 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1280 1280
1281 for (frames = Vframe_list; 1281 for (frames = Vframe_list;
1282 CONSP (frames); 1282 CONSP (frames);
1283 frames = XCONS (frames)->cdr) 1283 frames = XCDR (frames))
1284 { 1284 {
1285 f = XFRAME (XCONS (frames)->car); 1285 f = XFRAME (XCAR (frames));
1286 if (!FRAME_MINIBUF_ONLY_P (f)) 1286 if (!FRAME_MINIBUF_ONLY_P (f))
1287 { 1287 {
1288 last_nonminibuf_frame = f; 1288 last_nonminibuf_frame = f;
@@ -1308,12 +1308,12 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1308 1308
1309 for (frames = Vframe_list; 1309 for (frames = Vframe_list;
1310 CONSP (frames); 1310 CONSP (frames);
1311 frames = XCONS (frames)->cdr) 1311 frames = XCDR (frames))
1312 { 1312 {
1313 Lisp_Object this; 1313 Lisp_Object this;
1314 struct frame *f1; 1314 struct frame *f1;
1315 1315
1316 this = XCONS (frames)->car; 1316 this = XCAR (frames);
1317 if (!FRAMEP (this)) 1317 if (!FRAMEP (this))
1318 abort (); 1318 abort ();
1319 f1 = XFRAME (this); 1319 f1 = XFRAME (this);
@@ -1662,9 +1662,9 @@ DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list,
1662 Lisp_Object value; 1662 Lisp_Object value;
1663 1663
1664 value = Qnil; 1664 value = Qnil;
1665 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr) 1665 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail))
1666 { 1666 {
1667 frame = XCONS (tail)->car; 1667 frame = XCAR (tail);
1668 if (!FRAMEP (frame)) 1668 if (!FRAMEP (frame))
1669 continue; 1669 continue;
1670 f = XFRAME (frame); 1670 f = XFRAME (frame);