GNU bug report logs -
#60961
29.0.60; Compiling emacs-29 without treesitter outputs warnings
Previous Next
Reported by: Robert Pluim <rpluim <at> gmail.com>
Date: Fri, 20 Jan 2023 10:31:01 UTC
Severity: normal
Found in version 29.0.60
Fixed in versions 30.1, 29.1
Done: Theodor Thornhill <theo <at> thornhill.no>
Bug is archived. No further changes may be made.
Full log
Message #27 received at 60961 <at> debbugs.gnu.org (full text, mbox):
On 20 January 2023 23:11:44 CET, Yuan Fu <casouri <at> gmail.com> wrote:
>
>
>> On Jan 20, 2023, at 8:07 AM, Theodor Thornhill <theo <at> thornhill.no> wrote:
>>
>>
>>
>> On 20 January 2023 16:17:22 CET, Eli Zaretskii <eliz <at> gnu.org> wrote:
>>>> From: Theodor Thornhill <theo <at> thornhill.no>
>>>> Cc: rpluim <at> gmail.com, casouri <at> gmail.com, 60961 <at> debbugs.gnu.org
>>>> Date: Fri, 20 Jan 2023 15:43:33 +0100
>>>>
>>>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>>>
>>>>>> So I can either just make sure that no modes require across modes, or
>>>>>> make that "lib" right now. What do you think?
>>>>>
>>>>> I tend to the "lib" method. Mostly because several modes, including
>>>>> some that are unrelated to C, want the code which was written for
>>>>> C/C++, and so it is possible that there's some general feature here
>>>>> waiting for us to refactor the code -- in which case perhaps the code
>>>>> should be in treesit.el?
>>>>>
>>>>> IOW, how come JS, Rust, and Typescript all want comment-related setup
>>>>> that was written for C?
>
>Because they all have C-like syntax, so they have the same setup for indenting and filling block comments, for example.
>
>>>>> If this is just a coincidence, then perhaps
>>>>> duplicating the code is a better idea, but if there's some underlying
>>>>> commonality, we should have common code in treesit.el, or maybe in
>>>>> some c-ts-common.el?
>
>c-ts-common.el sounds good to me.
>
>>>>
>>>> I can start by moving it into treesit.el, then we can maybe extract
>>>> something out later. Sounds good? I can do it tonight, unless any of
>>>> you object :)
>>>
>>> SGTM, but let's hear from Yuan before you start working on this.
>>>
>>> Thanks.
>>
>> Thumbs up
>
>I’d prefer c-ts-common.el over treesit.el, since they only apply to C-like languages. There is no harm putting them in a separate file, right? I wrote some commentary in c-ts-mode, which notes all the shared functions and variables.
>
>Yuan
>
Ok, should I do it or you? :)
Theo
This bug report was last modified 2 years and 110 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.