Comments (5)
(setq coq-one-command-per-line nil
does the job! Thanks.
from pg.
Hi,
I also see the problem when the option Coq One Command Per Line is enable
too, is it the case for you? If this option is disable then the cursor
stays after the dot.
Do you think that if Coq One Command Per Line is enable we should always
insert a newline? Wouldn't it be annoying too to have to remove that
newline from time to time?
P.
Le mar. 16 févr. 2016 à 16:15, Ondřej Slámečka [email protected] a
écrit :
Hello,
I am using the electric terminator mode and I have "Proof Next Command
Insert Space" enabled but when I enter a terminator ('.' in coq) PG moves
the cursor ('|' in the example below) to the next line, where I usually
have 'Qed.' so I have to do C-p after writing a line in my proof. Is this
an expected behaviour or a bug?exact a.
| Qed.
I am using GNU Emacs 24.5.1, ProofGeneral (downloaded today from GitHub),
company-coq and the following minor modes.Auto-Composition Auto-Compression Auto-Encryption
Blink-Cursor Company Company-Coq Company-Coq--Keybindings
Diff-Auto-Refine Electric-Indent File-Name-Shadow Font-Lock
Global-Font-Lock Holes Hs Line-Number Menu-Bar Mouse-Wheel Outline
Prettify-Symbols Proof-Active-Buffer-Fake
Proof-Electric-Terminator-Enable Show-Paren Tooltip Transient-Mark Yas—
Reply to this email directly or view it on GitHub
#53.
from pg.
Yes, the problem appears when Coq One Command Per Line is enabled.
In my experience the cases when newline insertion (unless the proof is finished) would benefit me are far more common than those when I would have to delete the newly created line.
from pg.
I believe I am facing the same problem. If I am editing at the end of file (ie. the mark is followed by EOF) then inserting a terminator (ie. a dot) does not move to the next line. This is expected. But if I go back in my proof script and start editing somewhere in the middle of a file then inserting terminator moves the cursor to the next line. What I would expect is that the cursor remains in the same line just as it does when I edit my proof at the end of file. Current behaviour is extremely annoying and forces me to manually go back to previous line after inserting a dot. It is almost impossible to work in such a setting so I usually comment out the rest of the file, cut the proof I am editing, move it to the end of the file and once it is finished move it back to its original location and uncomment the rest of the file. This happens with Coq 8.5 and ProofGeneral from the repo (dbfe0a4). Here are my PG settings from .emacs file:
(setq proof-splash-enable nil)
(setq proof-colour-locked nil)
(setq proof-electric-terminator-enable t)
(setq proof-three-window-mode-policy 'hybrid)
from pg.
OK I will (soon) make it add a newline instead of going down one line.
Meanwhile you can set coq-one-command-per-line to nil.
P.
2016-04-12 11:24 GMT+02:00 Jan Stolarek [email protected]:
I believe I am facing the same problem. If I am editing at the end of file
(ie. the mark is followed by EOF) then inserting a terminator (ie. a dot)
does not move to the next line. This is expected. But I go back in my proof
script and start editing somewhere in the middle of a file then inserting
terminator moves the cursor to the next line. What I would expect is that
the cursor remains in the same line just as it does when I edit my proof at
the end of file. Current behaviour is extremely annoying and forces me to
manually go back to previous line after inserting a dot. It is almost
impossible to work in such a setting so what I usually comment out the rest
of the file, cut the proof I am editing, move it to the end of the file and
once it is finished move it back to its original location and uncomment the
rest of the file. This happens with Coq 8.5 and ProofGeneral from the repo (
dbfe0a4
dbfe0a4).
Here are my PG settings from .emacs file:(setq proof-splash-enable nil)
(setq proof-colour-locked nil)
(setq proof-electric-terminator-enable t)
(setq proof-three-window-mode-policy 'hybrid)—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#53 (comment)
from pg.
Related Issues (20)
- Automatic indenting for Easycrypt HOT 1
- generic/pg-goals.el shouldn't be executable HOT 1
- confusing error on incorrect _CoqProject file
- Colors don't work in emacs-nox HOT 1
- Compile-before-require setting does not presist HOT 1
- `coq-insert-suggested-dependency` sometimes inserts unparsable statements
- test_wholefile.v incompatible with 8.19 HOT 4
- makeinfo reports warning: @inforef is obsolete
- compile-tests/003-require-error fails sporadically with 8.19-rc1 HOT 4
- Build failure when "Compile Before Require" meets imported OCaml plugins HOT 13
- proof-goto-point is non-idempotent HOT 2
- wait for proof-goto-point to finish HOT 1
- void function error
- coq-load-project file should extract META files HOT 1
- dynamic highlighting HOT 1
- Bug: Frames in hybrid mode automatically revert to vertical mode HOT 2
- different styles of comment HOT 6
- Indentation issue : "\in"
- 3-pane mode broken with small frame heights
- UI and kernel out of sync from aborting tactics? 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 pg.