GNU bug report logs -
#59459
29.0.50; Compilation warnings without tree-sitter
Previous Next
Reported by: Yuan Fu <casouri <at> gmail.com>
Date: Mon, 21 Nov 2022 22:02:02 UTC
Severity: normal
Found in version 29.0.50
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59459 in the body.
You can then email your comments to 59459 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59459
; Package
emacs
.
(Mon, 21 Nov 2022 22:02:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Yuan Fu <casouri <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 21 Nov 2022 22:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Continuing from bug#59426]
Those warnings are due to no-tree-sitter build not having functions
defined in treesit.c. Eli fixed those warnings by adding
declare-function’s in every file using those functions. Can we make it a
bit nicer for lisp developers? Maybe defining those functions with
dummies with something like
(defun xxx
(error ’treesit "Tree-sitter not available"))
?
Yuan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59459
; Package
emacs
.
(Tue, 22 Nov 2022 12:22:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 59459 <at> debbugs.gnu.org (full text, mbox):
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Mon, 21 Nov 2022 14:01:14 -0800
>
> [Continuing from bug#59426]
>
> Those warnings are due to no-tree-sitter build not having functions
> defined in treesit.c. Eli fixed those warnings by adding
> declare-function’s in every file using those functions. Can we make it a
> bit nicer for lisp developers? Maybe defining those functions with
> dummies with something like
>
> (defun xxx
> (error ’treesit "Tree-sitter not available"))
>
> ?
I'm not sure this is justified. The cases where a build lacks a very large
group of primitives references in *.el files are quite rare in our practice;
about the only two examples I know of are xwidgets.el and treesit.el (plus
modes which use tree-sitter). It's easy enough (albeit annoying) to add a
few declare-function's, so unless we are going to have more and more of
these cases, adding a whole new infrastructure, let alone tricks like the
above, which will raise a lot of brows, sound excessive to me.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59459
; Package
emacs
.
(Tue, 22 Nov 2022 23:23:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 59459 <at> debbugs.gnu.org (full text, mbox):
> On Nov 22, 2022, at 4:21 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> From: Yuan Fu <casouri <at> gmail.com>
>> Date: Mon, 21 Nov 2022 14:01:14 -0800
>>
>> [Continuing from bug#59426]
>>
>> Those warnings are due to no-tree-sitter build not having functions
>> defined in treesit.c. Eli fixed those warnings by adding
>> declare-function’s in every file using those functions. Can we make it a
>> bit nicer for lisp developers? Maybe defining those functions with
>> dummies with something like
>>
>> (defun xxx
>> (error ’treesit "Tree-sitter not available"))
>>
>> ?
>
> I'm not sure this is justified. The cases where a build lacks a very large
> group of primitives references in *.el files are quite rare in our practice;
> about the only two examples I know of are xwidgets.el and treesit.el (plus
> modes which use tree-sitter). It's easy enough (albeit annoying) to add a
> few declare-function's, so unless we are going to have more and more of
> these cases, adding a whole new infrastructure, let alone tricks like the
> above, which will raise a lot of brows, sound excessive to me.
If it cannot be easily done with existing tools, then I agree declare-function is good enough.
Thanks,
Yuan
Reply sent
to
Yuan Fu <casouri <at> gmail.com>
:
You have taken responsibility.
(Tue, 22 Nov 2022 23:23:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Yuan Fu <casouri <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 22 Nov 2022 23:23:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 21 Dec 2022 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 274 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.