]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Tim Peters writes:
authorGuido van Rossum <guido@python.org>
Mon, 3 May 1999 15:49:52 +0000 (15:49 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 May 1999 15:49:52 +0000 (15:49 +0000)
commit318a70d976fbf225de3485bbbc61b7fe1f24f4a2
tree358d6940133c029256a0b4d94bde7ed61fba03e4
parent2d6a568a0f6c65c76797556bf949b97ede9049e1
Tim Peters writes:

I'm still unsure, but couldn't stand the virtual event trickery so tried a
different sin (adding undo_block_start/stop methods to the Text instance in
EditorWindow.py).  Like it or not, it's efficient and works <wink>.  Better
idea?

Give the attached a whirl.  Even if you hate the implementation, I think
you'll like the results.  Think I caught all the "block edit" cmds,
including Format Paragraph, plus subtler ones involving smart indents and
backspacing.
Tools/idle/AutoIndent.py
Tools/idle/EditorWindow.py
Tools/idle/FormatParagraph.py
Tools/idle/UndoDelegator.py