<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 October 2013 06:08, Thomas Martitz <span dir="ltr"><<a href="mailto:thomas.martitz@student.htw-berlin.de" target="_blank">thomas.martitz@student.htw-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 16.10.2013 21:04, schrieb Dimitar Zhekov:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Actually, I finished most of it, what remains is mainly blocking Geany<br>
while the new async tools execution is running.<br>
<br>
Sync spawning is not good, because I'm using the Geany message loop for<br>
async I/O (somewhat similar to g_main_context_add_poll), not real Win32<br>
events and threads as GLib does.<br>
<br>
Locking the file, as Matthew suggested, will not be sufficient: one can<br>
still close it, reload it, and of course change the selection<br>
(SCI docs assume close/reload are be blocked for background saving).<br>
<br>
What remains, without going too deep, is a modal dialog. Annoying, of<br>
course, but with the benefit that you can easily stop a bad process.<br>
</blockquote>
<br>
<br></div>
I may have missed it but why have it blocking if async spawn now works? The current build process (on Linux) doesn't block either.<br></blockquote><div><br></div><div>I think Dimitar is talking about for tools use where the results of the command are pasted to the buffer, so the existence of the buffer and the selection should not change while the command is running.</div>
<div> </div><div>Cheers</div><div>Lex</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best regards<div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org" target="_blank">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div></div>