From: Juri Linkov <juri@linkov.net>
To: Yuan Fu <casouri@gmail.com>
Cc: 60888@debbugs.gnu.org, Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#60888: 29.0.60; Lost c-or-c++-ts-mode
Date: Fri, 20 Jan 2023 09:57:09 +0200 [thread overview]
Message-ID: <86mt6d4o3e.fsf@mail.linkov.net> (raw)
In-Reply-To: <36C3AE10-1F2E-428D-AE5B-2ADF1732433C@gmail.com> (Yuan Fu's message of "Thu, 19 Jan 2023 13:57:17 -0800")
close 60882 29.0.60
close 60888 29.0.60
thanks
>>> I started to rely on c-or-c++-ts-mode because there is no other replacement
>>> to use for such mappings in init files:
>>> (when (and (treesit-ready-p 'c t) (treesit-ready-p 'cpp t))
>>> (add-to-list 'major-mode-remap-alist '(c-or-c++-mode . c-or-c++-ts-mode)))
>>> c-or-c++-mode is activated for all .h files, so there should be the
>>> corresponding
>>> c-or-c++-ts-mode, but it's lost somewhere in emacs-29.
>>
>> Apparently it was decided that it's a new feature, and thus too late
>> for emacs-29.
>
> I added it back. It really is a bug preventing one to use c(++)-ts-mode
> on header files. So this should be fine to add. Plus I mostly just
> copy-pasted from cc-mode. Sorry for the back-and-forth.
Thanks, so now closing.
PS: It's nice that you added such instructions to the commentary and docstrings:
;; (add-to-list 'major-mode-remap-alist '(c-or-c++-mode . c-or-c++-ts-mode))
Maybe it should be sufficient for emacs-29 and better than updating
user's auto-mode-alist automatically.
next prev parent reply other threads:[~2023-01-20 7:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-17 17:20 bug#60888: 29.0.60; Lost c-or-c++-ts-mode Juri Linkov
2023-01-17 18:22 ` Dmitry Gutov
2023-01-19 21:57 ` Yuan Fu
2023-01-20 7:57 ` Juri Linkov [this message]
2023-01-20 8:38 ` Eli Zaretskii
2023-01-20 22:19 ` Yuan Fu
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=86mt6d4o3e.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=60888@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=dgutov@yandex.ru \
/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).