Skip to content
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

Keyboard mapping for caml.el in XEmacs #3030

Closed
vicuna opened this issue Nov 15, 2001 · 2 comments
Closed

Keyboard mapping for caml.el in XEmacs #3030

vicuna opened this issue Nov 15, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 15, 2001

Original bug ID: 631
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

The Emacs mode shipped with ocaml-3.02 maps delete globally to
something that deletes backwards, which annoys XEmacs users who have
configured delete to delete forwards. I've attached a patch for the
problem which is in accordance with the other programming modes for
XEmacs.


*** caml.el~ Tue Oct 16 11:29:03 2001
--- caml.el Wed Nov 14 13:50:24 2001


*** 280,286 ****
;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)
(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)
--- 280,288 ----
;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)

! (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)


--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



@vicuna
Copy link
Author

vicuna commented Nov 15, 2001

Comment author: administrator

OK, I take your word on that, and add your patch in CVS.
Are you sure this also works for old versions of Xemacs?

Thanks for the patch,

Jacques Garrigue

@vicuna vicuna closed this as completed Nov 15, 2001
@vicuna
Copy link
Author

vicuna commented Nov 15, 2001

Comment author: administrator

"Jacques" == Jacques Garrigue caml-bugs@pauillac.inria.fr writes:

Jacques> OK, I take your word on that, and add your patch in CVS.

Excellent!

Jacques> Are you sure this also works for old versions of Xemacs?

Yes. If any complaints come up, be sure to forward them to me.

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant