From: Alan Mackenzie <acm@muc.de>
To: Platon Pronko <platon7pronko@gmail.com>
Cc: acm@muc.de, 68111@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
Subject: bug#68111: 30.0.50; backward-kill-word too eager in cc-mode
Date: Sun, 31 Dec 2023 11:15:00 +0000 [thread overview]
Message-ID: <ZZFNNHckP95BxjAv@ACM> (raw)
In-Reply-To: <ea32455e-4b81-472a-9ee6-28bda3518dcd@gmail.com>
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<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.
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).
next prev parent reply other threads:[~2023-12-31 11:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-29 16:23 bug#68111: 30.0.50; backward-kill-word too eager in cc-mode Platon Pronko
2023-12-29 18:54 ` Eli Zaretskii
2023-12-31 11:15 ` Alan Mackenzie [this message]
2024-01-03 15:15 ` Platon Pronko
2024-01-06 11:45 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZZFNNHckP95BxjAv@ACM \
--to=acm@muc.de \
--cc=68111@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=platon7pronko@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).