bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60888: 29.0.60; Lost c-or-c++-ts-mode


From: Yuan Fu
Subject: bug#60888: 29.0.60; Lost c-or-c++-ts-mode
Date: Thu, 19 Jan 2023 13:57:17 -0800

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 17/01/2023 19:20, Juri Linkov wrote:
>> 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.

Yuan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]