[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528 |
Date: |
Sun, 29 Aug 2021 11:22:51 -0400 (EDT) |
branch: elpa/julia-mode
commit 892beb166ab77360fd758d4d7446540218eed4e0
Author: Dan Schmidt <dfan@dfan.org>
Commit: Yichao Yu <yyc1992@gmail.com>
Fix #12528
---
julia-mode.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/julia-mode.el b/julia-mode.el
index 8a779d7..abab7fc 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -402,6 +402,8 @@ high.")
containing paren before point, so we can align succeeding code
with it. Returns nil if we're not within nested parens."
(save-excursion
+ ;; Back up to previous line (beginning-of-line was already called)
+ (backward-char)
(let ((min-pos (max (- (point) julia-max-paren-lookback)
(point-min)))
(open-count 0))
@@ -612,6 +614,14 @@ c"
# b =
c"))
+ (ert-deftest julia--test-indent-leading-paren ()
+ "`(` at the beginning of a line should not affect indentation."
+ (julia--should-indent
+ "
+(1)"
+ "
+(1)"))
+
(defun julia--run-tests ()
(interactive)
(ert-run-tests-interactively "julia--test")))
- [nongnu] elpa/julia-mode 6f075d7 224/352: Use syntax-propertize-function on Emacs 24., (continued)
- [nongnu] elpa/julia-mode 6f075d7 224/352: Use syntax-propertize-function on Emacs 24., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 96499ff 209/352: Silence Emacs byte-compilation warnings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c982fd6 216/352: Changed name of Emacs buffer to *Julia*, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7c1603c 226/352: Use more common name for indentation setting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dd3d682 225/352: Fix Emacs 23 error., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 64d86a4 215/352: Added customization options, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c7e3232 218/352: some tuple redesign follow-ups, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5ee867e 211/352: Changed inferior-julia function in contrib/julia-mode.el to apply, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0c6673a 212/352: Changed input method for Julia Emacs buffer to TeX, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6781ef1 220/352: Fix #11673, bad indent after comments ending in =, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 0526f2f 242/352: Fix spelling of 'delimiter', ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2b15d76 256/352: bol, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7802452 263/352: Merge pull request #35 from tpapp/fix-10, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9c36479 264/352: Merge pull request #36 from JuliaEditorSupport/jb/typekeywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode feb6e79 259/352: Merge pull request #31 from RalphAS/custom-lookback, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b24410f 279/352: Allow user to set multiple arguments to inferior julia, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 04b97c4 269/352: Merge pull request #37 from tpapp/fix-backslash, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1f254f8 260/352: Fix indentation for anonymous functions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5812bc3 261/352: Added tests for parentheses following keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b99710c 251/352: `python-mode`-like paren-indent, ELPA Syncer, 2021/08/29