aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textprop.c b/src/textprop.c
index c85b4dcfd04..401e26f1a30 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -463,12 +463,12 @@ remove_properties (plist, list, i, object)
463 tail1 = list, use_plist = 0; 463 tail1 = list, use_plist = 0;
464 464
465 /* Go through each element of LIST or PLIST. */ 465 /* Go through each element of LIST or PLIST. */
466 while (! NILP (tail1)) 466 while (CONSP (tail1))
467 { 467 {
468 sym = XCAR (tail1); 468 sym = XCAR (tail1);
469 469
470 /* First, remove the symbol if it's at the head of the list */ 470 /* First, remove the symbol if it's at the head of the list */
471 while (! NILP (current_plist) && EQ (sym, XCAR (current_plist))) 471 while (CONSP (current_plist) && EQ (sym, XCAR (current_plist)))
472 { 472 {
473 if (BUFFERP (object)) 473 if (BUFFERP (object))
474 record_property_change (i->position, LENGTH (i), 474 record_property_change (i->position, LENGTH (i),
@@ -485,7 +485,7 @@ remove_properties (plist, list, i, object)
485 { 485 {
486 register Lisp_Object this; 486 register Lisp_Object this;
487 this = XCDR (XCDR (tail2)); 487 this = XCDR (XCDR (tail2));
488 if (EQ (sym, XCAR (this))) 488 if (CONSP (this) && EQ (sym, XCAR (this)))
489 { 489 {
490 if (BUFFERP (object)) 490 if (BUFFERP (object))
491 record_property_change (i->position, LENGTH (i), 491 record_property_change (i->position, LENGTH (i),