emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/tuareg f03eb1cb0c 2/2: Merge pull request #309 from erikmd


From: ELPA Syncer
Subject: [nongnu] elpa/tuareg f03eb1cb0c 2/2: Merge pull request #309 from erikmd/fix-bindings
Date: Sun, 1 Oct 2023 22:02:04 -0400 (EDT)

branch: elpa/tuareg
commit f03eb1cb0c6f897d6f670b916ea7d768b906d329
Merge: 301c80b489 df9495dc1a
Author: monnier <monnier@iro.umontreal.ca>
Commit: GitHub <noreply@github.com>

    Merge pull request #309 from erikmd/fix-bindings
    
    fix(tuareg.el): Fix and improve Emacs bindings
---
 CHANGES.md | 3 ++-
 tuareg.el  | 4 +---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index 0ab6acc07b..50ca830aaa 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,7 +1,8 @@
 unreleased
 ----------
 
-* Add support for 
[opam-switch-mode](https://github.com/ProofGeneral/opam-switch-mode): enable 
the mode with <kbd>M-x opam-switch-mode</kbd> or add an automatic hook 
`(add-hook 'tuareg-mode-hook #'opam-switch-mode)`.
+* Add support for 
[opam-switch-mode](https://github.com/ProofGeneral/opam-switch-mode): you can 
enable the mode with <kbd>M-x opam-switch-mode</kbd> or add an automatic hook 
`(add-hook 'tuareg-mode-hook #'opam-switch-mode)`.
+* Fix keybindings to comply with [GNU Emacs' Key Binding 
Conventions](https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html)
 (unbind <kbd>C-c ?</kbd> as <kbd>C-c `</kbd> is already set; unbind <kbd>C-c 
C-h</kbd> and bind <kbd>C-h .</kbd> instead). See also [this 
issue](https://github.com/ocaml/merlin/issues/1386#issuecomment-1701567716).
 
 3.0.1 2022-09-29
 ----------------
diff --git a/tuareg.el b/tuareg.el
index fb8a09bf04..3e45e1fe80 100644
--- a/tuareg.el
+++ b/tuareg.el
@@ -1506,7 +1506,6 @@ Run only once."
     (define-key map "\C-c\C-i" #'tuareg-interrupt-ocaml)
     (define-key map "\C-c\C-k" #'tuareg-kill-ocaml)
     (define-key map "\C-c`" #'tuareg-interactive-next-error-source)
-    (define-key map "\C-c?" #'tuareg-interactive-next-error-source)
     (define-key map "\C-c.c" #'tuareg-insert-class-form)
     (define-key map "\C-c.b" #'tuareg-insert-begin-form)
     (define-key map "\C-c.f" #'tuareg-insert-for-form)
@@ -1527,7 +1526,7 @@ Run only once."
       (define-key map [?\C-c ?\C-i] #'ocaml-add-path)
       (define-key map [?\C-c ?\[] #'ocaml-open-module)
       (define-key map [?\C-c ?\]] #'ocaml-close-module)
-      (define-key map [?\C-c ?\C-h] #'caml-help)
+      (define-key map [?\C-h ?.] #'caml-help)
       (define-key map [?\C-c ?\t] #'tuareg-complete))
     map)
   "Keymap used in Tuareg mode.")
@@ -3528,7 +3527,6 @@ OCaml uses exclusive end-columns but Emacs wants them to 
be inclusive."
     (define-key map "\C-c\C-k" #'tuareg-kill-ocaml)
     (define-key map "\C-c\C-z" #'tuareg-switch-to-recent-buffer)
     (define-key map "\C-c`" #'tuareg-interactive-next-error-repl)
-    (define-key map "\C-c?" #'tuareg-interactive-next-error-repl)
     (define-key map "\C-m" #'tuareg-interactive-send-input)
     (define-key map [(shift return)]
       #'tuareg-interactive-send-input-end-of-phrase)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]