HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e61c4
)
(Fnewline): Disable the "insert one position before"
author
Richard M. Stallman
<rms@gnu.org>
Sat, 31 Jul 1993 05:53:23 +0000
(
05:53
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 31 Jul 1993 05:53:23 +0000
(
05:53
+0000)
optimization if it would screw up text property behavior.
src/cmds.c
patch
|
blob
|
blame
|
history
diff --git
a/src/cmds.c
b/src/cmds.c
index
df8cd6d
..
43c919d
100644
(file)
--- 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.")
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)
{