Comments (6)
Hi Jonathan,
Indeed; there is such a convention; we originally discussed it on the beta thread. The documentation mentions it, but it could be more explicit:
Emacs Atom Action
-------------------------------------------------------------------------------------
C-c C-n C-S-n Process the next block (terminated by two empty lines)
The trick is, there are two opposing constraints here:
- Make it convenient to process everything up to a point
- Auto-detect block boundaries so that it's possible to process just the next block, and so that rewinding after processing a large section does not rewind the entire section
If I map C-c C-RET to "process everything up to this point, extending to the next block boundary", then you loose fine-grained control over what gets sent (unless you use double newlines already)
OOTH, if I map C-c C-RET to "process everything up to this point exactly", then being in the middle of a definition confuses the REPL.
Finally, if I take the first approach but make a single new line the block delimiter, then definitions like
let a =
blah
and let b =
bluh
can't be sent to the interpreter...
I'm not sure if we can solve this issue unless there's a clear block delimiter. Until then, I can add a setting for C-c C-RET to only send full blocks (as delimited by a double empty line).
from fstar-mode.el.
Hmm right. My bad, I should've seen this in the README. I guess I shouldn't be using C-c C-RET unless I'm really sure where my cursor is, then.
What about the fact that F* is sent in a bad state? I assume this is something you have no control over?
from fstar-mode.el.
Not sure about the bad state :) I'll check this week-end!
from fstar-mode.el.
The trick about the cursor position is that you probably just want to use C-c C-n most of the time.
from fstar-mode.el.
Can you give me more details about the weird state; maybe a file that shows this behaviour? I have trouble reproducing it.
from fstar-mode.el.
I can't reproduce, sorry. I'll re-open if I find a proper testcase.
from fstar-mode.el.
Related Issues (20)
- F* over TRAMP crashes HOT 17
- No company completion HOT 4
- fstar-mode over docker-tramp HOT 5
- fstar-jump-to-definition on a module should jump to the fsti if it exists HOT 1
- Code that typechecks normally from the command line can crash fstar-mode HOT 1
- Cleanup of compiler hacking subp-prover args in fstar-mode.el HOT 6
- `nil` confusion HOT 2
- fslit seems to no longer work very well HOT 6
- can't include file in subdirectory with fslit HOT 4
- Weird display of the highlighted blocks HOT 1
- Highlight sladmit
- c-c c-v verify should ask to save the current file HOT 5
- fstar literate setup problems on Ubuntu 22.04 and emacs 28 HOT 4
- Not all errors going to *Flycheck errors*
- Open not always working HOT 1
- c-c c-r reload better description HOT 3
- elaborate trace mode HOT 2
- Definition lookup works only once
- Using F* remotely, over TRAMP HOT 5
- advancing is missing a bunch of new top-level constructs HOT 2
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 fstar-mode.el.