Neil Hodgson wrote: > Doesn't that remove the need for /tmp/SciTE.register?
Well, yes I guess so. If everybody's okay with that, we can remove it. > On Windows, ActivateWindow(const char *timestamp) is less obviously >useful (and the argument isn't) so I'm not sure whether this should go >in SciTEBase. OTOH I'm not sure it shouldn't either and making >PerformOne virtual so there could be special handling on each platform >is approximately as messy. Yeah, I know. I wasn't sure of the right way either. Maybe a catch-all else clause at the end of PerformOne that would call a platform specific method that would handle any messages not handled by PerformOne? But then that might create a tendency to create director messages different for each platform, while we might want to keep those to a minimum. > NO_FILER is now becoming quite complex. Its mainly there to just >turn off the director extension if there are problems building it or >its not wanted. Yes, but if you turn off the director extension, the single instance code doesn't work anymore. That's why I put all those preprocessor directives, to keep the functionality as it is now, that is, be able to use SciTE as a single instance even without the director. If you want, we could break backward compatibility and require SciTE to be compiled without NO_FILER to be able to use check.if.already.open. I uploaded a script that uses the new director interface and the "focus:" message. It is meant to be used with a single-instance SciTE. It opens a file in SciTE and waits until it is closed. Useful for example as editor-cmd in Subversion. http://nico.esoxprojects.net/scite/star.sh Nicolas _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
