diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/data.c b/src/data.c index 336afa98d8c..e56512370e0 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -582,7 +582,7 @@ DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0, | |||
| 582 | cell = wrong_type_argument (Qconsp, cell); | 582 | cell = wrong_type_argument (Qconsp, cell); |
| 583 | 583 | ||
| 584 | CHECK_IMPURE (cell); | 584 | CHECK_IMPURE (cell); |
| 585 | XCAR (cell) = newcar; | 585 | XSETCAR (cell, newcar); |
| 586 | return newcar; | 586 | return newcar; |
| 587 | } | 587 | } |
| 588 | 588 | ||
| @@ -595,7 +595,7 @@ DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0, | |||
| 595 | cell = wrong_type_argument (Qconsp, cell); | 595 | cell = wrong_type_argument (Qconsp, cell); |
| 596 | 596 | ||
| 597 | CHECK_IMPURE (cell); | 597 | CHECK_IMPURE (cell); |
| 598 | XCDR (cell) = newcdr; | 598 | XSETCDR (cell, newcdr); |
| 599 | return newcdr; | 599 | return newcdr; |
| 600 | } | 600 | } |
| 601 | 601 | ||
| @@ -937,7 +937,7 @@ swap_in_global_binding (symbol) | |||
| 937 | do_symval_forwarding (XBUFFER_LOCAL_VALUE (valcontents)->realvalue)); | 937 | do_symval_forwarding (XBUFFER_LOCAL_VALUE (valcontents)->realvalue)); |
| 938 | 938 | ||
| 939 | /* Select the global binding in the symbol. */ | 939 | /* Select the global binding in the symbol. */ |
| 940 | XCAR (cdr) = cdr; | 940 | XSETCAR (cdr, cdr); |
| 941 | store_symval_forwarding (symbol, valcontents, XCDR (cdr), NULL); | 941 | store_symval_forwarding (symbol, valcontents, XCDR (cdr), NULL); |
| 942 | 942 | ||
| 943 | /* Indicate that the global binding is set up now. */ | 943 | /* Indicate that the global binding is set up now. */ |
| @@ -991,7 +991,7 @@ swap_in_symval_forwarding (symbol, valcontents) | |||
| 991 | XBUFFER_LOCAL_VALUE (valcontents)->found_for_buffer = 1; | 991 | XBUFFER_LOCAL_VALUE (valcontents)->found_for_buffer = 1; |
| 992 | 992 | ||
| 993 | /* Load the new binding. */ | 993 | /* Load the new binding. */ |
| 994 | XCAR (XBUFFER_LOCAL_VALUE (valcontents)->cdr) = tem1; | 994 | XSETCAR (XBUFFER_LOCAL_VALUE (valcontents)->cdr, tem1); |
| 995 | XSETBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer, current_buffer); | 995 | XSETBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer, current_buffer); |
| 996 | XBUFFER_LOCAL_VALUE (valcontents)->frame = selected_frame; | 996 | XBUFFER_LOCAL_VALUE (valcontents)->frame = selected_frame; |
| 997 | store_symval_forwarding (symbol, | 997 | store_symval_forwarding (symbol, |
| @@ -1210,8 +1210,8 @@ set_internal (symbol, newval, buf, bindflag) | |||
| 1210 | } | 1210 | } |
| 1211 | 1211 | ||
| 1212 | /* Record which binding is now loaded. */ | 1212 | /* Record which binding is now loaded. */ |
| 1213 | XCAR (XBUFFER_LOCAL_VALUE (valcontents)->cdr) | 1213 | XSETCAR (XBUFFER_LOCAL_VALUE (valcontents)->cdr, |
| 1214 | = tem1; | 1214 | tem1); |
| 1215 | 1215 | ||
| 1216 | /* Set `buffer' and `frame' slots for thebinding now loaded. */ | 1216 | /* Set `buffer' and `frame' slots for thebinding now loaded. */ |
| 1217 | XSETBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer, buf); | 1217 | XSETBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer, buf); |
| @@ -1243,7 +1243,7 @@ set_internal (symbol, newval, buf, bindflag) | |||
| 1243 | the default binding is loaded, the loaded binding may be the | 1243 | the default binding is loaded, the loaded binding may be the |
| 1244 | wrong one. */ | 1244 | wrong one. */ |
| 1245 | if (XBUFFER_LOCAL_VALUE (valcontents)->found_for_frame) | 1245 | if (XBUFFER_LOCAL_VALUE (valcontents)->found_for_frame) |
| 1246 | XCDR (current_alist_element) = newval; | 1246 | XSETCDR (current_alist_element, newval); |
| 1247 | } | 1247 | } |
| 1248 | 1248 | ||
| 1249 | return newval; | 1249 | return newval; |
| @@ -1362,7 +1362,7 @@ for this variable.") | |||
| 1362 | return Fset (symbol, value); | 1362 | return Fset (symbol, value); |
| 1363 | 1363 | ||
| 1364 | /* Store new value into the DEFAULT-VALUE slot. */ | 1364 | /* Store new value into the DEFAULT-VALUE slot. */ |
| 1365 | XCDR (XBUFFER_LOCAL_VALUE (valcontents)->cdr) = value; | 1365 | XSETCDR (XBUFFER_LOCAL_VALUE (valcontents)->cdr, value); |
| 1366 | 1366 | ||
| 1367 | /* If the default binding is now loaded, set the REALVALUE slot too. */ | 1367 | /* If the default binding is now loaded, set the REALVALUE slot too. */ |
| 1368 | current_alist_element | 1368 | current_alist_element |
| @@ -1448,7 +1448,7 @@ The function `default-value' gets the default value and `set-default' sets it.") | |||
| 1448 | if (EQ (valcontents, Qunbound)) | 1448 | if (EQ (valcontents, Qunbound)) |
| 1449 | SET_SYMBOL_VALUE (variable, Qnil); | 1449 | SET_SYMBOL_VALUE (variable, Qnil); |
| 1450 | tem = Fcons (Qnil, Fsymbol_value (variable)); | 1450 | tem = Fcons (Qnil, Fsymbol_value (variable)); |
| 1451 | XCAR (tem) = tem; | 1451 | XSETCAR (tem, tem); |
| 1452 | newval = allocate_misc (); | 1452 | newval = allocate_misc (); |
| 1453 | XMISCTYPE (newval) = Lisp_Misc_Buffer_Local_Value; | 1453 | XMISCTYPE (newval) = Lisp_Misc_Buffer_Local_Value; |
| 1454 | XBUFFER_LOCAL_VALUE (newval)->realvalue = SYMBOL_VALUE (variable); | 1454 | XBUFFER_LOCAL_VALUE (newval)->realvalue = SYMBOL_VALUE (variable); |
| @@ -1505,7 +1505,7 @@ Use `make-local-hook' instead.") | |||
| 1505 | { | 1505 | { |
| 1506 | Lisp_Object newval; | 1506 | Lisp_Object newval; |
| 1507 | tem = Fcons (Qnil, do_symval_forwarding (valcontents)); | 1507 | tem = Fcons (Qnil, do_symval_forwarding (valcontents)); |
| 1508 | XCAR (tem) = tem; | 1508 | XSETCAR (tem, tem); |
| 1509 | newval = allocate_misc (); | 1509 | newval = allocate_misc (); |
| 1510 | XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; | 1510 | XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; |
| 1511 | XBUFFER_LOCAL_VALUE (newval)->realvalue = SYMBOL_VALUE (variable); | 1511 | XBUFFER_LOCAL_VALUE (newval)->realvalue = SYMBOL_VALUE (variable); |
| @@ -1644,7 +1644,7 @@ See `modify-frame-parameters'.") | |||
| 1644 | if (EQ (valcontents, Qunbound)) | 1644 | if (EQ (valcontents, Qunbound)) |
| 1645 | SET_SYMBOL_VALUE (variable, Qnil); | 1645 | SET_SYMBOL_VALUE (variable, Qnil); |
| 1646 | tem = Fcons (Qnil, Fsymbol_value (variable)); | 1646 | tem = Fcons (Qnil, Fsymbol_value (variable)); |
| 1647 | XCAR (tem) = tem; | 1647 | XSETCAR (tem, tem); |
| 1648 | newval = allocate_misc (); | 1648 | newval = allocate_misc (); |
| 1649 | XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; | 1649 | XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; |
| 1650 | XBUFFER_LOCAL_VALUE (newval)->realvalue = SYMBOL_VALUE (variable); | 1650 | XBUFFER_LOCAL_VALUE (newval)->realvalue = SYMBOL_VALUE (variable); |