[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/caml bb1103a 075/197: Scrolling .annot
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/caml bb1103a 075/197: Scrolling .annot |
Date: |
Sat, 21 Nov 2020 01:19:41 -0500 (EST) |
branch: externals/caml
commit bb1103a2092964358ecc66d060ed1b06cdf817b9
Author: Didier Rémy <Didier.Remy@inria.fr>
Commit: Didier Rémy <Didier.Remy@inria.fr>
Scrolling .annot
Delete overlays.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5724
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
caml-types.el | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/caml-types.el b/caml-types.el
index bfa99be..386e5ba 100644
--- a/caml-types.el
+++ b/caml-types.el
@@ -121,17 +121,30 @@
(right (caml-types-get-pos target-buf
(nth 2 loc) (nth 3 loc))))
(move-overlay caml-types-expr-ovl left right target-buf))
- (re-search-forward "^type(") ;; not strictly correct
+ (re-search-forward "^type(");; not strictly correct
(forward-line 1)
(re-search-forward " \\(\\([^\n)]\\|.)\\|\n[^)]\\)*\\)\n)")
(move-overlay caml-types-type-ovl (match-beginning 1) (match-end 1)
type-buf)
(message (format "type: %s" (match-string 1)))
- ; *** this doesn't seem to work, I don't know why...
- ; *** (goto-char type-point)
- ; *** workaround: set the mark instead
+ ; *** this doesn't seem to work, I
don't know why...
+ ; *** (goto-char type-point)
+ ; *** workaround: set the mark instead
(set-mark (match-beginning 1))
- (set-buffer target-buf)))))))
+ )))
+ (let
+ ((window (get-buffer-window type-buf))
+ (this-window (selected-window)))
+
+ (if window
+ (progn
+ (select-window window)
+ (goto-char (mark))
+ (select-window this-window))))
+ (unwind-protect
+ (sit-for 3)
+ (delete-overlay caml-types-expr-ovl))
+ )))
(defun caml-types-date< (date1 date2)
(or (< (car date1) (car date2))
- [nongnu] externals/caml b060e59 041/197: indentation autour de "; ; ", (continued)
- [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, 2020/11/21
- [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 <=
- [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
- [nongnu] externals/caml 2a6dc28 087/197: changed defmacro -> defalias, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml f751b4c 091/197: NOCOMPILE pour installer sans compiler (suggestion de Sven Luther), Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 0a4f815 093/197: Fix hilitghting of largest well-typed expr surrounding point., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml b19dc86 092/197: pour que ca marche avec camlp4, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 6f9f060 096/197: caml-types:, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml bcd8c14 097/197: Retrait des messages de debugging..., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 70cc99c 101/197: - Mouse navigation in a caml-help window does not open another window, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml ad3e9c2 105/197: Ajout de camldebug dans le menu Caml d'emacs., Stefan Monnier, 2020/11/21