From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Randy Taylor <dev@rjt.dev>
Cc: Yuan Fu <casouri@gmail.com>, Eli Zaretskii <eliz@gnu.org>,
60025@debbugs.gnu.org
Subject: bug#60025: [PATCH] Add go-ts-mode and go-mod-ts-mode
Date: Thu, 15 Dec 2022 20:59:12 +0100 [thread overview]
Message-ID: <87y1r8zbe7.fsf@thornhill.no> (raw)
In-Reply-To: <XxSPJy0SYJed8QMZvslGSHMKf-GFFRyASofwqVol7efmVajXviZ3EuKVJV8L8_tmlHZm-5UOGSwOZuKSUZH0dBxuXQ2vYONlbK6KLikUJpI=@rjt.dev>
Randy Taylor <dev@rjt.dev> writes:
> On Thursday, December 15th, 2022 at 13:06, Theodor Thornhill <theo@thornhill.no> wrote:
>>
>> On 15 December 2022 17:40:54 CET, Randy Taylor dev@rjt.dev wrote:
>>
>> > Which rules should I add?
>>
>>
>> I like to set no-indent in a comment so that indentation commands don't format. That should be fillings job, imo :)
>
> I don't know if I agree with that since the indentation commands should format comments if they are formatted incorrectly.
>
> Fillings as in auto-fill-mode and the fill commands? I'm not familiar with those, beyond invoking fill-region and whatnot every now and then. I don't think any of that stuff is on by default though, right? It all requires manual invocation?
>
>>
>> > I see these rules in some of the ts modes:
>> > ((and (parent-is "comment") comment-end) comment-start -1)
>> > ((parent-is "comment") comment-start-skip 0)
>> >
>> > What are they matching? When could a comment be a parent?
>>
>>
>> In some languages comment has a parent which is a comment. Just use inspect-mode inside of a comment and see what makes sense :)
>
> c-ts-mode has those queries and I was never able to get a comment node as a parent so I guess they were either copy-pasted mistakenly or I am missing the magical invocation?
>
> Aside from the aforementioned queries, I don't see any other comment-related indentation queries in any of the modes, and I can't think of any that should be introduced, at least for these modes.
>
> Patch OK to install otherwise?
Sure :-)
Theo
next prev parent reply other threads:[~2022-12-15 19:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 2:13 bug#60025: [PATCH] Add go-ts-mode and go-mod-ts-mode Randy Taylor
2022-12-13 12:25 ` Eli Zaretskii
2022-12-13 19:39 ` Randy Taylor
2022-12-14 12:02 ` Eli Zaretskii
2022-12-14 16:21 ` Randy Taylor
2022-12-14 19:55 ` Yuan Fu
2022-12-14 20:54 ` Randy Taylor
2022-12-14 21:27 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-14 21:56 ` Randy Taylor
2022-12-15 2:15 ` Randy Taylor
2022-12-15 7:20 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-15 16:40 ` Randy Taylor
2022-12-15 18:06 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-15 19:45 ` Randy Taylor
2022-12-15 19:59 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-12-15 20:09 ` Randy Taylor
2022-12-15 22:22 ` Randy Taylor
2022-12-14 2:22 ` Yuan Fu
2022-12-16 1:22 ` Yuan Fu
2022-12-16 2:05 ` Randy Taylor
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y1r8zbe7.fsf@thornhill.no \
--to=bug-gnu-emacs@gnu.org \
--cc=60025@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=dev@rjt.dev \
--cc=eliz@gnu.org \
--cc=theo@thornhill.no \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).