On 03/06/2007 01:30, Neil Hodgson wrote:
You can't change the document text inside a SCN_MODIFIED notification: you would have to arrange for something to be called later to perform the change. That then would need an OnIdle or OnDeferred or similar function for Lua. Simplest way to achieve your feature is to bind the backspace key to your own function.
Well, there are also paste, abbreviation expansion perhaps, and some other tricks to handle. I don't know well the system of notifications, but can't we handle at least at the level of an atomic undo operation? Since little document modifications are collapsed in a single undo operation, this might offer a good opportunity for not-so-frequent notifications. In Nicolas use case, we would change the closing tag only when the new tag has been completely changed and user go elsewhere, for example.
-- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- -- -- -- -- -- -- -- -- -- -- -- -- -- _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
