Comments (1)
Thanks for reporting, I agree the current behavior is unintuitive. I believe what's happening is, when you do :Coq Set Printing Width 120
, Coq updates that setting for the current state ID. Advancing in the file keeps the same setting, but if you rewind before the point where you set it, you return to the earlier state, which has the old setting. Advancing again creates a new state ID so your setting is lost.
You can see this in this example. Advance to the first Test
. Then set the width to 100 and step forward twice to the second Test
. Then set it to 110 and step forward to the last Test
. If you rewind to the first idtac
and step forward again you should see 100 and if you rewind back to the first Test
or earlier you should see 78 again.
Goal True.
Proof.
Test Printing Width. (* 78 *)
(* :Coq Set Printing Width 100 *)
idtac.
Test Printing Width. (* 100 *)
(* :Coq Set Printing Width 110 *)
idtac.
Test Printing Width. (* 110 *)
Qed.
It seems like CoqIDE manages to preserve certain settings upon rewinding, so I'll have to look at how they do that.
As a workaround, any settings you set at the beginning of the file should always be preserved since you can't rewind any earlier, but that doesn't help for changing it dynamically.
from coqtail.
Related Issues (20)
- Set Firstorder Solver idtac. HOT 1
- Feature Request: option to omit proofs when scripting (auto-admit) HOT 1
- Breaking with after/syntax directory HOT 5
- [Syntax] Is there a lack of support for math symbol shortcuts? HOT 2
- Detach panels from neovim instance HOT 3
- Unexpected error when debugging Unicoq HOT 2
- Coqtail doesn't recognize the option `-arg "-w all"`
- Coqtail does not officially support your version of Coq (8.19.0) HOT 7
- Feature: better support for dune HOT 4
- Comments inside of strings are not highlighted correctly
- Error on some large operations HOT 4
- Wrong syntax highlight for `Structure` HOT 2
- :CoqJumpToEnd hangs neovim if Coqtail hasn't been fired yet. HOT 2
- Running vim without filename: E492: Not an editor command: CoqStart HOT 4
- `:CoqGotoDef` Broken for Local Definitions with No `.vo`
- race between coqtail#start and CoqToLine HOT 2
- feature: automatic CoqJumpToEnd after stepping? HOT 1
- After 8aadf87 ("Better dune support"), vim falls into a weird state after querying an identifier that ends with single quote
- Feature Request: Conceal Common Coq Symbols HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coqtail.