diff options
author | Didier Rémy <Didier.Remy@inria.fr> | 2003-07-28 18:07:11 +0000 |
---|---|---|
committer | Didier Rémy <Didier.Remy@inria.fr> | 2003-07-28 18:07:11 +0000 |
commit | 7403b73fb9cea0c25ddad90e285b0fc23d28c3d2 (patch) | |
tree | 311f3905db6fe2815ec033ece3e55e90f140568b | |
parent | f9d0ac0c87c23a435714efe2190ffda430672987 (diff) |
caml-xemacs.el
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5752 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | emacs/Makefile | 4 | ||||
-rw-r--r-- | emacs/caml-xemacs.el | 20 |
2 files changed, 23 insertions, 1 deletions
diff --git a/emacs/Makefile b/emacs/Makefile index 7a1b70b6e..923d25a52 100644 --- a/emacs/Makefile +++ b/emacs/Makefile @@ -4,7 +4,8 @@ include ../config/Makefile # Files to install FILES= caml-font.el caml-hilit.el caml.el camldebug.el \ - inf-caml.el caml-compat.el caml-help.el caml-types.el + inf-caml.el caml-compat.el caml-help.el caml-types.el \ + caml-xemacs.el # Where to install. If empty, automatically determined. #EMACSDIR= @@ -22,6 +23,7 @@ COMPILECMD=(progn \ (byte-compile-file "inf-caml.el") \ (byte-compile-file "caml-help.el") \ (byte-compile-file "caml-types.el") \ + (byte-compile-file "caml-xemacs.el") \ (byte-compile-file "camldebug.el")) install: diff --git a/emacs/caml-xemacs.el b/emacs/caml-xemacs.el new file mode 100644 index 000000000..9c1aaa64c --- /dev/null +++ b/emacs/caml-xemacs.el @@ -0,0 +1,20 @@ +(require 'overlay) + +;; for caml-help.el +(defun info-other-window (arg) + (save-excursion (info arg)) + (view-buffer-other-window "*info*")) + +;; for caml-types.el +(defun event-start (e) e) +(defun event-end (e) e) +(defun line-beginning-position () + (save-excursion (beginning-of-line) (point))) +(defvar last-mouse-position t) +(defun posn-point (e) (event-closest-point e)) +(defmacro track-mouse (el) (progn el)) +(defun read-event () (let ((e (next-event))) e)) +(defun mouse-movement-p (e) (equal (event-type e) 'motion)) +(defun posn-window (e) (event-window e)) + +(provide 'caml-xemacs) |