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

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

[nongnu] elpa/julia-mode 40c5e82 185/352: Fix indentation when we're ind


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 40c5e82 185/352: Fix indentation when we're indenting a line that has an open paren after point.
Date: Sun, 29 Aug 2021 11:22:41 -0400 (EDT)

branch: elpa/julia-mode
commit 40c5e82f07861b2e877ea2c52368eab85a117269
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@gmail.com>

    Fix indentation when we're indenting a line that has an open paren after 
point.
---
 julia-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/julia-mode.el b/julia-mode.el
index 7dfc292..d0881e1 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -353,10 +353,12 @@ before point. Returns nil if we're not within nested 
parens."
     (indent-line-to
      (or
       ;; If we're inside an open paren, indent to line up arguments.
-      (ignore-errors (julia-paren-indent))
       ;; If we're on a block end keyword, unindent.
       (save-excursion
         (beginning-of-line)
+        (ignore-errors (julia-paren-indent)))
+      (save-excursion
+        (beginning-of-line)
         (forward-to-indentation 0)
         (let ((endtok (julia-at-keyword julia-block-end-keywords)))
           (ignore-errors (+ (julia-last-open-block (point-min))



reply via email to

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