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

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

[nongnu] elpa/julia-mode 9df3a7e 307/352: fix variable renaming


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 9df3a7e 307/352: fix variable renaming
Date: Sun, 29 Aug 2021 11:23:07 -0400 (EDT)

branch: elpa/julia-mode
commit 9df3a7ec32f3587dd3a590ae37535fdea6e88a0d
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: Tamas K. Papp <tkpapp@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))))
 



reply via email to

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