GNU bug report logs -
#60001
[PATCH] Improve completion of treesit-check-indent command
Previous Next
Reported by: Daniel Martín <mardani29 <at> yahoo.es>
Date: Mon, 12 Dec 2022 10:54:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 30.1
Done: Stefan Kangas <stefankangas <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 60001 in the body.
You can then email your comments to 60001 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#60001
; Package
emacs
.
(Mon, 12 Dec 2022 10:54:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Martín <mardani29 <at> yahoo.es>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 12 Dec 2022 10:54:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
The treesit-check-indent command is not really related to Tree-sitter
and could be in a more general place than treesit.el. WDYT?
In any case, I have a patch to improve this command a bit by offering
more accurate completion for major modes, not Emacs commands. I have
also tried to improve its documentation a bit.
Thanks.
[0001-Improve-completion-of-treesit-check-indent-command.patch (text/patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60001
; Package
emacs
.
(Mon, 12 Dec 2022 14:01:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 60001 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 12 Dec 2022 11:53:00 +0100
> From: Daniel Martín via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> The treesit-check-indent command is not really related to Tree-sitter
> and could be in a more general place than treesit.el. WDYT?
I agree, but then we'd need a definition for it that doesn't need
tree-sitter support. Is that easy to provide?
> In any case, I have a patch to improve this command a bit by offering
> more accurate completion for major modes, not Emacs commands. I have
> also tried to improve its documentation a bit.
How about a read-major-mode function in subr.el?
But I think all these generalizations and improvements should go to
master. On the release branch, I'd prefer to leave
treesit-check-indent alone.
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 13 Dec 2022 00:48:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60001
; Package
emacs
.
(Sat, 07 Jan 2023 23:15:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 60001 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Mon, 12 Dec 2022 11:53:00 +0100
>> From: Daniel Martín via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> The treesit-check-indent command is not really related to Tree-sitter
>> and could be in a more general place than treesit.el. WDYT?
>
> I agree, but then we'd need a definition for it that doesn't need
> tree-sitter support. Is that easy to provide?
>
>> In any case, I have a patch to improve this command a bit by offering
>> more accurate completion for major modes, not Emacs commands. I have
>> also tried to improve its documentation a bit.
>
> How about a read-major-mode function in subr.el?
>
> But I think all these generalizations and improvements should go to
> master. On the release branch, I'd prefer to leave
> treesit-check-indent alone.
Has this patch been pushed to master? Should I close this report?
Yuan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60001
; Package
emacs
.
(Sun, 08 Jan 2023 11:54:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 60001 <at> debbugs.gnu.org (full text, mbox):
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Sat, 7 Jan 2023 15:13:54 -0800
> Cc: Daniel Martín <mardani29 <at> yahoo.es>,
> 60001 <at> debbugs.gnu.org
>
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Date: Mon, 12 Dec 2022 11:53:00 +0100
> >> From: Daniel Martín via "Bug reports for GNU Emacs,
> >> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >>
> >> The treesit-check-indent command is not really related to Tree-sitter
> >> and could be in a more general place than treesit.el. WDYT?
> >
> > I agree, but then we'd need a definition for it that doesn't need
> > tree-sitter support. Is that easy to provide?
> >
> >> In any case, I have a patch to improve this command a bit by offering
> >> more accurate completion for major modes, not Emacs commands. I have
> >> also tried to improve its documentation a bit.
> >
> > How about a read-major-mode function in subr.el?
> >
> > But I think all these generalizations and improvements should go to
> > master. On the release branch, I'd prefer to leave
> > treesit-check-indent alone.
>
> Has this patch been pushed to master?
No, I don't think so.
> Should I close this report?
If you agree with the change, please install it.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60001
; Package
emacs
.
(Mon, 04 Sep 2023 20:03:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 60001 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Yuan Fu <casouri <at> gmail.com>
>> Date: Sat, 7 Jan 2023 15:13:54 -0800
>> Cc: Daniel Martín <mardani29 <at> yahoo.es>,
>> 60001 <at> debbugs.gnu.org
>>
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> >> Date: Mon, 12 Dec 2022 11:53:00 +0100
>> >> From: Daniel Martín via "Bug reports for GNU Emacs,
>> >> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> >>
>> >> The treesit-check-indent command is not really related to Tree-sitter
>> >> and could be in a more general place than treesit.el. WDYT?
>> >
>> > I agree, but then we'd need a definition for it that doesn't need
>> > tree-sitter support. Is that easy to provide?
>> >
>> >> In any case, I have a patch to improve this command a bit by offering
>> >> more accurate completion for major modes, not Emacs commands. I have
>> >> also tried to improve its documentation a bit.
>> >
>> > How about a read-major-mode function in subr.el?
>> >
>> > But I think all these generalizations and improvements should go to
>> > master. On the release branch, I'd prefer to leave
>> > treesit-check-indent alone.
>>
>> Has this patch been pushed to master?
>
> No, I don't think so.
>
>> Should I close this report?
>
> If you agree with the change, please install it.
It seems like this patch was never installed. Should it be?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60001
; Package
emacs
.
(Tue, 05 Sep 2023 10:53:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 60001 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Mon, 4 Sep 2023 13:02:23 -0700
> Cc: Yuan Fu <casouri <at> gmail.com>, 60001 <at> debbugs.gnu.org, mardani29 <at> yahoo.es
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Should I close this report?
> >
> > If you agree with the change, please install it.
>
> It seems like this patch was never installed. Should it be?
I think so, yes.
Reply sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
You have taken responsibility.
(Tue, 05 Sep 2023 20:42:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Daniel Martín <mardani29 <at> yahoo.es>
:
bug acknowledged by developer.
(Tue, 05 Sep 2023 20:42:01 GMT)
Full text and
rfc822 format available.
Message #27 received at 60001-done <at> debbugs.gnu.org (full text, mbox):
Version: 30.1
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Stefan Kangas <stefankangas <at> gmail.com>
>> Date: Mon, 4 Sep 2023 13:02:23 -0700
>> Cc: Yuan Fu <casouri <at> gmail.com>, 60001 <at> debbugs.gnu.org, mardani29 <at> yahoo.es
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> >> Should I close this report?
>> >
>> > If you agree with the change, please install it.
>>
>> It seems like this patch was never installed. Should it be?
>
> I think so, yes.
Thanks, pushed to master as commit cd6dcfad107.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60001
; Package
emacs
.
(Wed, 06 Sep 2023 07:15:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 60001 <at> debbugs.gnu.org (full text, mbox):
>>> > If you agree with the change, please install it.
>>>
>>> It seems like this patch was never installed. Should it be?
>>
>> I think so, yes.
>
> Thanks, pushed to master as commit cd6dcfad107.
Would it be possible to avoid code duplication in
'treesit--read-major-mode' with the same code as in
'read-file-local-variable-mode'?
Maybe by creating a new core function to read a major mode?
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 04 Oct 2023 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 219 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.