branch: elpa/julia-mode commit 5238f9adb7dd1c161fd6130435ebf0ac3755f33c Author: Tamas K. Papp <tkp...@gmail.com> Commit: GitHub <nore...@github.com>
Increase lookback. (#98) Increase lookback. Fixes #5. --- CHANGELOG.md | 2 ++ julia-mode.el | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3178b63..17e5bff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +- increase lookback ([#98](https://github.com/JuliaEditorSupport/julia-emacs/pull/98)), fixes [#5](https://github.com/JuliaEditorSupport/julia-emacs/issues/5) + - fix derived parent mode ([#66](https://github.com/JuliaEditorSupport/julia-emacs/pull/66)) - load LaTeX substitution table as a feature ([#93](https://github.com/JuliaEditorSupport/julia-emacs/pull/93)) diff --git a/julia-mode.el b/julia-mode.el index b6f7b53..22acc6f 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -490,12 +490,13 @@ beginning of the buffer." (unless (eq (point) (point-min)) (backward-char))) -(defcustom julia-max-block-lookback 5000 - "When indenting, don't look back more than this -many characters to see if there are unclosed blocks. +(defcustom julia-max-block-lookback 20000 + "When indenting, don't look back more than this many characters +to see if there are unclosed blocks. -This variable has a moderate effect on indent performance if set too -high, but stops indenting in the middle of long blocks if set too low." +This variable has a small effect on indent performance if set +too high, but stops indenting in the middle of long blocks if set +too low." :type 'integer :group 'julia)