Commit 7c011261 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fnewline): Disable the "insert one position before"

optimization if it would screw up text property behavior.
parent 49e61c42
......@@ -254,6 +254,12 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.")
flag = point > BEGV && FETCH_CHAR (point - 1) == '\n';
if (flag)
/* We cannot use this optimization if properties change
in the vicinity.
??? We need to check for change hook properties, etc. */
if (point - 1 > BEGV && ! property_change_between_p (point - 2, point))
SET_PT (point - 1);
while (XINT (arg) > 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment