branch: elpa/spell-fu
commit fd671441456f50ebcbbaf0fcb2ff7cf8269a0d9a
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>

    Fix macro scoping: inhibit-field-text-motion must bind at runtime
---
 spell-fu.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/spell-fu.el b/spell-fu.el
index 250998606de..bf677988a64 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -452,10 +452,9 @@ Optional argument BODY runs with the depth override."
      ,@body))
 
 (defmacro spell-fu--setq-expand-range-to-line-boundaries (pos-beg pos-end)
-  "Set POS-BEG the the line beginning, POS-END to the line end."
-  ;; Ignore field boundaries.
-  (let ((inhibit-field-text-motion t))
-    `(save-excursion
+  "Set POS-BEG to the line beginning, POS-END to the line end."
+  `(let ((inhibit-field-text-motion t))
+     (save-excursion
        ;; Extend the ranges to line start/end.
        (goto-char ,pos-end)
        (setq ,pos-end (pos-eol))

Reply via email to