Mercurial > emacs
comparison src/data.c @ 1508:768d4c10c2bf
* data.c (Fset): See if current_alist_element points to itself
using EQ, not ==.
(float_arith_driver): Declare this extern above arith_driver.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 31 Oct 1992 05:17:14 +0000 |
parents | 95ae0805ebba |
children | 27e9f99fe095 |
comparison
equal
deleted
inserted
replaced
1507:b265afeb9203 | 1508:768d4c10c2bf |
---|---|
799 we're looking at the default value, the cache is invalid; we | 799 we're looking at the default value, the cache is invalid; we |
800 need to write it out, and find the new CURRENT-ALIST-ELEMENT. */ | 800 need to write it out, and find the new CURRENT-ALIST-ELEMENT. */ |
801 if ((current_buffer | 801 if ((current_buffer |
802 != XBUFFER (XCONS (XCONS (valcontents)->cdr)->car)) | 802 != XBUFFER (XCONS (XCONS (valcontents)->cdr)->car)) |
803 || (XTYPE (valcontents) == Lisp_Buffer_Local_Value | 803 || (XTYPE (valcontents) == Lisp_Buffer_Local_Value |
804 && XCONS (current_alist_element)->car == current_alist_element)) | 804 && EQ (XCONS (current_alist_element)->car, |
805 current_alist_element))) | |
805 { | 806 { |
806 /* Write out the cached value for the old buffer; copy it | 807 /* Write out the cached value for the old buffer; copy it |
807 back to its alist element. This works if the current | 808 back to its alist element. This works if the current |
808 buffer only sees the default value, too. */ | 809 buffer only sees the default value, too. */ |
809 Fsetcdr (current_alist_element, | 810 Fsetcdr (current_alist_element, |
1465 return make_number (atoi (XSTRING (str)->data)); | 1466 return make_number (atoi (XSTRING (str)->data)); |
1466 } | 1467 } |
1467 | 1468 |
1468 enum arithop | 1469 enum arithop |
1469 { Aadd, Asub, Amult, Adiv, Alogand, Alogior, Alogxor, Amax, Amin }; | 1470 { Aadd, Asub, Amult, Adiv, Alogand, Alogior, Alogxor, Amax, Amin }; |
1471 | |
1472 extern Lisp_Object float_arith_driver (); | |
1470 | 1473 |
1471 Lisp_Object | 1474 Lisp_Object |
1472 arith_driver | 1475 arith_driver |
1473 (code, nargs, args) | 1476 (code, nargs, args) |
1474 enum arithop code; | 1477 enum arithop code; |