Robert Roessler:

> If the user types an otherwise magic comment sequence, it will just be
> treated as a normal comment(?).

   I'd treat a user's magic comment the same as other magic comments
as a bit more consistent.

> BUT, if the user does an Undo followed by a Redo, I have problems -
> how to get the protected versions of the styles applied?  Since I am
> blocked from receiving the [e.g.,] SC_MOD_CHANGESTYLE and restyling
> magic comment sequences SYNCHRONOUSLY, I am in a bad spot (I think).

   Run the fix up asynchronously. That can cover both user cast magic
and user undo/redo.

> So I *could* wipe the Undo stack (setting a Save Point is the
> equivalent for my app) right after "officially" inserting one or more
> of the magic sequences... no Undo to worry about!  Is this reasonable,
> or too extreme?

   If I was your user I'd hate you.

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to