emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode 4f56ded 258/352: make lookback distance customi


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 4f56ded 258/352: make lookback distance customizable
Date: Sun, 29 Aug 2021 11:22:57 -0400 (EDT)

branch: elpa/julia-mode
commit 4f56ded3c283cd0881fa2fbb5e8d234a6589631f
Author: Ralph A. Smith <smith.ralph.a@gmail.com>
Commit: Ralph A. Smith <smith.ralph.a@gmail.com>

    make lookback distance customizable
    
    User-friendly remedy for JuliaEditorSupport/julia-emacs/issues/#5
---
 julia-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index 6f204d1..48cffa5 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -479,12 +479,14 @@ beginning of the buffer."
   (unless (eq (point) (point-min))
     (backward-char)))
 
-(defvar julia-max-block-lookback 5000
+(defcustom julia-max-block-lookback 5000
   "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.")
+high, but stops indenting in the middle of long blocks if set too low."
+  :type 'integer
+  :group 'julia)
 
 (defun julia-paren-indent ()
   "Return the column of the text following the innermost



reply via email to

[Prev in Thread] Current Thread [Next in Thread]