Skip to content

Common backend - #909

Merged
Matafou merged 4 commits into
ProofGeneral:masterfrom
Matafou:common-backend
Nov 5, 2026
Merged

Matafou merged 4 commits into
ProofGeneral:masterfrom
Matafou:common-backend

Conversation

@Matafou

@Matafou Matafou commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Coq: choose the backend with coq-backend

  • coq-backend: new option, pg (default) or nil (editing only). It replaces coq-use-pg, now obsolete, which still gives its default value. With another backend than pg, coq-mode derives from prog-mode, and the proof-site stub loads only coq-mode.
  • coq-mode loadable alone: coq-syntax requires proof-syntax explicitly, and coq-mode adds generic/ to the load-path when needed.
  • coq-goals-count-function: lets a backend that gets the numbers of goals from Coq give them to the goals indicator, instead of reading them in the buffer.

Tests without a backend, and a CHANGES entry.

Matafou and others added 4 commits November 5, 2026 12:42
The goals indicator reads the numbers of goals in the text of the
goals buffer.  A backend that gets them from Coq can give them
directly by setting this function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coq-syntax uses functions and faces of generic/proof-syntax.el, which
were only loaded as a side effect of proof-site.  Require it
explicitly, and let coq-mode add generic/ to the load-path when
needed, so that coq-mode works with another backend than pg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New option coq-backend: pg (Proof General, the default) or nil
(edition only), so that other backends can be added.  It replaces
coq-use-pg, now obsolete, which still gives its default value.

With another backend than pg, coq-mode derives from prog-mode and the
coq-mode stub of proof-site loads only coq-mode, not the Proof General
machinery.

Taken from the Eglot branch, without its eglot value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Matafou
Matafou merged commit 33c3221 into ProofGeneral:master Nov 5, 2026
140 checks passed
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.

1 participant