Le 22/11/2010 02:00, Pavel Sanda a écrit :
Jean-Marc Lasgouttes wrote:
What happens if the function decides to change nothing after all? We have a
useless undo step.
so if somebody pushes ctrl+z, one step nothing happens? undo machinery could
detect and kill empty start-end undo block at the end.
In principle it is possible. However, I prefer to have a clear policy
about where recordUndo calls should go. It is not very clear to me yet
(and my time is scarce), so I prefer to do the obvious thing.
I'll commit the (boring) patch.
JMarc