]> git.eshelyaron.com Git - emacs.git/commitdiff
CC Mode: Fix dodgy lisp `let' form.
authorAlan Mackenzie <acm@muc.de>
Wed, 16 Oct 2024 13:17:26 +0000 (13:17 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Oct 2024 18:51:07 +0000 (20:51 +0200)
* lisp/progmodes/cc-engine.el (c-forward-sws): Move a `setq'
form from out of a let binding.  This form could have been
affected by the byte compiler bug bug#67116 before this was
fixed.

(cherry picked from commit 5340fdaade1f8fe7af08293619cca89ae0796fcf)

lisp/progmodes/cc-engine.el

index 174989543b92da26b6f650f6d529797f44fdde07..2f130196dd8a77f7c934a56b94645a2f16530c0c 100644 (file)
@@ -2200,8 +2200,9 @@ comment at the start of cc-engine.el for more info."
              (c-put-is-sws (1+ rung-pos)
                            (1+ (point)))
              (c-put-in-sws rung-pos
-                           (setq rung-pos (point)
-                                 last-put-in-sws-pos rung-pos)))
+                           (point))
+             (setq rung-pos (point)
+                   last-put-in-sws-pos rung-pos))
 
            ;; Now move over any comments (x)or a CPP construct.
            (setq simple-ws-end (point))