aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 0b328da308b..ca60c4d6524 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -341,8 +341,9 @@ add_properties (plist, i, object)
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
@@ -396,10 +397,10 @@ remove_properties (plist, i, object)
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 {
@@ -426,7 +427,8 @@ remove_properties (plist, i, object)
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)