From: Andrea Corallo <acorallo@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: master 74bb1e5897f 2/3: Fix filling in c-ts-mode (bug#72116)
Date: Mon, 05 Aug 2024 05:22:07 -0400 [thread overview]
Message-ID: <yp17ccvmiio.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <171796ED-921A-472C-8682-C1252EA265B0@gmail.com> (Yuan Fu's message of "Sun, 4 Aug 2024 20:50:41 -0700")
Yuan Fu <casouri@gmail.com> writes:
>> On Aug 3, 2024, at 12:30 AM, Yuan Fu <casouri@gmail.com> wrote:
>>
>>
>>
>>> On Aug 1, 2024, at 1:53 AM, Andrea Corallo <acorallo@gnu.org> wrote:
>>>
>>> Yuan Fu <casouri@gmail.com> writes:
>>>
>>>> branch: master
>>>> commit 74bb1e5897f4532fbdefddada28258a8d3d5c95f
>>>> Author: Yuan Fu <casouri@gmail.com>
>>>> Commit: Yuan Fu <casouri@gmail.com>
>>>>
>>>> Fix filling in c-ts-mode (bug#72116)
>>>>
>>>> The previous fix introduced a regression in the case when there's only a
>>>> single line in the block comment. In that case we don't want to add a
>>>> start at the second line:
>>>>
>>>> /* foo foo foo */ should => /* foo foo
>>>> foo */
>>>>
>>>> rather than /* foo foo
>>>> * foo */
>>>>
>>>> This commit fixes that.
>>>>
>>>> * lisp/progmodes/c-ts-common.el:
>>>> (c-ts-common--fill-block-comment): Don't mask the /*.
>>>> (c-ts-common--adaptive-fill-prefix): New function.
>>>> (c-ts-common-comment-setup): Don't set adaptive-regexp, change
>>>> adaptive-fill-first-line-regexp to work with the new
>>>> adaptive-fill-function.
>>>> * test/lisp/progmodes/c-ts-mode-resources/filling.erts: New tests
>>>
>>> Hi Yuan,
>>>
>>> this change is causing the following regression on my testbench on
>>> master:
>>>
>>> c-ts-mode-test-filling
>>> 1/4 c-ts-mode-test-filling (0.015896 sec) at lisp/progmodes/c-ts-mode-tests.el:38
>>>
>>> Would you mind having a look?
>>>
>>> Thanks
>>
>> Yes absolutely, wonder why it didn’t error when I wrote the patch :-(
>
> Ok, should be fixed now.
>
> Yuan
Confirm thanks!
next prev parent reply other threads:[~2024-08-05 9:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <172238461549.32268.17283604138559769854@vcs2.savannah.gnu.org>
[not found] ` <20240731001020.DEFADC1CAE9@vcs2.savannah.gnu.org>
2024-08-01 8:53 ` master 74bb1e5897f 2/3: Fix filling in c-ts-mode (bug#72116) Andrea Corallo
2024-08-03 7:30 ` Yuan Fu
2024-08-05 3:50 ` Yuan Fu
2024-08-05 9:22 ` Andrea Corallo [this message]
[not found] ` <20240731001018.B3D6EC1CAE5@vcs2.savannah.gnu.org>
2024-08-07 10:56 ` master e4cd26defc0 1/3: "Separate" tree-sitter parser list for indirect buffers Michael Albinus
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=yp17ccvmiio.fsf@fencepost.gnu.org \
--to=acorallo@gnu.org \
--cc=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
/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.