Steve Donovan wrote:
>Yeah, but how real a problem is this? The typical situation is that
>you are working with the Director program, and it wants to bring up
>SciTE to show us a file (like scitePM). Having an extension running in
>the background which brings up SciTE is just bad-mannners.

That's not really the use case. Suppose the director, for some reason,
takes a while before asking SciTE to be activated. You might then
have switched to another application, e.g. might be reading something
in your web browser. It would then be an annoyance if SciTE was
suddenly risen above what you're reading. Of course, in our case it's
not very likely, and if the director takes too long, just fix the
director! But if we don't use timestamps, then SciTE will never be
activated, even if it's legitimate (it's the way it's working now).

Besides, I didn't mention it in my previous email, but director
processes won't have to provide an X server timestamp, if they can't
obtain one or don't care. You'll be able to send a "focus:" message
without a timestamp.


>> //TODO: is it really good to exit like this?
>Well, up to now that's the way we've always been exiting ;) But
>seriously, the director has lanched SciTE and we are in an
>unrecoverable position; why not just quit?

Okay.

>> // If we keep the exit call, we shouldn't call it with 0...
>Absolutely.  The director should be able to check this and go Oh No!

-> exit(3);

>>// TODO: should we really use ipc.scite.name even if not started by director?
>
>Good question. To be consistently backward-compatible, one shd bail
>out. But I thought that assymmetrical extensions (those that just want
>to drive SciTE and not listen) are quite legitimate.

Okay, leave it that way.

>>// TODO: store the file name in a property?
>Absolutely!

Okay, will look into making a $(PipeName) property.

>The x11.windowid is actually something else altogether. ScitePM needs
>it for its own bring-SciTE-to-front. But then that will be handled
>properly...

Yup, send a "focus:" message :)

I will send an email when I'll be able to upload the files.

Nicolas

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

Reply via email to