[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-30 3fcec09f754 2/4: Add debugging function for treesit.c
From: |
Yuan Fu |
Subject: |
Re: emacs-30 3fcec09f754 2/4: Add debugging function for treesit.c |
Date: |
Sun, 8 Sep 2024 21:13:00 -0700 |
> On Sep 8, 2024, at 8:58 PM, Po Lu <luangruo@yahoo.com> wrote:
>
> Yuan Fu <casouri@gmail.com> writes:
>
>> branch: emacs-30
>> commit 3fcec09f754af9822339eff3ea15d43eb7d19014
>> Author: Yuan Fu <casouri@gmail.com>
>> Commit: Yuan Fu <casouri@gmail.com>
>>
>> Add debugging function for treesit.c
>>
>> * src/treesit.c (treesit_debug_print_parser_list): New function.
>> ---
>> src/treesit.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 47 insertions(+)
>>
>> diff --git a/src/treesit.c b/src/treesit.c
>> index 6e806039df0..351bd65819a 100644
>> --- a/src/treesit.c
>> +++ b/src/treesit.c
>> @@ -485,6 +485,53 @@ treesit_initialize (void)
>> }
>>
>>
>> +/*** Debugging */
>> +
>> +void treesit_debug_print_parser_list (char *msg, Lisp_Object parser)
>
> Please insert a newline between the return type and identifier name.
> Is this appropriate for Emacs 30?
Will do. This is for debugging a hang on emacs 30 (which I still haven’t figure
out yet) (bug#72863). If it’s not appropriate for emacs-30, I can revert it and
later put it on master. A debugging function won’t be called by any function so
it shouldn’t disrupt anything. I’m only locally inserting calls to this
function in various places for debugging.
Yuan