[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 307b42b 189/352: If the previous line has a tra
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 307b42b 189/352: If the previous line has a trailing =, that should take precedence over blocks. |
Date: |
Sun, 29 Aug 2021 11:22:42 -0400 (EDT) |
branch: elpa/julia-mode
commit 307b42b2d274302a0091607a196bf978edd3ded6
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@gmail.com>
If the previous line has a trailing =, that should take precedence over
blocks.
---
julia-mode.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 0216279..afb18c8 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -364,13 +364,6 @@ before point. Returns nil if we're not within nested
parens."
(save-excursion
(beginning-of-line)
(ignore-errors (julia-paren-indent)))
- ;; Indent according to how many nested blocks we are in.
- (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))
- (if endtok (- julia-basic-offset) 0)))))
;; If the previous line ends in =, increase the indent.
(ignore-errors ; if previous line is (point-min)
(save-excursion
@@ -381,6 +374,13 @@ before point. Returns nil if we're not within nested
parens."
(equal (char-after (point)) ?=)))
(+ julia-basic-offset (current-indentation))
nil)))
+ ;; Indent according to how many nested blocks we are in.
+ (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))
+ (if endtok (- julia-basic-offset) 0)))))
;; Otherwise, use the same indentation as previous line.
(save-excursion (forward-line -1)
(current-indentation))
- [nongnu] elpa/julia-mode 10b0eff 286/352: beginning/end of defun functions, (continued)
- [nongnu] elpa/julia-mode 10b0eff 286/352: beginning/end of defun functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop support for Emacs 23., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10ce821 310/352: Add MELPA badge, clarify installation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 088fb0b 314/352: Load latexsub table as a feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 66ef2db 317/352: Merge branch 'master' into tp/drop-emacs-23, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b295e36 345/352: Merge pull request #133 from non-Jedi/triple-quote-cmd, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e10a730 056/352: FFT of real vectors as well, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7065601 138/352: julia-mode symbol-table update from #7018, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5d693ab 349/352: Fix CI using actions. (#160), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 307b42b 189/352: If the previous line has a trailing =, that should take precedence over blocks.,
ELPA Syncer <=
- [nongnu] elpa/julia-mode c4a75b4 271/352: update short function syntax w.r.t. spaces, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9d08954 292/352: Update keywords and builtin types to Julia 1.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9edff28 291/352: Merge pull request #68 from nverno/fix-compilation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 999569b 297/352: Update substitutions to include emoji, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3adce47 296/352: highlight ∈ in `for var ∈ …` ( fix #71 ), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 181c919 040/352: adding a full interface to select and FD sets, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1332b74 262/352: update for changed type keywords in 0.6, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0f064b7 280/352: Enable color in inferior julia, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ec01995 285/352: Merge pull request #54 from jamii/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 68181e6 293/352: Replace IntSet by BitSet, ELPA Syncer, 2021/08/29