Code Monkey home page Code Monkey logo

Comments (1)

whonore avatar whonore commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.