branch: elpa/julia-mode commit e7c85504daf3b681ee5093802f103f1baf20b113 Author: Marten Lienen <marten.lie...@gmail.com> Commit: Yichao Yu <yyc1...@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.