aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2002-04-29 19:29:58 +0000
committerStefan Monnier2002-04-29 19:29:58 +0000
commitb079118d839503d4238ccb15ba54df43c5a1d4e4 (patch)
treedb5095cc0b10b7f6679ba3ebd8a2e2a7a80f3494 /src
parent96035dcaa801499674bc38df6d85c1f388d1c2b2 (diff)
downloademacs-b079118d839503d4238ccb15ba54df43c5a1d4e4.tar.gz
emacs-b079118d839503d4238ccb15ba54df43c5a1d4e4.zip
(remove_properties): Don't use XCAR without CONSP.
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),