aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn1999-09-12 05:07:01 +0000
committerKen Raeburn1999-09-12 05:07:01 +0000
commit70949dac51f3e975477e6b1a38cc78625efc4a40 (patch)
treed0048c9a0b9bc18a9dd65e094b0fce43d1067f9b /src
parente952bf4445863c01763f402389b38c00f77e024b (diff)
downloademacs-70949dac51f3e975477e6b1a38cc78625efc4a40.tar.gz
emacs-70949dac51f3e975477e6b1a38cc78625efc4a40.zip
Use XCAR, XCDR, XFLOAT_DATA instead of explicit member access.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c40
-rw-r--r--src/bytecode.c14
-rw-r--r--src/callint.c28
-rw-r--r--src/callproc.c32
-rw-r--r--src/dired.c8
-rw-r--r--src/floatfns.c18
-rw-r--r--src/fns.c84
-rw-r--r--src/indent.c24
-rw-r--r--src/process.c54
-rw-r--r--src/textprop.c24
10 files changed, 163 insertions, 163 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 64f9e0ccd2b..8cebe6d598a 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -680,7 +680,7 @@ make_float (float_value)
680 } 680 }
681 XSETFLOAT (val, &float_block->floats[float_block_index++]); 681 XSETFLOAT (val, &float_block->floats[float_block_index++]);
682 } 682 }
683 XFLOAT (val)->data = float_value; 683 XFLOAT_DATA (val) = float_value;
684 XSETFASTINT (XFLOAT (val)->type, 0); /* bug chasing -wsr */ 684 XSETFASTINT (XFLOAT (val)->type, 0); /* bug chasing -wsr */
685 consing_since_gc += sizeof (struct Lisp_Float); 685 consing_since_gc += sizeof (struct Lisp_Float);
686 floats_consed++; 686 floats_consed++;
@@ -765,8 +765,8 @@ DEFUN ("cons", Fcons, Scons, 2, 2, 0,
765 } 765 }
766 XSETCONS (val, &cons_block->conses[cons_block_index++]); 766 XSETCONS (val, &cons_block->conses[cons_block_index++]);
767 } 767 }
768 XCONS (val)->car = car; 768 XCAR (val) = car;
769 XCONS (val)->cdr = cdr; 769 XCDR (val) = cdr;
770 consing_since_gc += sizeof (struct Lisp_Cons); 770 consing_since_gc += sizeof (struct Lisp_Cons);
771 cons_cells_consed++; 771 cons_cells_consed++;
772 return val; 772 return val;
@@ -1568,8 +1568,8 @@ pure_cons (car, cdr)
1568 error ("Pure Lisp storage exhausted"); 1568 error ("Pure Lisp storage exhausted");
1569 XSETCONS (new, PUREBEG + pureptr); 1569 XSETCONS (new, PUREBEG + pureptr);
1570 pureptr += sizeof (struct Lisp_Cons); 1570 pureptr += sizeof (struct Lisp_Cons);
1571 XCONS (new)->car = Fpurecopy (car); 1571 XCAR (new) = Fpurecopy (car);
1572 XCONS (new)->cdr = Fpurecopy (cdr); 1572 XCDR (new) = Fpurecopy (cdr);
1573 return new; 1573 return new;
1574} 1574}
1575 1575
@@ -1606,7 +1606,7 @@ make_pure_float (num)
1606 error ("Pure Lisp storage exhausted"); 1606 error ("Pure Lisp storage exhausted");
1607 XSETFLOAT (new, PUREBEG + pureptr); 1607 XSETFLOAT (new, PUREBEG + pureptr);
1608 pureptr += sizeof (struct Lisp_Float); 1608 pureptr += sizeof (struct Lisp_Float);
1609 XFLOAT (new)->data = num; 1609 XFLOAT_DATA (new) = num;
1610 XSETFASTINT (XFLOAT (new)->type, 0); /* bug chasing -wsr */ 1610 XSETFASTINT (XFLOAT (new)->type, 0); /* bug chasing -wsr */
1611 return new; 1611 return new;
1612} 1612}
@@ -1644,10 +1644,10 @@ Does not copy symbols.")
1644 return obj; 1644 return obj;
1645 1645
1646 if (CONSP (obj)) 1646 if (CONSP (obj))
1647 return pure_cons (XCONS (obj)->car, XCONS (obj)->cdr); 1647 return pure_cons (XCAR (obj), XCDR (obj));
1648#ifdef LISP_FLOAT_TYPE 1648#ifdef LISP_FLOAT_TYPE
1649 else if (FLOATP (obj)) 1649 else if (FLOATP (obj))
1650 return make_pure_float (XFLOAT (obj)->data); 1650 return make_pure_float (XFLOAT_DATA (obj));
1651#endif /* LISP_FLOAT_TYPE */ 1651#endif /* LISP_FLOAT_TYPE */
1652 else if (STRINGP (obj)) 1652 else if (STRINGP (obj))
1653 return make_pure_string (XSTRING (obj)->data, XSTRING (obj)->size, 1653 return make_pure_string (XSTRING (obj)->data, XSTRING (obj)->size,
@@ -1892,19 +1892,19 @@ Garbage collection happens automatically if you cons more than\n\
1892 prev = Qnil; 1892 prev = Qnil;
1893 while (CONSP (tail)) 1893 while (CONSP (tail))
1894 { 1894 {
1895 if (GC_CONSP (XCONS (tail)->car) 1895 if (GC_CONSP (XCAR (tail))
1896 && GC_MARKERP (XCONS (XCONS (tail)->car)->car) 1896 && GC_MARKERP (XCAR (XCAR (tail)))
1897 && ! XMARKBIT (XMARKER (XCONS (XCONS (tail)->car)->car)->chain)) 1897 && ! XMARKBIT (XMARKER (XCAR (XCAR (tail)))->chain))
1898 { 1898 {
1899 if (NILP (prev)) 1899 if (NILP (prev))
1900 nextb->undo_list = tail = XCONS (tail)->cdr; 1900 nextb->undo_list = tail = XCDR (tail);
1901 else 1901 else
1902 tail = XCONS (prev)->cdr = XCONS (tail)->cdr; 1902 tail = XCDR (prev) = XCDR (tail);
1903 } 1903 }
1904 else 1904 else
1905 { 1905 {
1906 prev = tail; 1906 prev = tail;
1907 tail = XCONS (tail)->cdr; 1907 tail = XCDR (tail);
1908 } 1908 }
1909 } 1909 }
1910 } 1910 }
@@ -2462,7 +2462,7 @@ mark_object (argptr)
2462 } 2462 }
2463 mark_object (&ptr->car); 2463 mark_object (&ptr->car);
2464 /* See comment above under Lisp_Vector for why not use ptr here. */ 2464 /* See comment above under Lisp_Vector for why not use ptr here. */
2465 objptr = &XCONS (obj)->cdr; 2465 objptr = &XCDR (obj);
2466 goto loop; 2466 goto loop;
2467 } 2467 }
2468 2468
@@ -2509,11 +2509,11 @@ mark_buffer (buf)
2509 break; 2509 break;
2510 XMARK (ptr->car); 2510 XMARK (ptr->car);
2511 if (GC_CONSP (ptr->car) 2511 if (GC_CONSP (ptr->car)
2512 && ! XMARKBIT (XCONS (ptr->car)->car) 2512 && ! XMARKBIT (XCAR (ptr->car))
2513 && GC_MARKERP (XCONS (ptr->car)->car)) 2513 && GC_MARKERP (XCAR (ptr->car)))
2514 { 2514 {
2515 XMARK (XCONS (ptr->car)->car); 2515 XMARK (XCAR (ptr->car));
2516 mark_object (&XCONS (ptr->car)->cdr); 2516 mark_object (&XCDR (ptr->car));
2517 } 2517 }
2518 else 2518 else
2519 mark_object (&ptr->car); 2519 mark_object (&ptr->car);
@@ -2524,7 +2524,7 @@ mark_buffer (buf)
2524 break; 2524 break;
2525 } 2525 }
2526 2526
2527 mark_object (&XCONS (tail)->cdr); 2527 mark_object (&XCDR (tail));
2528 } 2528 }
2529 else 2529 else
2530 mark_object (&buffer->undo_list); 2530 mark_object (&buffer->undo_list);
diff --git a/src/bytecode.c b/src/bytecode.c
index 6ed0eda904f..e69ae722248 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -629,7 +629,7 @@ If the third argument is incorrect, Emacs may crash.")
629 while (--op >= 0) 629 while (--op >= 0)
630 { 630 {
631 if (CONSP (v1)) 631 if (CONSP (v1))
632 v1 = XCONS (v1)->cdr; 632 v1 = XCDR (v1);
633 else if (!NILP (v1)) 633 else if (!NILP (v1))
634 { 634 {
635 immediate_quit = 0; 635 immediate_quit = 0;
@@ -674,14 +674,14 @@ If the third argument is incorrect, Emacs may crash.")
674 case Bcar: 674 case Bcar:
675 v1 = TOP; 675 v1 = TOP;
676 docar: 676 docar:
677 if (CONSP (v1)) TOP = XCONS (v1)->car; 677 if (CONSP (v1)) TOP = XCAR (v1);
678 else if (NILP (v1)) TOP = Qnil; 678 else if (NILP (v1)) TOP = Qnil;
679 else Fcar (wrong_type_argument (Qlistp, v1)); 679 else Fcar (wrong_type_argument (Qlistp, v1));
680 break; 680 break;
681 681
682 case Bcdr: 682 case Bcdr:
683 v1 = TOP; 683 v1 = TOP;
684 if (CONSP (v1)) TOP = XCONS (v1)->cdr; 684 if (CONSP (v1)) TOP = XCDR (v1);
685 else if (NILP (v1)) TOP = Qnil; 685 else if (NILP (v1)) TOP = Qnil;
686 else Fcdr (wrong_type_argument (Qlistp, v1)); 686 else Fcdr (wrong_type_argument (Qlistp, v1));
687 break; 687 break;
@@ -810,8 +810,8 @@ If the third argument is incorrect, Emacs may crash.")
810 { 810 {
811 double f1, f2; 811 double f1, f2;
812 812
813 f1 = (FLOATP (v1) ? XFLOAT (v1)->data : XINT (v1)); 813 f1 = (FLOATP (v1) ? XFLOAT_DATA (v1) : XINT (v1));
814 f2 = (FLOATP (v2) ? XFLOAT (v2)->data : XINT (v2)); 814 f2 = (FLOATP (v2) ? XFLOAT_DATA (v2) : XINT (v2));
815 TOP = (f1 == f2 ? Qt : Qnil); 815 TOP = (f1 == f2 ? Qt : Qnil);
816 } 816 }
817 else 817 else
@@ -1097,7 +1097,7 @@ If the third argument is incorrect, Emacs may crash.")
1097 case Bcar_safe: 1097 case Bcar_safe:
1098 v1 = TOP; 1098 v1 = TOP;
1099 if (CONSP (v1)) 1099 if (CONSP (v1))
1100 TOP = XCONS (v1)->car; 1100 TOP = XCAR (v1);
1101 else 1101 else
1102 TOP = Qnil; 1102 TOP = Qnil;
1103 break; 1103 break;
@@ -1105,7 +1105,7 @@ If the third argument is incorrect, Emacs may crash.")
1105 case Bcdr_safe: 1105 case Bcdr_safe:
1106 v1 = TOP; 1106 v1 = TOP;
1107 if (CONSP (v1)) 1107 if (CONSP (v1))
1108 TOP = XCONS (v1)->cdr; 1108 TOP = XCDR (v1);
1109 else 1109 else
1110 TOP = Qnil; 1110 TOP = Qnil;
1111 break; 1111 break;
diff --git a/src/callint.c b/src/callint.c
index f033d32b417..644f9bc55c0 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -314,17 +314,17 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
314 instead of the present values. */ 314 instead of the present values. */
315 if (CONSP (input)) 315 if (CONSP (input))
316 { 316 {
317 car = XCONS (input)->car; 317 car = XCAR (input);
318 /* Skip through certain special forms. */ 318 /* Skip through certain special forms. */
319 while (EQ (car, Qlet) || EQ (car, Qletx) 319 while (EQ (car, Qlet) || EQ (car, Qletx)
320 || EQ (car, Qsave_excursion)) 320 || EQ (car, Qsave_excursion))
321 { 321 {
322 while (CONSP (XCONS (input)->cdr)) 322 while (CONSP (XCDR (input)))
323 input = XCONS (input)->cdr; 323 input = XCDR (input);
324 input = XCONS (input)->car; 324 input = XCAR (input);
325 if (!CONSP (input)) 325 if (!CONSP (input))
326 break; 326 break;
327 car = XCONS (input)->car; 327 car = XCAR (input);
328 } 328 }
329 if (EQ (car, Qlist)) 329 if (EQ (car, Qlist))
330 { 330 {
@@ -353,7 +353,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
353 { 353 {
354 teml = Fnthcdr (Vhistory_length, Vcommand_history); 354 teml = Fnthcdr (Vhistory_length, Vcommand_history);
355 if (CONSP (teml)) 355 if (CONSP (teml))
356 XCONS (teml)->cdr = Qnil; 356 XCDR (teml) = Qnil;
357 } 357 }
358 } 358 }
359 single_kboard_state (); 359 single_kboard_state ();
@@ -388,9 +388,9 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
388 388
389 event = XVECTOR (keys)->contents[next_event]; 389 event = XVECTOR (keys)->contents[next_event];
390 if (EVENT_HAS_PARAMETERS (event) 390 if (EVENT_HAS_PARAMETERS (event)
391 && (event = XCONS (event)->cdr, CONSP (event)) 391 && (event = XCDR (event), CONSP (event))
392 && (event = XCONS (event)->car, CONSP (event)) 392 && (event = XCAR (event), CONSP (event))
393 && (event = XCONS (event)->car, WINDOWP (event))) 393 && (event = XCAR (event), WINDOWP (event)))
394 { 394 {
395 if (MINI_WINDOW_P (XWINDOW (event)) 395 if (MINI_WINDOW_P (XWINDOW (event))
396 && ! (minibuf_level > 0 && EQ (event, minibuf_window))) 396 && ! (minibuf_level > 0 && EQ (event, minibuf_window)))
@@ -554,7 +554,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
554 discard the following up-event. */ 554 discard the following up-event. */
555 teml = Faref (args[i], make_number (XINT (Flength (args[i])) - 1)); 555 teml = Faref (args[i], make_number (XINT (Flength (args[i])) - 1));
556 if (CONSP (teml)) 556 if (CONSP (teml))
557 teml = XCONS (teml)->car; 557 teml = XCAR (teml);
558 if (SYMBOLP (teml)) 558 if (SYMBOLP (teml))
559 { 559 {
560 Lisp_Object tem2; 560 Lisp_Object tem2;
@@ -582,7 +582,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
582 discard the following up-event. */ 582 discard the following up-event. */
583 teml = Faref (args[i], make_number (XINT (Flength (args[i])) - 1)); 583 teml = Faref (args[i], make_number (XINT (Flength (args[i])) - 1));
584 if (CONSP (teml)) 584 if (CONSP (teml))
585 teml = XCONS (teml)->car; 585 teml = XCAR (teml);
586 if (SYMBOLP (teml)) 586 if (SYMBOLP (teml))
587 { 587 {
588 Lisp_Object tem2; 588 Lisp_Object tem2;
@@ -771,7 +771,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
771 { 771 {
772 teml = Fnthcdr (Vhistory_length, Vcommand_history); 772 teml = Fnthcdr (Vhistory_length, Vcommand_history);
773 if (CONSP (teml)) 773 if (CONSP (teml))
774 XCONS (teml)->cdr = Qnil; 774 XCDR (teml) = Qnil;
775 } 775 }
776 } 776 }
777 777
@@ -807,8 +807,8 @@ Its numeric meaning is what you would get from `(interactive \"p\")'.")
807 XSETFASTINT (val, 1); 807 XSETFASTINT (val, 1);
808 else if (EQ (raw, Qminus)) 808 else if (EQ (raw, Qminus))
809 XSETINT (val, -1); 809 XSETINT (val, -1);
810 else if (CONSP (raw) && INTEGERP (XCONS (raw)->car)) 810 else if (CONSP (raw) && INTEGERP (XCAR (raw)))
811 XSETINT (val, XINT (XCONS (raw)->car)); 811 XSETINT (val, XINT (XCAR (raw)));
812 else if (INTEGERP (raw)) 812 else if (INTEGERP (raw))
813 val = raw; 813 val = raw;
814 else 814 else
diff --git a/src/callproc.c b/src/callproc.c
index f17b4cc63af..fec6c53733e 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -270,9 +270,9 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
270 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 270 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
271 coding_systems = Ffind_operation_coding_system (nargs + 1, args2); 271 coding_systems = Ffind_operation_coding_system (nargs + 1, args2);
272 if (CONSP (coding_systems)) 272 if (CONSP (coding_systems))
273 val = XCONS (coding_systems)->cdr; 273 val = XCDR (coding_systems);
274 else if (CONSP (Vdefault_process_coding_system)) 274 else if (CONSP (Vdefault_process_coding_system))
275 val = XCONS (Vdefault_process_coding_system)->cdr; 275 val = XCDR (Vdefault_process_coding_system);
276 else 276 else
277 val = Qnil; 277 val = Qnil;
278 } 278 }
@@ -296,10 +296,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
296 (BUFFER-FOR-STDOUT FILE-FOR-STDERR). */ 296 (BUFFER-FOR-STDOUT FILE-FOR-STDERR). */
297 if (CONSP (buffer)) 297 if (CONSP (buffer))
298 { 298 {
299 if (CONSP (XCONS (buffer)->cdr)) 299 if (CONSP (XCDR (buffer)))
300 { 300 {
301 Lisp_Object stderr_file; 301 Lisp_Object stderr_file;
302 stderr_file = XCONS (XCONS (buffer)->cdr)->car; 302 stderr_file = XCAR (XCDR (buffer));
303 303
304 if (NILP (stderr_file) || EQ (Qt, stderr_file)) 304 if (NILP (stderr_file) || EQ (Qt, stderr_file))
305 error_file = stderr_file; 305 error_file = stderr_file;
@@ -307,7 +307,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
307 error_file = Fexpand_file_name (stderr_file, Qnil); 307 error_file = Fexpand_file_name (stderr_file, Qnil);
308 } 308 }
309 309
310 buffer = XCONS (buffer)->car; 310 buffer = XCAR (buffer);
311 } 311 }
312 312
313 if (!(EQ (buffer, Qnil) 313 if (!(EQ (buffer, Qnil)
@@ -698,9 +698,9 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
698 = Ffind_operation_coding_system (nargs + 1, args2); 698 = Ffind_operation_coding_system (nargs + 1, args2);
699 } 699 }
700 if (CONSP (coding_systems)) 700 if (CONSP (coding_systems))
701 val = XCONS (coding_systems)->car; 701 val = XCAR (coding_systems);
702 else if (CONSP (Vdefault_process_coding_system)) 702 else if (CONSP (Vdefault_process_coding_system))
703 val = XCONS (Vdefault_process_coding_system)->car; 703 val = XCAR (Vdefault_process_coding_system);
704 else 704 else
705 val = Qnil; 705 val = Qnil;
706 } 706 }
@@ -943,9 +943,9 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
943 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 943 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
944 coding_systems = Ffind_operation_coding_system (nargs + 1, args2); 944 coding_systems = Ffind_operation_coding_system (nargs + 1, args2);
945 if (CONSP (coding_systems)) 945 if (CONSP (coding_systems))
946 val = XCONS (coding_systems)->cdr; 946 val = XCDR (coding_systems);
947 else if (CONSP (Vdefault_process_coding_system)) 947 else if (CONSP (Vdefault_process_coding_system))
948 val = XCONS (Vdefault_process_coding_system)->cdr; 948 val = XCDR (Vdefault_process_coding_system);
949 else 949 else
950 val = Qnil; 950 val = Qnil;
951 } 951 }
@@ -1088,8 +1088,8 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
1088 1088
1089 new_length = 0; 1089 new_length = 0;
1090 for (tem = Vprocess_environment; 1090 for (tem = Vprocess_environment;
1091 CONSP (tem) && STRINGP (XCONS (tem)->car); 1091 CONSP (tem) && STRINGP (XCAR (tem));
1092 tem = XCONS (tem)->cdr) 1092 tem = XCDR (tem))
1093 new_length++; 1093 new_length++;
1094 1094
1095 /* new_length + 2 to include PWD and terminating 0. */ 1095 /* new_length + 2 to include PWD and terminating 0. */
@@ -1102,11 +1102,11 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
1102 1102
1103 /* Copy the Vprocess_environment strings into new_env. */ 1103 /* Copy the Vprocess_environment strings into new_env. */
1104 for (tem = Vprocess_environment; 1104 for (tem = Vprocess_environment;
1105 CONSP (tem) && STRINGP (XCONS (tem)->car); 1105 CONSP (tem) && STRINGP (XCAR (tem));
1106 tem = XCONS (tem)->cdr) 1106 tem = XCDR (tem))
1107 { 1107 {
1108 char **ep = env; 1108 char **ep = env;
1109 char *string = (char *) XSTRING (XCONS (tem)->car)->data; 1109 char *string = (char *) XSTRING (XCAR (tem))->data;
1110 /* See if this string duplicates any string already in the env. 1110 /* See if this string duplicates any string already in the env.
1111 If so, don't put it in. 1111 If so, don't put it in.
1112 When an env var has multiple definitions, 1112 When an env var has multiple definitions,
@@ -1255,11 +1255,11 @@ getenv_internal (var, varlen, value, valuelen)
1255{ 1255{
1256 Lisp_Object scan; 1256 Lisp_Object scan;
1257 1257
1258 for (scan = Vprocess_environment; CONSP (scan); scan = XCONS (scan)->cdr) 1258 for (scan = Vprocess_environment; CONSP (scan); scan = XCDR (scan))
1259 { 1259 {
1260 Lisp_Object entry; 1260 Lisp_Object entry;
1261 1261
1262 entry = XCONS (scan)->car; 1262 entry = XCAR (scan);
1263 if (STRINGP (entry) 1263 if (STRINGP (entry)
1264 && STRING_BYTES (XSTRING (entry)) > varlen 1264 && STRING_BYTES (XSTRING (entry)) > varlen
1265 && XSTRING (entry)->data[varlen] == '=' 1265 && XSTRING (entry)->data[varlen] == '='
diff --git a/src/dired.c b/src/dired.c
index 49e95a54795..d9c2ab0f865 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -486,9 +486,9 @@ file_name_completion (file, dirname, all_flag, ver_flag)
486 if (!passcount && len > XSTRING (encoded_file)->size) 486 if (!passcount && len > XSTRING (encoded_file)->size)
487 /* and exit this for loop if a match is found */ 487 /* and exit this for loop if a match is found */
488 for (tem = Vcompletion_ignored_extensions; 488 for (tem = Vcompletion_ignored_extensions;
489 CONSP (tem); tem = XCONS (tem)->cdr) 489 CONSP (tem); tem = XCDR (tem))
490 { 490 {
491 elt = XCONS (tem)->car; 491 elt = XCAR (tem);
492 if (!STRINGP (elt)) continue; 492 if (!STRINGP (elt)) continue;
493 skip = len - XSTRING (elt)->size; 493 skip = len - XSTRING (elt)->size;
494 if (skip < 0) continue; 494 if (skip < 0) continue;
@@ -514,9 +514,9 @@ file_name_completion (file, dirname, all_flag, ver_flag)
514 514
515 /* Ignore this element if it fails to match all the regexps. */ 515 /* Ignore this element if it fails to match all the regexps. */
516 for (regexps = Vcompletion_regexp_list; CONSP (regexps); 516 for (regexps = Vcompletion_regexp_list; CONSP (regexps);
517 regexps = XCONS (regexps)->cdr) 517 regexps = XCDR (regexps))
518 { 518 {
519 tem = Fstring_match (XCONS (regexps)->car, elt, zero); 519 tem = Fstring_match (XCAR (regexps), elt, zero);
520 if (NILP (tem)) 520 if (NILP (tem))
521 break; 521 break;
522 } 522 }
diff --git a/src/floatfns.c b/src/floatfns.c
index cd1c0c4441e..b989591cc81 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -222,7 +222,7 @@ extract_float (num)
222 CHECK_NUMBER_OR_FLOAT (num, 0); 222 CHECK_NUMBER_OR_FLOAT (num, 0);
223 223
224 if (FLOATP (num)) 224 if (FLOATP (num))
225 return XFLOAT (num)->data; 225 return XFLOAT_DATA (num);
226 return (double) XINT (num); 226 return (double) XINT (num);
227} 227}
228 228
@@ -480,8 +480,8 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
480 XSETINT (val, acc); 480 XSETINT (val, acc);
481 return val; 481 return val;
482 } 482 }
483 f1 = FLOATP (arg1) ? XFLOAT (arg1)->data : XINT (arg1); 483 f1 = FLOATP (arg1) ? XFLOAT_DATA (arg1) : XINT (arg1);
484 f2 = FLOATP (arg2) ? XFLOAT (arg2)->data : XINT (arg2); 484 f2 = FLOATP (arg2) ? XFLOAT_DATA (arg2) : XINT (arg2);
485 /* Really should check for overflow, too */ 485 /* Really should check for overflow, too */
486 if (f1 == 0.0 && f2 == 0.0) 486 if (f1 == 0.0 && f2 == 0.0)
487 f1 = 1.0; 487 f1 = 1.0;
@@ -650,7 +650,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
650 CHECK_NUMBER_OR_FLOAT (arg, 0); 650 CHECK_NUMBER_OR_FLOAT (arg, 0);
651 651
652 if (FLOATP (arg)) 652 if (FLOATP (arg))
653 IN_FLOAT (arg = make_float (fabs (XFLOAT (arg)->data)), "abs", arg); 653 IN_FLOAT (arg = make_float (fabs (XFLOAT_DATA (arg))), "abs", arg);
654 else if (XINT (arg) < 0) 654 else if (XINT (arg) < 0)
655 XSETINT (arg, - XINT (arg)); 655 XSETINT (arg, - XINT (arg));
656 656
@@ -743,8 +743,8 @@ rounding_driver (arg, divisor, double_round, int_round2, name)
743 { 743 {
744 double f1, f2; 744 double f1, f2;
745 745
746 f1 = FLOATP (arg) ? XFLOAT (arg)->data : XINT (arg); 746 f1 = FLOATP (arg) ? XFLOAT_DATA (arg) : XINT (arg);
747 f2 = (FLOATP (divisor) ? XFLOAT (divisor)->data : XINT (divisor)); 747 f2 = (FLOATP (divisor) ? XFLOAT_DATA (divisor) : XINT (divisor));
748 if (! IEEE_FLOATING_POINT && f2 == 0) 748 if (! IEEE_FLOATING_POINT && f2 == 0)
749 Fsignal (Qarith_error, Qnil); 749 Fsignal (Qarith_error, Qnil);
750 750
@@ -769,7 +769,7 @@ rounding_driver (arg, divisor, double_round, int_round2, name)
769 { 769 {
770 double d; 770 double d;
771 771
772 IN_FLOAT (d = (*double_round) (XFLOAT (arg)->data), name, arg); 772 IN_FLOAT (d = (*double_round) (XFLOAT_DATA (arg)), name, arg);
773 FLOAT_TO_INT (d, arg, name, arg); 773 FLOAT_TO_INT (d, arg, name, arg);
774 } 774 }
775#endif 775#endif
@@ -890,8 +890,8 @@ fmod_float (x, y)
890{ 890{
891 double f1, f2; 891 double f1, f2;
892 892
893 f1 = FLOATP (x) ? XFLOAT (x)->data : XINT (x); 893 f1 = FLOATP (x) ? XFLOAT_DATA (x) : XINT (x);
894 f2 = FLOATP (y) ? XFLOAT (y)->data : XINT (y); 894 f2 = FLOATP (y) ? XFLOAT_DATA (y) : XINT (y);
895 895
896 if (! IEEE_FLOATING_POINT && f2 == 0) 896 if (! IEEE_FLOATING_POINT && f2 == 0)
897 Fsignal (Qarith_error, Qnil); 897 Fsignal (Qarith_error, Qnil);
diff --git a/src/fns.c b/src/fns.c
index 7e6995ad347..1c9f375ad09 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -182,13 +182,13 @@ which is at least the number of distinct elements.")
182 182
183 /* halftail is used to detect circular lists. */ 183 /* halftail is used to detect circular lists. */
184 halftail = list; 184 halftail = list;
185 for (tail = list; CONSP (tail); tail = XCONS (tail)->cdr) 185 for (tail = list; CONSP (tail); tail = XCDR (tail))
186 { 186 {
187 if (EQ (tail, halftail) && len != 0) 187 if (EQ (tail, halftail) && len != 0)
188 break; 188 break;
189 len++; 189 len++;
190 if ((len & 1) == 0) 190 if ((len & 1) == 0)
191 halftail = XCONS (halftail)->cdr; 191 halftail = XCDR (halftail);
192 } 192 }
193 193
194 XSETINT (length, len); 194 XSETINT (length, len);
@@ -630,9 +630,9 @@ concat (nargs, args, target_type, last_special)
630 else if (BOOL_VECTOR_P (this) && XBOOL_VECTOR (this)->size > 0) 630 else if (BOOL_VECTOR_P (this) && XBOOL_VECTOR (this)->size > 0)
631 wrong_type_argument (Qintegerp, Faref (this, make_number (0))); 631 wrong_type_argument (Qintegerp, Faref (this, make_number (0)));
632 else if (CONSP (this)) 632 else if (CONSP (this))
633 for (; CONSP (this); this = XCONS (this)->cdr) 633 for (; CONSP (this); this = XCDR (this))
634 { 634 {
635 ch = XCONS (this)->car; 635 ch = XCAR (this);
636 if (! INTEGERP (ch)) 636 if (! INTEGERP (ch))
637 wrong_type_argument (Qintegerp, ch); 637 wrong_type_argument (Qintegerp, ch);
638 this_len_byte = CHAR_BYTES (XINT (ch)); 638 this_len_byte = CHAR_BYTES (XINT (ch));
@@ -744,7 +744,7 @@ concat (nargs, args, target_type, last_special)
744 `this' is exhausted. */ 744 `this' is exhausted. */
745 if (NILP (this)) break; 745 if (NILP (this)) break;
746 if (CONSP (this)) 746 if (CONSP (this))
747 elt = XCONS (this)->car, this = XCONS (this)->cdr; 747 elt = XCAR (this), this = XCDR (this);
748 else if (thisindex >= thisleni) 748 else if (thisindex >= thisleni)
749 break; 749 break;
750 else if (STRINGP (this)) 750 else if (STRINGP (this))
@@ -787,9 +787,9 @@ concat (nargs, args, target_type, last_special)
787 /* Store this element into the result. */ 787 /* Store this element into the result. */
788 if (toindex < 0) 788 if (toindex < 0)
789 { 789 {
790 XCONS (tail)->car = elt; 790 XCAR (tail) = elt;
791 prev = tail; 791 prev = tail;
792 tail = XCONS (tail)->cdr; 792 tail = XCDR (tail);
793 } 793 }
794 else if (VECTORP (val)) 794 else if (VECTORP (val))
795 XVECTOR (val)->contents[toindex++] = elt; 795 XVECTOR (val)->contents[toindex++] = elt;
@@ -826,7 +826,7 @@ concat (nargs, args, target_type, last_special)
826 } 826 }
827 } 827 }
828 if (!NILP (prev)) 828 if (!NILP (prev))
829 XCONS (prev)->cdr = last_tail; 829 XCDR (prev) = last_tail;
830 830
831 if (num_textprops > 0) 831 if (num_textprops > 0)
832 { 832 {
@@ -1127,13 +1127,13 @@ Elements of ALIST that are not conses are also shared.")
1127 if (NILP (alist)) 1127 if (NILP (alist))
1128 return alist; 1128 return alist;
1129 alist = concat (1, &alist, Lisp_Cons, 0); 1129 alist = concat (1, &alist, Lisp_Cons, 0);
1130 for (tem = alist; CONSP (tem); tem = XCONS (tem)->cdr) 1130 for (tem = alist; CONSP (tem); tem = XCDR (tem))
1131 { 1131 {
1132 register Lisp_Object car; 1132 register Lisp_Object car;
1133 car = XCONS (tem)->car; 1133 car = XCAR (tem);
1134 1134
1135 if (CONSP (car)) 1135 if (CONSP (car))
1136 XCONS (tem)->car = Fcons (XCONS (car)->car, XCONS (car)->cdr); 1136 XCAR (tem) = Fcons (XCAR (car), XCDR (car));
1137 } 1137 }
1138 return alist; 1138 return alist;
1139} 1139}
@@ -1302,7 +1302,7 @@ The value is actually the tail of LIST whose car is ELT.")
1302 Lisp_Object list; 1302 Lisp_Object list;
1303{ 1303{
1304 register Lisp_Object tail; 1304 register Lisp_Object tail;
1305 for (tail = list; !NILP (tail); tail = XCONS (tail)->cdr) 1305 for (tail = list; !NILP (tail); tail = XCDR (tail))
1306 { 1306 {
1307 register Lisp_Object tem; 1307 register Lisp_Object tem;
1308 tem = Fcar (tail); 1308 tem = Fcar (tail);
@@ -1321,7 +1321,7 @@ The value is actually the tail of LIST whose car is ELT.")
1321 Lisp_Object list; 1321 Lisp_Object list;
1322{ 1322{
1323 register Lisp_Object tail; 1323 register Lisp_Object tail;
1324 for (tail = list; !NILP (tail); tail = XCONS (tail)->cdr) 1324 for (tail = list; !NILP (tail); tail = XCDR (tail))
1325 { 1325 {
1326 register Lisp_Object tem; 1326 register Lisp_Object tem;
1327 tem = Fcar (tail); 1327 tem = Fcar (tail);
@@ -1340,12 +1340,12 @@ Elements of LIST that are not conses are ignored.")
1340 Lisp_Object list; 1340 Lisp_Object list;
1341{ 1341{
1342 register Lisp_Object tail; 1342 register Lisp_Object tail;
1343 for (tail = list; !NILP (tail); tail = XCONS (tail)->cdr) 1343 for (tail = list; !NILP (tail); tail = XCDR (tail))
1344 { 1344 {
1345 register Lisp_Object elt, tem; 1345 register Lisp_Object elt, tem;
1346 elt = Fcar (tail); 1346 elt = Fcar (tail);
1347 if (!CONSP (elt)) continue; 1347 if (!CONSP (elt)) continue;
1348 tem = XCONS (elt)->car; 1348 tem = XCAR (elt);
1349 if (EQ (key, tem)) return elt; 1349 if (EQ (key, tem)) return elt;
1350 QUIT; 1350 QUIT;
1351 } 1351 }
@@ -1361,12 +1361,12 @@ assq_no_quit (key, list)
1361 Lisp_Object list; 1361 Lisp_Object list;
1362{ 1362{
1363 register Lisp_Object tail; 1363 register Lisp_Object tail;
1364 for (tail = list; CONSP (tail); tail = XCONS (tail)->cdr) 1364 for (tail = list; CONSP (tail); tail = XCDR (tail))
1365 { 1365 {
1366 register Lisp_Object elt, tem; 1366 register Lisp_Object elt, tem;
1367 elt = Fcar (tail); 1367 elt = Fcar (tail);
1368 if (!CONSP (elt)) continue; 1368 if (!CONSP (elt)) continue;
1369 tem = XCONS (elt)->car; 1369 tem = XCAR (elt);
1370 if (EQ (key, tem)) return elt; 1370 if (EQ (key, tem)) return elt;
1371 } 1371 }
1372 return Qnil; 1372 return Qnil;
@@ -1380,12 +1380,12 @@ The value is actually the element of LIST whose car equals KEY.")
1380 Lisp_Object list; 1380 Lisp_Object list;
1381{ 1381{
1382 register Lisp_Object tail; 1382 register Lisp_Object tail;
1383 for (tail = list; !NILP (tail); tail = XCONS (tail)->cdr) 1383 for (tail = list; !NILP (tail); tail = XCDR (tail))
1384 { 1384 {
1385 register Lisp_Object elt, tem; 1385 register Lisp_Object elt, tem;
1386 elt = Fcar (tail); 1386 elt = Fcar (tail);
1387 if (!CONSP (elt)) continue; 1387 if (!CONSP (elt)) continue;
1388 tem = Fequal (XCONS (elt)->car, key); 1388 tem = Fequal (XCAR (elt), key);
1389 if (!NILP (tem)) return elt; 1389 if (!NILP (tem)) return elt;
1390 QUIT; 1390 QUIT;
1391 } 1391 }
@@ -1400,12 +1400,12 @@ The value is actually the element of LIST whose cdr is ELT.")
1400 Lisp_Object list; 1400 Lisp_Object list;
1401{ 1401{
1402 register Lisp_Object tail; 1402 register Lisp_Object tail;
1403 for (tail = list; !NILP (tail); tail = XCONS (tail)->cdr) 1403 for (tail = list; !NILP (tail); tail = XCDR (tail))
1404 { 1404 {
1405 register Lisp_Object elt, tem; 1405 register Lisp_Object elt, tem;
1406 elt = Fcar (tail); 1406 elt = Fcar (tail);
1407 if (!CONSP (elt)) continue; 1407 if (!CONSP (elt)) continue;
1408 tem = XCONS (elt)->cdr; 1408 tem = XCDR (elt);
1409 if (EQ (key, tem)) return elt; 1409 if (EQ (key, tem)) return elt;
1410 QUIT; 1410 QUIT;
1411 } 1411 }
@@ -1420,12 +1420,12 @@ The value is actually the element of LIST whose cdr equals KEY.")
1420 Lisp_Object list; 1420 Lisp_Object list;
1421{ 1421{
1422 register Lisp_Object tail; 1422 register Lisp_Object tail;
1423 for (tail = list; !NILP (tail); tail = XCONS (tail)->cdr) 1423 for (tail = list; !NILP (tail); tail = XCDR (tail))
1424 { 1424 {
1425 register Lisp_Object elt, tem; 1425 register Lisp_Object elt, tem;
1426 elt = Fcar (tail); 1426 elt = Fcar (tail);
1427 if (!CONSP (elt)) continue; 1427 if (!CONSP (elt)) continue;
1428 tem = Fequal (XCONS (elt)->cdr, key); 1428 tem = Fequal (XCDR (elt), key);
1429 if (!NILP (tem)) return elt; 1429 if (!NILP (tem)) return elt;
1430 QUIT; 1430 QUIT;
1431 } 1431 }
@@ -1453,13 +1453,13 @@ to be sure of changing the value of `foo'.")
1453 if (EQ (elt, tem)) 1453 if (EQ (elt, tem))
1454 { 1454 {
1455 if (NILP (prev)) 1455 if (NILP (prev))
1456 list = XCONS (tail)->cdr; 1456 list = XCDR (tail);
1457 else 1457 else
1458 Fsetcdr (prev, XCONS (tail)->cdr); 1458 Fsetcdr (prev, XCDR (tail));
1459 } 1459 }
1460 else 1460 else
1461 prev = tail; 1461 prev = tail;
1462 tail = XCONS (tail)->cdr; 1462 tail = XCDR (tail);
1463 QUIT; 1463 QUIT;
1464 } 1464 }
1465 return list; 1465 return list;
@@ -1487,13 +1487,13 @@ to be sure of changing the value of `foo'.")
1487 if (! NILP (Fequal (elt, tem))) 1487 if (! NILP (Fequal (elt, tem)))
1488 { 1488 {
1489 if (NILP (prev)) 1489 if (NILP (prev))
1490 list = XCONS (tail)->cdr; 1490 list = XCDR (tail);
1491 else 1491 else
1492 Fsetcdr (prev, XCONS (tail)->cdr); 1492 Fsetcdr (prev, XCDR (tail));
1493 } 1493 }
1494 else 1494 else
1495 prev = tail; 1495 prev = tail;
1496 tail = XCONS (tail)->cdr; 1496 tail = XCDR (tail);
1497 QUIT; 1497 QUIT;
1498 } 1498 }
1499 return list; 1499 return list;
@@ -1529,8 +1529,8 @@ See also the function `nreverse', which is used more often.")
1529{ 1529{
1530 Lisp_Object new; 1530 Lisp_Object new;
1531 1531
1532 for (new = Qnil; CONSP (list); list = XCONS (list)->cdr) 1532 for (new = Qnil; CONSP (list); list = XCDR (list))
1533 new = Fcons (XCONS (list)->car, new); 1533 new = Fcons (XCAR (list), new);
1534 if (!NILP (list)) 1534 if (!NILP (list))
1535 wrong_type_argument (Qconsp, list); 1535 wrong_type_argument (Qconsp, list);
1536 return new; 1536 return new;
@@ -1641,12 +1641,12 @@ one of the properties on the list.")
1641 register Lisp_Object prop; 1641 register Lisp_Object prop;
1642{ 1642{
1643 register Lisp_Object tail; 1643 register Lisp_Object tail;
1644 for (tail = plist; !NILP (tail); tail = Fcdr (XCONS (tail)->cdr)) 1644 for (tail = plist; !NILP (tail); tail = Fcdr (XCDR (tail)))
1645 { 1645 {
1646 register Lisp_Object tem; 1646 register Lisp_Object tem;
1647 tem = Fcar (tail); 1647 tem = Fcar (tail);
1648 if (EQ (prop, tem)) 1648 if (EQ (prop, tem))
1649 return Fcar (XCONS (tail)->cdr); 1649 return Fcar (XCDR (tail));
1650 } 1650 }
1651 return Qnil; 1651 return Qnil;
1652} 1652}
@@ -1677,12 +1677,12 @@ The PLIST is modified by side effects.")
1677 register Lisp_Object tail, prev; 1677 register Lisp_Object tail, prev;
1678 Lisp_Object newcell; 1678 Lisp_Object newcell;
1679 prev = Qnil; 1679 prev = Qnil;
1680 for (tail = plist; CONSP (tail) && CONSP (XCONS (tail)->cdr); 1680 for (tail = plist; CONSP (tail) && CONSP (XCDR (tail));
1681 tail = XCONS (XCONS (tail)->cdr)->cdr) 1681 tail = XCDR (XCDR (tail)))
1682 { 1682 {
1683 if (EQ (prop, XCONS (tail)->car)) 1683 if (EQ (prop, XCAR (tail)))
1684 { 1684 {
1685 Fsetcar (XCONS (tail)->cdr, val); 1685 Fsetcar (XCDR (tail), val);
1686 return plist; 1686 return plist;
1687 } 1687 }
1688 prev = tail; 1688 prev = tail;
@@ -1691,7 +1691,7 @@ The PLIST is modified by side effects.")
1691 if (NILP (prev)) 1691 if (NILP (prev))
1692 return newcell; 1692 return newcell;
1693 else 1693 else
1694 Fsetcdr (XCONS (prev)->cdr, newcell); 1694 Fsetcdr (XCDR (prev), newcell);
1695 return plist; 1695 return plist;
1696} 1696}
1697 1697
@@ -1744,10 +1744,10 @@ internal_equal (o1, o2, depth)
1744#endif 1744#endif
1745 1745
1746 case Lisp_Cons: 1746 case Lisp_Cons:
1747 if (!internal_equal (XCONS (o1)->car, XCONS (o2)->car, depth + 1)) 1747 if (!internal_equal (XCAR (o1), XCAR (o2), depth + 1))
1748 return 0; 1748 return 0;
1749 o1 = XCONS (o1)->cdr; 1749 o1 = XCDR (o1);
1750 o2 = XCONS (o2)->cdr; 1750 o2 = XCDR (o2);
1751 goto tail_recurse; 1751 goto tail_recurse;
1752 1752
1753 case Lisp_Misc: 1753 case Lisp_Misc:
@@ -2375,7 +2375,7 @@ mapcar1 (leni, vals, fn, seq)
2375 for (i = 0; i < leni; i++) 2375 for (i = 0; i < leni; i++)
2376 { 2376 {
2377 vals[i] = call1 (fn, Fcar (tail)); 2377 vals[i] = call1 (fn, Fcar (tail));
2378 tail = XCONS (tail)->cdr; 2378 tail = XCDR (tail);
2379 } 2379 }
2380 } 2380 }
2381 2381
diff --git a/src/indent.c b/src/indent.c
index f53d971018c..54967684441 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1534,20 +1534,20 @@ DEFUN ("compute-motion", Fcompute_motion, Scompute_motion, 7, 7, 0,
1534 1534
1535 CHECK_NUMBER_COERCE_MARKER (from, 0); 1535 CHECK_NUMBER_COERCE_MARKER (from, 0);
1536 CHECK_CONS (frompos, 0); 1536 CHECK_CONS (frompos, 0);
1537 CHECK_NUMBER (XCONS (frompos)->car, 0); 1537 CHECK_NUMBER (XCAR (frompos), 0);
1538 CHECK_NUMBER (XCONS (frompos)->cdr, 0); 1538 CHECK_NUMBER (XCDR (frompos), 0);
1539 CHECK_NUMBER_COERCE_MARKER (to, 0); 1539 CHECK_NUMBER_COERCE_MARKER (to, 0);
1540 CHECK_CONS (topos, 0); 1540 CHECK_CONS (topos, 0);
1541 CHECK_NUMBER (XCONS (topos)->car, 0); 1541 CHECK_NUMBER (XCAR (topos), 0);
1542 CHECK_NUMBER (XCONS (topos)->cdr, 0); 1542 CHECK_NUMBER (XCDR (topos), 0);
1543 CHECK_NUMBER (width, 0); 1543 CHECK_NUMBER (width, 0);
1544 if (!NILP (offsets)) 1544 if (!NILP (offsets))
1545 { 1545 {
1546 CHECK_CONS (offsets, 0); 1546 CHECK_CONS (offsets, 0);
1547 CHECK_NUMBER (XCONS (offsets)->car, 0); 1547 CHECK_NUMBER (XCAR (offsets), 0);
1548 CHECK_NUMBER (XCONS (offsets)->cdr, 0); 1548 CHECK_NUMBER (XCDR (offsets), 0);
1549 hscroll = XINT (XCONS (offsets)->car); 1549 hscroll = XINT (XCAR (offsets));
1550 tab_offset = XINT (XCONS (offsets)->cdr); 1550 tab_offset = XINT (XCDR (offsets));
1551 } 1551 }
1552 else 1552 else
1553 hscroll = tab_offset = 0; 1553 hscroll = tab_offset = 0;
@@ -1562,10 +1562,10 @@ DEFUN ("compute-motion", Fcompute_motion, Scompute_motion, 7, 7, 0,
1562 if (XINT (to) < BEGV || XINT (to) > ZV) 1562 if (XINT (to) < BEGV || XINT (to) > ZV)
1563 args_out_of_range_3 (to, make_number (BEGV), make_number (ZV)); 1563 args_out_of_range_3 (to, make_number (BEGV), make_number (ZV));
1564 1564
1565 pos = compute_motion (XINT (from), XINT (XCONS (frompos)->cdr), 1565 pos = compute_motion (XINT (from), XINT (XCDR (frompos)),
1566 XINT (XCONS (frompos)->car), 0, 1566 XINT (XCAR (frompos)), 0,
1567 XINT (to), XINT (XCONS (topos)->cdr), 1567 XINT (to), XINT (XCDR (topos)),
1568 XINT (XCONS (topos)->car), 1568 XINT (XCAR (topos)),
1569 XINT (width), hscroll, tab_offset, 1569 XINT (width), hscroll, tab_offset,
1570 XWINDOW (window)); 1570 XWINDOW (window));
1571 1571
diff --git a/src/process.c b/src/process.c
index d3f54fd5e0a..a67aeb329f6 100644
--- a/src/process.c
+++ b/src/process.c
@@ -331,10 +331,10 @@ decode_status (l, symbol, code, coredump)
331 } 331 }
332 else 332 else
333 { 333 {
334 *symbol = XCONS (l)->car; 334 *symbol = XCAR (l);
335 tem = XCONS (l)->cdr; 335 tem = XCDR (l);
336 *code = XFASTINT (XCONS (tem)->car); 336 *code = XFASTINT (XCAR (tem));
337 tem = XCONS (tem)->cdr; 337 tem = XCDR (tem);
338 *coredump = !NILP (tem); 338 *coredump = !NILP (tem);
339 } 339 }
340} 340}
@@ -665,7 +665,7 @@ nil, indicating the current buffer's process.")
665 update_status (p); 665 update_status (p);
666 status = p->status; 666 status = p->status;
667 if (CONSP (status)) 667 if (CONSP (status))
668 status = XCONS (status)->car; 668 status = XCAR (status);
669 if (NETCONN_P (process)) 669 if (NETCONN_P (process))
670 { 670 {
671 if (EQ (status, Qrun)) 671 if (EQ (status, Qrun))
@@ -687,7 +687,7 @@ If PROCESS has not yet exited or died, return 0.")
687 if (!NILP (XPROCESS (process)->raw_status_low)) 687 if (!NILP (XPROCESS (process)->raw_status_low))
688 update_status (XPROCESS (process)); 688 update_status (XPROCESS (process));
689 if (CONSP (XPROCESS (process)->status)) 689 if (CONSP (XPROCESS (process)->status))
690 return XCONS (XCONS (XPROCESS (process)->status)->cdr)->car; 690 return XCAR (XCDR (XPROCESS (process)->status));
691 return make_number (0); 691 return make_number (0);
692} 692}
693 693
@@ -964,7 +964,7 @@ Proc Status Buffer Tty Command\n\
964 update_status (p); 964 update_status (p);
965 symbol = p->status; 965 symbol = p->status;
966 if (CONSP (p->status)) 966 if (CONSP (p->status))
967 symbol = XCONS (p->status)->car; 967 symbol = XCAR (p->status);
968 968
969 969
970 if (EQ (symbol, Qsignal)) 970 if (EQ (symbol, Qsignal))
@@ -1024,7 +1024,7 @@ Proc Status Buffer Tty Command\n\
1024 if (NETCONN_P (proc)) 1024 if (NETCONN_P (proc))
1025 { 1025 {
1026 sprintf (tembuf, "(network stream connection to %s)\n", 1026 sprintf (tembuf, "(network stream connection to %s)\n",
1027 XSTRING (XCONS (p->childp)->car)->data); 1027 XSTRING (XCAR (p->childp))->data);
1028 insert_string (tembuf); 1028 insert_string (tembuf);
1029 } 1029 }
1030 else 1030 else
@@ -1226,9 +1226,9 @@ Remaining arguments are strings to give program as arguments.")
1226 coding_systems = Ffind_operation_coding_system (nargs + 1, args2); 1226 coding_systems = Ffind_operation_coding_system (nargs + 1, args2);
1227 UNGCPRO; 1227 UNGCPRO;
1228 if (CONSP (coding_systems)) 1228 if (CONSP (coding_systems))
1229 val = XCONS (coding_systems)->car; 1229 val = XCAR (coding_systems);
1230 else if (CONSP (Vdefault_process_coding_system)) 1230 else if (CONSP (Vdefault_process_coding_system))
1231 val = XCONS (Vdefault_process_coding_system)->car; 1231 val = XCAR (Vdefault_process_coding_system);
1232 } 1232 }
1233 XPROCESS (proc)->decode_coding_system = val; 1233 XPROCESS (proc)->decode_coding_system = val;
1234 1234
@@ -1245,9 +1245,9 @@ Remaining arguments are strings to give program as arguments.")
1245 UNGCPRO; 1245 UNGCPRO;
1246 } 1246 }
1247 if (CONSP (coding_systems)) 1247 if (CONSP (coding_systems))
1248 val = XCONS (coding_systems)->cdr; 1248 val = XCDR (coding_systems);
1249 else if (CONSP (Vdefault_process_coding_system)) 1249 else if (CONSP (Vdefault_process_coding_system))
1250 val = XCONS (Vdefault_process_coding_system)->cdr; 1250 val = XCDR (Vdefault_process_coding_system);
1251 } 1251 }
1252 XPROCESS (proc)->encode_coding_system = val; 1252 XPROCESS (proc)->encode_coding_system = val;
1253 } 1253 }
@@ -2101,9 +2101,9 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
2101 coding_systems = Ffind_operation_coding_system (5, args); 2101 coding_systems = Ffind_operation_coding_system (5, args);
2102 UNGCPRO; 2102 UNGCPRO;
2103 if (CONSP (coding_systems)) 2103 if (CONSP (coding_systems))
2104 val = XCONS (coding_systems)->car; 2104 val = XCAR (coding_systems);
2105 else if (CONSP (Vdefault_process_coding_system)) 2105 else if (CONSP (Vdefault_process_coding_system))
2106 val = XCONS (Vdefault_process_coding_system)->car; 2106 val = XCAR (Vdefault_process_coding_system);
2107 else 2107 else
2108 val = Qnil; 2108 val = Qnil;
2109 } 2109 }
@@ -2124,9 +2124,9 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
2124 UNGCPRO; 2124 UNGCPRO;
2125 } 2125 }
2126 if (CONSP (coding_systems)) 2126 if (CONSP (coding_systems))
2127 val = XCONS (coding_systems)->cdr; 2127 val = XCDR (coding_systems);
2128 else if (CONSP (Vdefault_process_coding_system)) 2128 else if (CONSP (Vdefault_process_coding_system))
2129 val = XCONS (Vdefault_process_coding_system)->cdr; 2129 val = XCDR (Vdefault_process_coding_system);
2130 else 2130 else
2131 val = Qnil; 2131 val = Qnil;
2132 } 2132 }
@@ -2378,7 +2378,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
2378 /* If waiting for non-nil in a cell, record where. */ 2378 /* If waiting for non-nil in a cell, record where. */
2379 if (CONSP (read_kbd)) 2379 if (CONSP (read_kbd))
2380 { 2380 {
2381 wait_for_cell = &XCONS (read_kbd)->car; 2381 wait_for_cell = &XCAR (read_kbd);
2382 XSETFASTINT (read_kbd, 0); 2382 XSETFASTINT (read_kbd, 0);
2383 } 2383 }
2384 2384
@@ -2837,7 +2837,7 @@ static Lisp_Object
2837read_process_output_call (fun_and_args) 2837read_process_output_call (fun_and_args)
2838 Lisp_Object fun_and_args; 2838 Lisp_Object fun_and_args;
2839{ 2839{
2840 return apply1 (XCONS (fun_and_args)->car, XCONS (fun_and_args)->cdr); 2840 return apply1 (XCAR (fun_and_args), XCDR (fun_and_args));
2841} 2841}
2842 2842
2843static Lisp_Object 2843static Lisp_Object
@@ -4075,9 +4075,9 @@ kill_buffer_processes (buffer)
4075{ 4075{
4076 Lisp_Object tail, proc; 4076 Lisp_Object tail, proc;
4077 4077
4078 for (tail = Vprocess_alist; GC_CONSP (tail); tail = XCONS (tail)->cdr) 4078 for (tail = Vprocess_alist; GC_CONSP (tail); tail = XCDR (tail))
4079 { 4079 {
4080 proc = XCONS (XCONS (tail)->car)->cdr; 4080 proc = XCDR (XCAR (tail));
4081 if (GC_PROCESSP (proc) 4081 if (GC_PROCESSP (proc)
4082 && (NILP (buffer) || EQ (XPROCESS (proc)->buffer, buffer))) 4082 && (NILP (buffer) || EQ (XPROCESS (proc)->buffer, buffer)))
4083 { 4083 {
@@ -4165,9 +4165,9 @@ sigchld_handler (signo)
4165 /* Find the process that signaled us, and record its status. */ 4165 /* Find the process that signaled us, and record its status. */
4166 4166
4167 p = 0; 4167 p = 0;
4168 for (tail = Vprocess_alist; CONSP (tail); tail = XCONS (tail)->cdr) 4168 for (tail = Vprocess_alist; CONSP (tail); tail = XCDR (tail))
4169 { 4169 {
4170 proc = XCONS (XCONS (tail)->car)->cdr; 4170 proc = XCDR (XCAR (tail));
4171 p = XPROCESS (proc); 4171 p = XPROCESS (proc);
4172 if (EQ (p->childp, Qt) && XFASTINT (p->pid) == pid) 4172 if (EQ (p->childp, Qt) && XFASTINT (p->pid) == pid)
4173 break; 4173 break;
@@ -4177,9 +4177,9 @@ sigchld_handler (signo)
4177 /* Look for an asynchronous process whose pid hasn't been filled 4177 /* Look for an asynchronous process whose pid hasn't been filled
4178 in yet. */ 4178 in yet. */
4179 if (p == 0) 4179 if (p == 0)
4180 for (tail = Vprocess_alist; CONSP (tail); tail = XCONS (tail)->cdr) 4180 for (tail = Vprocess_alist; CONSP (tail); tail = XCDR (tail))
4181 { 4181 {
4182 proc = XCONS (XCONS (tail)->car)->cdr; 4182 proc = XCDR (XCAR (tail));
4183 p = XPROCESS (proc); 4183 p = XPROCESS (proc);
4184 if (INTEGERP (p->pid) && XINT (p->pid) == -1) 4184 if (INTEGERP (p->pid) && XINT (p->pid) == -1)
4185 break; 4185 break;
@@ -4270,7 +4270,7 @@ static Lisp_Object
4270exec_sentinel_unwind (data) 4270exec_sentinel_unwind (data)
4271 Lisp_Object data; 4271 Lisp_Object data;
4272{ 4272{
4273 XPROCESS (XCONS (data)->car)->sentinel = XCONS (data)->cdr; 4273 XPROCESS (XCAR (data))->sentinel = XCDR (data);
4274 return Qnil; 4274 return Qnil;
4275} 4275}
4276 4276
@@ -4407,7 +4407,7 @@ status_notify ()
4407 /* If process is terminated, deactivate it or delete it. */ 4407 /* If process is terminated, deactivate it or delete it. */
4408 symbol = p->status; 4408 symbol = p->status;
4409 if (CONSP (p->status)) 4409 if (CONSP (p->status))
4410 symbol = XCONS (p->status)->car; 4410 symbol = XCAR (p->status);
4411 4411
4412 if (EQ (symbol, Qsignal) || EQ (symbol, Qexit) 4412 if (EQ (symbol, Qsignal) || EQ (symbol, Qexit)
4413 || EQ (symbol, Qclosed)) 4413 || EQ (symbol, Qclosed))
@@ -4755,7 +4755,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
4755 /* If waiting for non-nil in a cell, record where. */ 4755 /* If waiting for non-nil in a cell, record where. */
4756 if (CONSP (read_kbd)) 4756 if (CONSP (read_kbd))
4757 { 4757 {
4758 wait_for_cell = &XCONS (read_kbd)->car; 4758 wait_for_cell = &XCAR (read_kbd);
4759 XSETFASTINT (read_kbd, 0); 4759 XSETFASTINT (read_kbd, 0);
4760 } 4760 }
4761 4761
diff --git a/src/textprop.c b/src/textprop.c
index c938fb441b8..db7f4edd2f1 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -67,7 +67,7 @@ Lisp_Object Qfront_sticky, Qrear_nonsticky;
67/* If o1 is a cons whose cdr is a cons, return non-zero and set o2 to 67/* If o1 is a cons whose cdr is a cons, return non-zero and set o2 to
68 the o1's cdr. Otherwise, return zero. This is handy for 68 the o1's cdr. Otherwise, return zero. This is handy for
69 traversing plists. */ 69 traversing plists. */
70#define PLIST_ELT_P(o1, o2) (CONSP (o1) && ((o2)=XCONS (o1)->cdr, CONSP (o2))) 70#define PLIST_ELT_P(o1, o2) (CONSP (o1) && ((o2)=XCDR (o1), CONSP (o2)))
71 71
72Lisp_Object Vinhibit_point_motion_hooks; 72Lisp_Object Vinhibit_point_motion_hooks;
73Lisp_Object Vdefault_text_properties; 73Lisp_Object Vdefault_text_properties;
@@ -268,10 +268,10 @@ property_value (plist, prop)
268 Lisp_Object value; 268 Lisp_Object value;
269 269
270 while (PLIST_ELT_P (plist, value)) 270 while (PLIST_ELT_P (plist, value))
271 if (EQ (XCONS (plist)->car, prop)) 271 if (EQ (XCAR (plist), prop))
272 return XCONS (value)->car; 272 return XCAR (value);
273 else 273 else
274 plist = XCONS (value)->cdr; 274 plist = XCDR (value);
275 275
276 return Qunbound; 276 return Qunbound;
277} 277}
@@ -293,12 +293,12 @@ set_properties (properties, interval, object)
293 or has a different value in PROPERTIES, make an undo record. */ 293 or has a different value in PROPERTIES, make an undo record. */
294 for (sym = interval->plist; 294 for (sym = interval->plist;
295 PLIST_ELT_P (sym, value); 295 PLIST_ELT_P (sym, value);
296 sym = XCONS (value)->cdr) 296 sym = XCDR (value))
297 if (! EQ (property_value (properties, XCONS (sym)->car), 297 if (! EQ (property_value (properties, XCAR (sym)),
298 XCONS (value)->car)) 298 XCAR (value)))
299 { 299 {
300 record_property_change (interval->position, LENGTH (interval), 300 record_property_change (interval->position, LENGTH (interval),
301 XCONS (sym)->car, XCONS (value)->car, 301 XCAR (sym), XCAR (value),
302 object); 302 object);
303 } 303 }
304 304
@@ -306,11 +306,11 @@ set_properties (properties, interval, object)
306 make an undo record binding it to nil, so it will be removed. */ 306 make an undo record binding it to nil, so it will be removed. */
307 for (sym = properties; 307 for (sym = properties;
308 PLIST_ELT_P (sym, value); 308 PLIST_ELT_P (sym, value);
309 sym = XCONS (value)->cdr) 309 sym = XCDR (value))
310 if (EQ (property_value (interval->plist, XCONS (sym)->car), Qunbound)) 310 if (EQ (property_value (interval->plist, XCAR (sym)), Qunbound))
311 { 311 {
312 record_property_change (interval->position, LENGTH (interval), 312 record_property_change (interval->position, LENGTH (interval),
313 XCONS (sym)->car, Qnil, 313 XCAR (sym), Qnil,
314 object); 314 object);
315 } 315 }
316 } 316 }
@@ -1535,7 +1535,7 @@ extend_property_ranges (list, old_end, new_end)
1535 end = XCAR (XCDR (item)); 1535 end = XCAR (XCDR (item));
1536 1536
1537 if (EQ (end, old_end)) 1537 if (EQ (end, old_end))
1538 XCONS (XCDR (item))->car = new_end; 1538 XCAR (XCDR (item)) = new_end;
1539 } 1539 }
1540} 1540}
1541 1541