[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/caml 05d89fc 061/197: added menu entries for caml-hel
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/caml 05d89fc 061/197: added menu entries for caml-help and caml-complete |
Date: |
Sat, 21 Nov 2020 01:19:38 -0500 (EST) |
branch: externals/caml
commit 05d89fc0bbd3da4ee73366a41263888d9712bf8c
Author: Didier Rémy <Didier.Remy@inria.fr>
Commit: Didier Rémy <Didier.Remy@inria.fr>
added menu entries for caml-help and caml-complete
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5251
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
caml-help.el | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/caml-help.el b/caml-help.el
index 5dda0b1..12687ab 100644
--- a/caml-help.el
+++ b/caml-help.el
@@ -208,7 +208,7 @@ When call interactively, make completion over known
modules."
(setq ocaml-visible-modules
(cons (ocaml-get-or-make-module arg) (ocaml-visible-modules)))
))
- (message "%S" (mapcar 'car ocaml-visible-modules)))
+ (message "%S" (mapcar 'car (ocaml-visible-modules))))
(defun ocaml-close-module (arg)
"*Close module of name ARG when ARG is a string.
@@ -229,7 +229,7 @@ Otherwise if ARG is true, close all modules and reset to
default. "
(remove-if '(lambda (m) (equal (car m) arg))
ocaml-visible-modules))
))
- (message "%S" (mapcar 'car ocaml-visible-modules)))
+ (message "%S" (mapcar 'car (ocaml-visible-modules))))
;; Look for identifiers around point
@@ -637,10 +637,21 @@ of using contextual values.
;; bindings
-(if (and (boundp 'caml-mode-map) (keymapp caml-mode-map))
- (progn
- (define-key caml-mode-map [?\C-c?\C-h] 'caml-help)
- (define-key caml-mode-map [?\C-c?\t] 'caml-complete)
- ))
+(and
+ (boundp 'caml-mode-map)
+ (keymapp caml-mode-map)
+ (progn
+ (define-key caml-mode-map [?\C-c?\C-h] 'caml-help)
+ (define-key caml-mode-map [?\C-c?\t] 'caml-complete)
+ (let ((map (lookup-key caml-mode-map [menu-bar caml])))
+ (and
+ (keymapp map)
+ (progn
+ (define-key map [separator-help] '("---"))
+ (define-key map [help] '("Help for identifier" . caml-help))
+ (define-key map [complete] '("Complete identifier" . caml-complete))
+ )
+ ))))
+
(provide 'caml-help)
- [nongnu] externals/caml 8fc9a47 117/197: amelioration des annotations, (continued)
- [nongnu] externals/caml 8fc9a47 117/197: amelioration des annotations, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml bcceb79 122/197: fixes bug 0005016, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 55b8c79 124/197: fixes bug 0004997, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d213e6d 076/197: integration de caml-types a caml.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d287472 095/197: petits bugs, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml eddf5e0 099/197: camldebug-command-name should be user-settable, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 901e8dd 103/197: Fusion des modifs de la branche release308 entre 3.08.0 et 3.08.1, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml afff6d2 040/197: Adding file caml-help.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml b060e59 041/197: indentation autour de "; ; ", Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 4759555 044/197: Amelioration de caml-help, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 05d89fc 061/197: added menu entries for caml-help and caml-complete,
Stefan Monnier <=
- [nongnu] externals/caml bf460c2 062/197: interactions bizarres de with, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml f45af82 063/197: - Fixed bugs + improved caml-help.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 5e6f8b6 071/197: value obsolete, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 9ece2ad 045/197: Remise au mode info HeVeA par default., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 91865b8 055/197: simplify electric, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 5b4e4bc 068/197: verifier que le buffer est a jour, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 7c426ee 070/197: ajout -dtypes, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml bb1103a 075/197: Scrolling .annot, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml c834fac 085/197: caml-xemacs.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml dbaedc7 086/197: added caml-emacs.el, Stefan Monnier, 2020/11/21