You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when the user asks for scripting a different file than the current one PG does the following things:
ask for retracting the current one (which is ok),
then retract the file (which may be costly or even fail as shown by the initial remark),
and finally kills coqtop and restarts it on the new file (re-detecting options etc).
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: