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

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

[nongnu] elpa/spell-fu fe557e3dff 21/86: Be explicit about using macro t


From: ELPA Syncer
Subject: [nongnu] elpa/spell-fu fe557e3dff 21/86: Be explicit about using macro that sets values in-place
Date: Thu, 7 Jul 2022 12:03:39 -0400 (EDT)

branch: elpa/spell-fu
commit fe557e3dff80f56d75b25acb584cd829924add53
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Be explicit about using macro that sets values in-place
---
 spell-fu.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/spell-fu.el b/spell-fu.el
index 1d608ecba9..bdfb68d6f4 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -491,7 +491,9 @@ Argument FACES-EXCLUDE faces to check POS excludes or 
ignored when nil."
 
 (defun spell-fu--font-lock-fontify-region (point-start point-end)
   "Update spelling for POINT-START & POINT-END to the queue, checking all 
text."
-  (spell-fu--setq-expand-range-to-line-boundaries point-start point-end)
+  (spell-fu--setq-expand-range-to-line-boundaries
+    ;; Warning these values are set in place.
+    point-start point-end)
   (funcall spell-fu-check-range point-start point-end))
 
 (defun spell-fu--immediate-enable ()
@@ -543,7 +545,9 @@ range POINT-START to POINT-END. Otherwise remove all 
overlays."
                 (point-end (min visible-end (overlay-end item-ov))))
 
               ;; Expand so we don't spell check half a word.
-              (spell-fu--setq-expand-range-to-line-boundaries point-start 
point-end)
+              (spell-fu--setq-expand-range-to-line-boundaries
+                ;; Warning these values are set in place.
+                point-start point-end)
 
               (when
                 (condition-case err



reply via email to

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