[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode e7c8550 228/352: Bind indent offset to its stan
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode e7c8550 228/352: Bind indent offset to its standard value for tests |
Date: |
Sun, 29 Aug 2021 11:22:50 -0400 (EDT) |
branch: elpa/julia-mode
commit e7c85504daf3b681ee5093802f103f1baf20b113
Author: Marten Lienen <marten.lienen@gmail.com>
Commit: Yichao Yu <yyc1992@gmail.com>
Bind indent offset to its standard value for tests
---
julia-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 5ebc587..0c30e25 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -465,11 +465,12 @@ with it. Returns nil if we're not within nested parens."
(defmacro julia--should-indent (from to)
"Assert that we indent text FROM producing text TO in `julia-mode'."
`(with-temp-buffer
- (julia-mode)
- (insert ,from)
- (indent-region (point-min) (point-max))
- (should (equal (buffer-substring-no-properties (point-min) (point-max))
- ,to))))
+ (let ((julia-indent-offset 4))
+ (julia-mode)
+ (insert ,from)
+ (indent-region (point-min) (point-max))
+ (should (equal (buffer-substring-no-properties (point-min) (point-max))
+ ,to)))))
;; Emacs 23.X doesn't include ert, so we ignore any errors that occur
;; when we define tests.
- [nongnu] elpa/julia-mode f3f2ad1 198/352: Highlight triple quoted strings., (continued)
- [nongnu] elpa/julia-mode f3f2ad1 198/352: Highlight triple quoted strings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 65cfc0d 201/352: julia-mode.el: add a bunch of builtin types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode fabafad 200/352: julia-mode.el: improve matching of function assignment syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4b41b85 207/352: julia-mode.el: `f(x) == something` does not define a function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a37d541 214/352: Changed input from TeX mode to use Julia unicode input, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2e72a0b 213/352: Removed (setq comint-proccess-echoes t) from contrib/julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 716d58c 217/352: Added autoload cookie to inferior-julia function in contrib/julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b1e02f1 230/352: rename: FloatingPoint => AbstractFloat, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0583ee3 232/352: String was renamed to AbstractString, replace everywhere, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4afb7be 229/352: Update mailmap., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e7c8550 228/352: Bind indent offset to its standard value for tests,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 0df9ca4 240/352: julia-mode: Indentation performance improvements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2d860b1 248/352: Merge pull request #18 from JuliaLang/yyc/str-cleanup, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e4b3428 244/352: Remove test branch in travis, add README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ad6a494 301/352: Merge pull request #78 from tpapp/tp/update-latexsubs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 109747e 132/352: eliminate StoredArray (fix #6212, #987); UniformScaling is no longer an AbstractArray (#5810), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 84d9a19 147/352: Fix emacs highlighting of symbols that contain keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode fc04731 153/352: Highlight parameter types and subtypes., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 70d6482 160/352: `throw` and `error` are built-in functions that we should highlight., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ba5ba4c 168/352: Highlight function names when defined with the assignment syntax., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode caab4dc 172/352: Respect the active region when indenting., ELPA Syncer, 2021/08/29