Skip to content

Common toggles - #913

Merged
Matafou merged 4 commits into
ProofGeneral:masterfrom
Matafou:common-toggles
Nov 6, 2026
Merged

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

Conversation

@Matafou

@Matafou Matafou commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Toggle commands of the options without the proof shell

  • 19 proof-deftoggle move from proof-menu.el to proof-useropts.el, next to their options. Examples: three windows, tooltips, autosend, disappearing proofs, sticky errors, omit proofs. Every backend loads proof-useropts.el. The toggles that stay in proof-menu.el are those of proof-script-fly-past-comments (an option of proof-config.el) and the per-prover ones.
  • The electric terminator mode moves from pg-user.el to proof-useropts.el: its lighter, proof-electric-terminator-enable and proof-electric-terminator-toggle.
    • Without Proof General, the lighter shows nothing, and the double hit is only turned off if it is loaded.
    • The obsolete autoload of proof-electric-terminator-enable to pg-user is removed.
  • Coq:
    • coq-show-proof-stepwise and its toggle move to coq-goals.el;
    • coq-Compile moves to coq-compile-common.el;
    • new command coq-auto-adapt-printing-width-toggle.

The PG menu is unchanged.

Matafou and others added 4 commits November 6, 2026 13:37
The proof-deftoggle of proof-menu.el whose option is in
proof-useropts.el go next to it, so that the toggles exist without the
proof shell: proof-useropts.el is loaded by all backends.  The toggle
of proof-script-fly-past-comments, option of proof-config.el, and the
per-prover ones stay in proof-menu.el.  proof-useropts.el requires
pg-pamacs (proof-deftoggle).  No change otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its lighter, proof-electric-terminator-enable and
proof-electric-terminator-toggle move from pg-user.el to next to the
option, so that other backends can use them.  Without Proof General,
the lighter shows nothing (proof-mode-for-script is unbound) and
proof-double-hit-enable may be unbound: both are tested with boundp.
The autoload of proof-electric-terminator-enable to pg-user is
removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g width in common files.

coq-show-proof-stepwise and its toggle move from coq.el to coq-goals.el,
coq-Compile (make FILE.vo) to coq-compile-common.el, unchanged.  New
coq-auto-adapt-printing-width-toggle, next to the option in
coq-goals.el.  The PG menu is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Matafou
Matafou merged commit ce421e4 into ProofGeneral:master Nov 6, 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