From: Eli Zaretskii <eliz@gnu.org>
To: "Augustin Chéneau" <btuin@mailo.com>
Cc: Yuan Fu <casouri@gmail.com>, 73778@debbugs.gnu.org
Subject: bug#73778: 30.0.91; cpp-ts-mode indentation never finishes
Date: Sat, 19 Oct 2024 11:12:35 +0300 [thread overview]
Message-ID: <86ttd8lde4.fsf@gnu.org> (raw)
In-Reply-To: <39d9021d-a4e8-4460-a113-0744f184e9dc@mailo.com> (bug-gnu-emacs@gnu.org)
> Date: Sat, 12 Oct 2024 21:20:47 +0200
> From: Augustin Chéneau (BTuin) via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> In c++-ts-mode, there is a bug when I indent a line with <tab>.
>
> This is trivially reproducible with the below code:
>
> int func() {
> int a;
> int b;
> }
>
> Place your point before "int b;", press <tab>, and the indentation
> process never finishes.
>
> This is caused by an error in c-ts-mode--anchor-prev-sibling, as the
> condition of the last "or" in the function has incorrect
> delimitation. Which means that the "if" will run the second test on
> success, which then cause the function to be stuck in an infinite loop.
>
> I would gladly send you a patch, but I've been stuck in the legal limbo
> of the copyright assignment for months now and I cannot contribute to
> GNU Emacs (or any GNU project for the matter).
>
> I hope my description will be enough.
I cannot reproduce this on the latest emacs-30 branch, perhaps because
changes were installed in the function you mention two days after you
have built your Emacs. Can you try the latest emacs-30 branch and see
if the problem still persists?
Thanks.
next prev parent reply other threads:[~2024-10-19 8:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-12 19:20 bug#73778: 30.0.91; cpp-ts-mode indentation never finishes Augustin Chéneau via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-19 8:12 ` Eli Zaretskii [this message]
2024-10-19 10:58 ` Augustin Chéneau via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-19 11:10 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ttd8lde4.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73778@debbugs.gnu.org \
--cc=btuin@mailo.com \
--cc=casouri@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.