comparison src/textprop.c @ 6516:8278049ee7a7

(add_properties, remove_properties): Use assignment, not initialization.
author Karl Heuer <kwzh@gnu.org>
date Fri, 25 Mar 1994 00:40:44 +0000
parents bdfff039f6e3
children 9805eca29f39
comparison
equal deleted inserted replaced
6515:df7438605e1e 6516:8278049ee7a7
339 339
340 /* Go through I's plist, looking for sym1 */ 340 /* Go through I's plist, looking for sym1 */
341 for (tail2 = i->plist; ! NILP (tail2); tail2 = Fcdr (Fcdr (tail2))) 341 for (tail2 = i->plist; ! NILP (tail2); tail2 = Fcdr (Fcdr (tail2)))
342 if (EQ (sym1, Fcar (tail2))) 342 if (EQ (sym1, Fcar (tail2)))
343 { 343 {
344 register Lisp_Object this_cdr = Fcdr (tail2); 344 register Lisp_Object this_cdr;
345 345
346 this_cdr = Fcdr (tail2);
346 /* Found the property. Now check its value. */ 347 /* Found the property. Now check its value. */
347 found = 1; 348 found = 1;
348 349
349 /* The properties have the same value on both lists. 350 /* The properties have the same value on both lists.
350 Continue to the next property. */ 351 Continue to the next property. */
394 remove_properties (plist, i, object) 395 remove_properties (plist, i, object)
395 Lisp_Object plist; 396 Lisp_Object plist;
396 INTERVAL i; 397 INTERVAL i;
397 Lisp_Object object; 398 Lisp_Object object;
398 { 399 {
399 register Lisp_Object tail1, tail2, sym; 400 register Lisp_Object tail1, tail2, sym, current_plist;
400 register Lisp_Object current_plist = i->plist;
401 register int changed = 0; 401 register int changed = 0;
402 402
403 current_plist = i->plist;
403 /* Go through each element of plist. */ 404 /* Go through each element of plist. */
404 for (tail1 = plist; ! NILP (tail1); tail1 = Fcdr (Fcdr (tail1))) 405 for (tail1 = plist; ! NILP (tail1); tail1 = Fcdr (Fcdr (tail1)))
405 { 406 {
406 sym = Fcar (tail1); 407 sym = Fcar (tail1);
407 408
424 425
425 /* Go through i's plist, looking for sym */ 426 /* Go through i's plist, looking for sym */
426 tail2 = current_plist; 427 tail2 = current_plist;
427 while (! NILP (tail2)) 428 while (! NILP (tail2))
428 { 429 {
429 register Lisp_Object this = Fcdr (Fcdr (tail2)); 430 register Lisp_Object this;
431 this = Fcdr (Fcdr (tail2));
430 if (EQ (sym, Fcar (this))) 432 if (EQ (sym, Fcar (this)))
431 { 433 {
432 if (XTYPE (object) == Lisp_Buffer) 434 if (XTYPE (object) == Lisp_Buffer)
433 { 435 {
434 modify_region (XBUFFER (object), 436 modify_region (XBUFFER (object),