aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-31 05:53:23 +0000
committerRichard M. Stallman1993-07-31 05:53:23 +0000
commit7c011261b702092e005c901972af405c7b7c9f3b (patch)
treeda5c053e0c959486647cc0df4f1baa8270646148 /src
parent49e61c42679385a7dca711a56b67c426e95417cf (diff)
downloademacs-7c011261b702092e005c901972af405c7b7c9f3b.tar.gz
emacs-7c011261b702092e005c901972af405c7b7c9f3b.zip
(Fnewline): Disable the "insert one position before"
optimization if it would screw up text property behavior.
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmds.c b/src/cmds.c
index df8cd6d0645..43c919d7c3f 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -254,7 +254,13 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.")
254 254
255 flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; 255 flag = point > BEGV && FETCH_CHAR (point - 1) == '\n';
256 if (flag) 256 if (flag)
257 SET_PT (point - 1); 257 /* We cannot use this optimization if properties change
258 in the vicinity.
259 ??? We need to check for change hook properties, etc. */
260#ifdef USE_TEXT_PROPERTIES
261 if (point - 1 > BEGV && ! property_change_between_p (point - 2, point))
262#endif
263 SET_PT (point - 1);
258 264
259 while (XINT (arg) > 0) 265 while (XINT (arg) > 0)
260 { 266 {