[PATCH] make reformat source behave nicer

Jens Dagerbo jens.dagerbo at swipnet.se
Tue Mar 18 17:43:04 UTC 2003


Hi,

Problem: Running Edit -> Reformat Source with Kate as editor currently has a 
few problems:

1. Syntax highlighting is dropped
2. Undo history is cleared

My patch attempts to fix these two in a way that works with at least both Kate 
and QEditor with minimal code changes.

One problem persists though, while it is now possible to undo the 
reformatting, doing so is a two step process. Both Kate and QEditor remembers 
that the buffer was emptied before it was written to. I can't seem to find 
any way around this using the KTextEditor interface, unfortunately.

regards,

Jens Dagerbo (aka teatime)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: astyle_part.cpp-HEAD.diff
Type: text/x-diff
Size: 515 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20030318/1bcabe45/attachment.bin>


More information about the KDevelop-devel mailing list