branch: elpa/julia-mode commit 9df3a7ec32f3587dd3a590ae37535fdea6e88a0d Author: Tamas K. Papp <tkp...@gmail.com> Commit: Tamas K. Papp <tkp...@gmail.com>
fix variable renaming over-enthusiastic query replace; give a more expressive name --- julia-mode.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/julia-mode.el b/julia-mode.el index cffc466..7727476 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -459,17 +459,17 @@ symbol, gives up when this is not true." "Return the position of the last open block, if one found. Do not move back beyond position MIN." (save-excursion - (let ((cl-count 0)) - (while (not (or (> count 0) (<= (point) min))) + (let ((nesting-count 0)) + (while (not (or (> nesting-count 0) (<= (point) min))) (julia-safe-backward-sexp) - (setq count + (setq nesting-count (cond ((julia-at-keyword julia-block-start-keywords) - (+ count 1)) + (+ nesting-count 1)) ((and (equal (current-word t) "end") (not (julia-in-comment))) - (- count 1)) - (t count)))) - (if (> count 0) + (- nesting-count 1)) + (t nesting-count)))) + (if (> nesting-count 0) (point) nil))))