# HG changeset patch # User Richard M. Stallman # Date 744098003 0 # Node ID 189b84c7dbc50cc7871b8d649bacfd5f41fea5b5 # Parent fb0e37e7afae03f3bc8addc57cef4059771851d8 (Fnewline): Disable the "insert one position before" optimization if it would screw up text property behavior. diff -r fb0e37e7afae -r 189b84c7dbc5 src/cmds.c --- a/src/cmds.c Sat Jul 31 05:31:58 1993 +0000 +++ b/src/cmds.c Sat Jul 31 05:53:23 1993 +0000 @@ -254,7 +254,13 @@ flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; if (flag) - SET_PT (point - 1); + /* We cannot use this optimization if properties change + in the vicinity. + ??? We need to check for change hook properties, etc. */ +#ifdef USE_TEXT_PROPERTIES + if (point - 1 > BEGV && ! property_change_between_p (point - 2, point)) +#endif + SET_PT (point - 1); while (XINT (arg) > 0) {