Open Matafou opened 5 months ago
I introduced killing coqtop with multiple file support around 2012, because at that time required files could not be unloaded. I would guess retracting is generic behavior, maybe caused by killing all spans in the current buffer. I don't see any reason for not shortcutting the procedure. Does coqtop reliably unload all required stuff (including ML plugins) nowadays? If yes, since when? May we can even abandon the killing.
Actually as explained by @SkySkimmer there are reasons to kill coqtop. Requires are still not correctly unloaded.
Hence my suggestion is the opposite: since we need to kill coqtop why first try to retract the file?
I don't see a reason to retract before kill. I have not investigated why this is happening at all.
Following a remark by @SkySkimmer.
Currently when the user asks for scripting a different file than the current one PG does the following things:
Step 2. seems fragile and useless. Asking before changing the scripting buffer (step 1) is of course important, but then jumping to step 3 seems ok. In particular step 3 removes all locks on buffers and relaunching scripting mode re-locks what is needed.
Any reason not to propose a PR in this direction?