[Top][All Lists]

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

[nongnu] externals/caml 2eeca2e 039/197: xemacs keybind (PR#631)

From: Stefan Monnier
Subject: [nongnu] externals/caml 2eeca2e 039/197: xemacs keybind (PR#631)
Date: Sat, 21 Nov 2020 01:19:34 -0500 (EST)

branch: externals/caml
commit 2eeca2ed781989b58f23373d11722f6d8b5855c3
Author: Jacques Garrigue <garrigue at math.nagoya-u.ac.jp>
Commit: Jacques Garrigue <garrigue at math.nagoya-u.ac.jp>

    xemacs keybind (PR#631)
    git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4012 
 caml.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/caml.el b/caml.el
index a24c1b6..29f142d 100644
--- a/caml.el
+++ b/caml.el
@@ -280,7 +280,9 @@ have caml-electric-indent on, which see.")
 ;that way we get out effect even when we do \C-x` in compilation buffer
 ;  (define-key caml-mode-map "\C-x`" 'caml-next-error)
-  (define-key caml-mode-map "\177" 'backward-delete-char-untabify)
+  (if running-xemacs
+      (define-key caml-mode-map 'backspace 'backward-delete-char-untabify)
+    (define-key caml-mode-map "\177" 'backward-delete-char-untabify))
   (define-key caml-mode-map "\C-cb" 'caml-insert-begin-form)
   (define-key caml-mode-map "\C-cf" 'caml-insert-for-form)
   (define-key caml-mode-map "\C-ci" 'caml-insert-if-form)

reply via email to

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