From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#68111: 30.0.50; backward-kill-word too eager in cc-mode Date: Sun, 31 Dec 2023 11:15:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37649"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 68111@debbugs.gnu.org, Eli Zaretskii To: Platon Pronko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 31 12:16:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rJtnt-0009SO-Nn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Dec 2023 12:16:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJtnc-0005PG-BH; Sun, 31 Dec 2023 06:16:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJtnV-0005OM-Td for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 06:16:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJtnV-0007TS-AB for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 06:16:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJtnW-0000P5-6Y for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 06:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Dec 2023 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68111 X-GNU-PR-Package: emacs Original-Received: via spool by 68111-submit@debbugs.gnu.org id=B68111.170402131428239 (code B ref 68111); Sun, 31 Dec 2023 11:16:02 +0000 Original-Received: (at 68111) by debbugs.gnu.org; 31 Dec 2023 11:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:45668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJtmj-0007Kd-Ju for submit@debbugs.gnu.org; Sun, 31 Dec 2023 06:15:13 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:44641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJtme-0006o4-Bn for 68111@debbugs.gnu.org; Sun, 31 Dec 2023 06:15:12 -0500 Original-Received: (qmail 48896 invoked by uid 3782); 31 Dec 2023 12:15:01 +0100 Original-Received: from acm.muc.de (p4fe15370.dip0.t-ipconnect.de [79.225.83.112]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 31 Dec 2023 12:15:00 +0100 Original-Received: (qmail 32527 invoked by uid 1000); 31 Dec 2023 11:15:00 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277141 Archived-At: Hello, Platon. Thanks for taking the trouble to report this bug, and sorry for the annoyance it must have caused. On Fri, Dec 29, 2023 at 21:23:54 +0500, Platon Pronko wrote: > 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 > } > ``` > calling backward-kill-word results in > ``` > int main() { > > } > ``` > while the expected result is probably: > ``` > int main() { > printf("alpha beta > } > ``` > It seems that this is a regression in commit > dae8aab52874441a70a94435d50f25b27301d9b0, by Alan Mackenzie on > 2023-06-21. Indeed, yes. Thanks for doing the bisection, it saved me a lot of work. I've committed a fix for the bug to the master branch of the repository. Would you please update your copy of Emacs, test the fix, then either confirm the fix is complete, or say what is still not working. Then we can close the bug. Happy New Year! > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.39, cairo version 1.18.0) of 2023-12-29 built on the-big-maker > Repository revision: ea3d211f3f7ecc5b59d5affc1aed812a2ded62b0 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12101010 > System Description: Arch Linux [ .... ] -- Alan Mackenzie (Nuremberg, Germany).