Skip to content

Refactor coq-detect-rocq-cli to use with-output-to-string#854

Merged
Matafou merged 1 commit intoProofGeneral:masterfrom
fdeitylink:patch-1
Jan 6, 2026
Merged

Refactor coq-detect-rocq-cli to use with-output-to-string#854
Matafou merged 1 commit intoProofGeneral:masterfrom
fdeitylink:patch-1

Conversation

@fdeitylink
Copy link
Contributor

Preserves buffer-local environment e.g. exec-path so that coq-detect-rocq-cli executes the Rocq executable in the same environment as it is executed in other parts of PG. Also a slightly simpler implementation.

I use direnv/envrc with Nix and while coq-autodetect-progname successfully picks up the rocq executable, with-temp-buffer does not preserve buffer-locals (which my exec-path is due to the envrc package) and so process-file inside the temporary buffer would report that rocq couldn't be found.

Preserves buffer-local environment e.g. `exec-path`
@Matafou
Copy link
Contributor

Matafou commented Jan 6, 2026

Thanks @fdeitylink LGTM.

@Matafou Matafou merged commit f1eb1c1 into ProofGeneral:master Jan 6, 2026
140 checks passed
@fdeitylink fdeitylink deleted the patch-1 branch January 7, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants