# HG changeset patch # User Stefan Monnier # Date 1003983595 0 # Node ID 5798240154fd7c88fa52bbe2fe19aeaae022a7ae # Parent 0e7059267f7ead431ba506d2dc155e4c15143861 (text_property_stickiness): Fix Lisp_Object used as boolean. diff -r 0e7059267f7e -r 5798240154fd src/editfns.c --- a/src/editfns.c Thu Oct 25 04:18:22 2001 +0000 +++ b/src/editfns.c Thu Oct 25 04:19:55 2001 +0000 @@ -364,9 +364,9 @@ prev_pos = make_number (XINT (pos) - 1); rear_non_sticky = Fget_text_property (prev_pos, Qrear_nonsticky, Qnil); - if (CONSP (rear_non_sticky) - ? Fmemq (prop, rear_non_sticky) - : !NILP (rear_non_sticky)) + if (!NILP (CONSP (rear_non_sticky) + ? Fmemq (prop, rear_non_sticky) + : rear_non_sticky)) /* PROP is rear-non-sticky. */ is_rear_sticky = 0; }