From: Eli Zaretskii <eliz@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: 60256@debbugs.gnu.org, wilhelm@floatpays.co.za
Subject: bug#60256: 29.0.60; Maybe improve tree sitter default treesit-language-at function
Date: Sun, 25 Dec 2022 08:40:35 +0200 [thread overview]
Message-ID: <83h6xk3s0s.fsf@gnu.org> (raw)
In-Reply-To: <ABFC83CF-9758-41BF-9993-210F507CC9C8@gmail.com> (message from Yuan Fu on Sat, 24 Dec 2022 14:43:18 -0800)
tags 60256 wontfix
thanks
> From: Yuan Fu <casouri@gmail.com>
> Date: Sat, 24 Dec 2022 14:43:18 -0800
> Cc: Wilhelm Hugo Kirschbaum <wilhelm@floatpays.co.za>,
> 60256@debbugs.gnu.org
>
>
> Yeah, sorry for the delay. I don’t think it’s worth it, because (1) I
> expect major modes with multiple langauges to implement
> treesit-language-at-point-function which takes care of all the work, and
> (2) in the rare case where there are multiple languages and no
> treesit-language-at-point-function, using the first language whose range
> spans point (this patch) is not necessarily correct: the host language (eg, HTML
> among HTML, CSS & JavaScript) always covers the whole buffer, only
> embedded languages has ranges.
OK, thanks.
next prev parent reply other threads:[~2022-12-25 6:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 10:30 bug#60256: 29.0.60; Maybe improve tree sitter default treesit-language-at function Wilhelm H Kirschbaum
2022-12-24 7:25 ` Eli Zaretskii
2022-12-24 22:43 ` Yuan Fu
2022-12-25 6:40 ` Eli Zaretskii [this message]
2023-09-02 16:41 ` Stefan Kangas
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=83h6xk3s0s.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=60256@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=wilhelm@floatpays.co.za \
/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).