GNU bug report logs - #68111
30.0.50; backward-kill-word too eager in cc-mode

Previous Next

Package: emacs;

Reported by: Platon Pronko <platon7pronko <at> gmail.com>

Date: Fri, 29 Dec 2023 16:25:01 UTC

Severity: normal

Found in version 30.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Platon Pronko <platon7pronko <at> gmail.com>, Alan Mackenzie <acm <at> muc.de>
Cc: 68111 <at> debbugs.gnu.org
Subject: bug#68111: 30.0.50; backward-kill-word too eager in cc-mode
Date: Fri, 29 Dec 2023 20:54:54 +0200
> Date: Fri, 29 Dec 2023 21:23:54 +0500
> From: Platon Pronko <platon7pronko <at> gmail.com>
> 
> In cc-mode (C lang files) calling backward-kill-word seems to be too eager. For example, given the following file and cursor position:
> 
> ```
> int main() {
>    printf("alpha beta gamma<cursor>
> }
> ```
> 
> calling backward-kill-word results in
> 
> ```
> int main() {
>    <cursor>
> }
> ```
> 
> while the expected result is probably:
> 
> ```
> int main() {
>    printf("alpha beta <cursor>
> }
> ```
> 
> It seems that this is a regression in commit dae8aab52874441a70a94435d50f25b27301d9b0, by Alan Mackenzie on 2023-06-21.

Adding Alan to the discussion.




This bug report was last modified 1 year and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.