[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2014-11-03 Thread Stefan Monnier
> There is one possible bug. I have undo-boundary on self-insert-hook. > If I do newline-and-indent, for some reason both the newline and the > indent get undo boundaries. My expectation is that typing RET should > only have one undo boundary. > I don't know if that is user expectation error, but

[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2012-08-01 Thread Bastien
Stefan Monnier writes: self-insert-command. Even just turning that magic 20 number into a variable would help. >>> Providing it as a variable would be very easy, indeed. >> Maybe the user should be able to set undo boundaries and >> have them work after self-insert-command? Dunno, I'

[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2012-07-18 Thread Stefan Monnier
>>> self-insert-command. Even just turning that magic 20 number into a >>> variable would help. >> Providing it as a variable would be very easy, indeed. > Maybe the user should be able to set undo boundaries and > have them work after self-insert-command? Dunno, I'm > not familiar with internal

[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2012-07-04 Thread Toby Cubitt
On Tue, Jul 03, 2012 at 05:18:50PM -0700, Samuel Wales wrote: > On 7/3/12, Stefan Monnier wrote: > >> self-insert-command. Even just turning that magic 20 number into a > >> variable would help. > > > > Providing it as a variable would be very easy, indeed. > > Therefore, IF we have that variable

[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2012-07-03 Thread Samuel Wales
On 7/3/12, Stefan Monnier wrote: >> self-insert-command. Even just turning that magic 20 number into a >> variable would help. > > Providing it as a variable would be very easy, indeed. Hi Stefan, To clarify, that is actually the only thing that I need as a user for self-insert-command. It wou

[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2012-07-03 Thread Stefan Monnier
> The first is that it hardcodes the clustering by 20. I guess that's the problem which is not new. > This was possible to work around before Emacs 24. You could advise > self-insert-command or wrap it. This is why Org was able to control > this with a variable to support clustering or not clus

[O] bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost

2012-07-03 Thread Samuel Wales
On 7/3/12, Stefan Monnier wrote: > Indeed, self-insert-command used to be treated specially by the > read-eval-loop and the merging was performed there. Now this command is > handled like any other, and self-insert-command does the merging itself. > In most cases the result is the same, but the b