-
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
fix(tuareg.el): Fix and improve Emacs bindings #309
Conversation
(following the discussion in ocaml#273)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
BTW, the C-c `
binding should be made unnecessary by making C-x `
work (via next-error-function
).
Hi @monnier! Actually I tried to be as conservative as possible, and I'm not sure it is needed to shrink even further the keymap! Indeed for example, I checked that C-x ‘ and C-c ‘ are both bound in latex-mode from AUCTeX: (let ((test (get-buffer-create "test")))
(set-buffer test)
(latex-mode)
(concat
(describe-key-briefly (kbd "C-c `"))
"\n"
(describe-key-briefly (kbd "C-x `")))) ↓ "C-c ` runs the command TeX-next-error C-x ` runs the command TeX-next-error" |
Indeed for example, I checked that <code>C-x `</code> and <code>C-c `</code> are both bound in latex-mode from AUCTeX:
Indeed, AUCTeX is another mode that should use `next-error-function`
rather than rebind C-x ` :-)
|
@Chris00 @monnier are you happy with the current version of this PR? — I agree with your earlier comment about the fact we could even unbind |
Yes, I already approved the change :-) |
Hi, it seems the merlin counterpart of this PR will be merged soon; what about this one? Anyway, I'd be happy to know @Chris00's opinion, given the three PRs I opened (summarized in this comment) are basically a follow-up of the wrap-up issue he had opened (ocaml/merlin#1386) |
(following the discussion in #273)
Cc @Chris00 @monnier
For a quick recap of the changes and their motivation, see also the table from comment:
ocaml/merlin#1386 (comment)