[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5340fdaade1: CC Mode: Fix dodgy lisp `let' form.
From: |
Alan Mackenzie |
Subject: |
master 5340fdaade1: CC Mode: Fix dodgy lisp `let' form. |
Date: |
Wed, 16 Oct 2024 09:24:37 -0400 (EDT) |
branch: master
commit 5340fdaade1f8fe7af08293619cca89ae0796fcf
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
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.
---
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 8fd2b2dc49c..c46cd54438b 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 5340fdaade1: CC Mode: Fix dodgy lisp `let' form.,
Alan Mackenzie <=