From: Eli Zaretskii <eliz@gnu.org>
To: "Augustin Chéneau" <btuin@mailo.com>
Cc: 73778-done@debbugs.gnu.org, casouri@gmail.com
Subject: bug#73778: 30.0.91; cpp-ts-mode indentation never finishes
Date: Sat, 19 Oct 2024 14:10:50 +0300 [thread overview]
Message-ID: <864j58l551.fsf@gnu.org> (raw)
In-Reply-To: <5cc18bd9-601d-4db7-ae1a-0bdd08c47d96@mailo.com> (message from Augustin Chéneau (BTuin) on Sat, 19 Oct 2024 12:58:36 +0200)
> Date: Sat, 19 Oct 2024 12:58:36 +0200
> Cc: 73778@debbugs.gnu.org, Yuan Fu <casouri@gmail.com>
> From: Augustin Chéneau (BTuin) <btuin@mailo.com>
>
> Le 19/10/2024 à 10:12, Eli Zaretskii a écrit :
> >> 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.
>
> It seems it was indeed solved by commit
> c154047c46ae833a114e84d72e62269d12c3249d, thanks!
>
> I don't know how to close this bug report, though.
Thanks, I closed it.
prev parent reply other threads:[~2024-10-19 11:10 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
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 [this message]
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=864j58l551.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73778-done@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.