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

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

[nongnu] externals/caml 9aa847d 020/197: intelligent indentation of pare


From: Stefan Monnier
Subject: [nongnu] externals/caml 9aa847d 020/197: intelligent indentation of parenthesis
Date: Sat, 21 Nov 2020 01:19:30 -0500 (EST)

branch: externals/caml
commit 9aa847dd61436146ae5ae9b0bed81bcda4c7692d
Author: Jacques Garrigue <garrigue at math.nagoya-u.ac.jp>
Commit: Jacques Garrigue <garrigue at math.nagoya-u.ac.jp>

    intelligent indentation of parenthesis
    
    
    git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2355 
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
 caml.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/caml.el b/caml.el
index e5ac137..54abbb1 100644
--- a/caml.el
+++ b/caml.el
@@ -1375,6 +1375,8 @@ Does not preserve point."
         (indent-diff
          (cond
           ((not kwop-info) (beginning-of-line 1) 0)
+          ((looking-at "[[({][|<]?[ \t]*")
+           (length (caml-match-string 0)))
           ((nth 1 kwop-info) (symbol-value (nth 3 kwop-info)))
           (t 
            (let ((pos (point)))



reply via email to

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