-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"tuareg-eval-phrase" and the double-semicolon ;; #259
Comments
Yes, I noticed that too and agree it's a bit annoying when evaluating several phrases in a row with C-M-x and suddenly getting stuck because of a From looking at the source it might be intentional – see |
I doubt these subtleties in those functions are meant to provide the behavior under discussion. But FWIW, I'm probably not the right person to answer since I consider double-semi-colons in files to be non-kosher. |
I think most people avoid Double-semis are also used a lot by students learning the language and we should be nice to them once in a while. |
Double-semis are also used a lot by students learning the language and we
should be nice to them once in a while.
I'm not arguing in favor of Tuareg misbehaving in the presence of
double-semis; I was just pointing out that I never use them so I don't
have a reliable intuition for what Tuareg should do with them.
|
@mattiase BTW, this "style" is used by some big guns: |
This allows repeated `tuareg-eval-phrase` to execute phrases in sequence without the user needing to do anything in-between.
(* tuareg 20210709.321 - OCaml 4.12.0 - Emacs 28.0.50 *)
e.g.
After a "tuareg-eval-phrase" the cursor jumps to the beginning of the next phrase. OK.
- Exception 1:
The cursor jumps to ;; and stays there.
- Exception 2:
Idem.
Note:
This is OK. The cursor jumps to the second line.
Do you think it would be possible to correct these movements?
The text was updated successfully, but these errors were encountered: