From efb58fb70dcd6209db1c2c7cfba1478315c337bc Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Wed, 16 Oct 2024 13:17:26 +0000 Subject: [PATCH] CC Mode: Fix dodgy lisp `let' form. * 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 174989543b9..2f130196dd8 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -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)) -- 2.39.5