emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] externals/caml ab2d4cc 107/197: fusion des modifs de 3.08.4


From: Stefan Monnier
Subject: [nongnu] externals/caml ab2d4cc 107/197: fusion des modifs de 3.08.4
Date: Sat, 21 Nov 2020 01:19:48 -0500 (EST)

branch: externals/caml
commit ab2d4ccf0e29727a2b0017b9d134eefdfb60c8e7
Author: Damien Doligez <damien.doligez-inria.fr>
Commit: Damien Doligez <damien.doligez-inria.fr>

    fusion des modifs de 3.08.4
    
    
    git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7019 
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
 caml-types.el | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/caml-types.el b/caml-types.el
index 4bbd763..6bdfba9 100644
--- a/caml-types.el
+++ b/caml-types.el
@@ -128,17 +128,14 @@ See `caml-types-location-re' for annotation file format.
          (type-file (concat (file-name-sans-extension (buffer-file-name))
                             ".annot")))
     (caml-types-preprocess type-file)
-    (unless caml-types-buffer 
-      (setq caml-types-buffer (get-buffer-create caml-types-buffer-name)))
+    (setq caml-types-buffer (get-buffer-create caml-types-buffer-name))
     (let* ((targ-loc (vector target-file target-line target-bol target-cnum))
            (node (caml-types-find-location targ-loc ()
                                            caml-types-annotation-tree)))
       (cond
        ((null node)
-        (delete-overlay caml-types-expr-ovl)
-        (message "Point is not within a typechecked expression or pattern.")
-        ; (with-current-buffer type-buf (narrow-to-region 1 1))
-        )
+         (delete-overlay caml-types-expr-ovl)
+         (message "Point is not within a typechecked expression or pattern."))
        (t
         (let ((left (caml-types-get-pos target-buf (elt node 0)))
               (right (caml-types-get-pos target-buf (elt node 1)))
@@ -426,9 +423,7 @@ The function uses two overlays.
         (progn
           (caml-types-preprocess type-file)
           (setq target-tree caml-types-annotation-tree)
-          (unless caml-types-buffer 
-            (setq caml-types-buffer
-                  (get-buffer-create caml-types-buffer-name)))
+          (setq caml-types-buffer (get-buffer-create caml-types-buffer-name))
           ;; (message "Drag the mouse to explore types")
           (unwind-protect
               (caml-track-mouse
@@ -569,4 +564,10 @@ The function uses two overlays.
                     (min (point-max) (+ end 1)) target-buf)
     (cons start end)))
 
+(defun caml-types-version ()
+  "internal version number of caml-types.el"
+  (interactive)
+  (message "2")
+)
+
 (provide 'caml-types)



reply via email to

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