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

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

bug#74367: [PATCH] c-ts-mode.el: Adjust doc about how to change default


From: Eli Zaretskii
Subject: bug#74367: [PATCH] c-ts-mode.el: Adjust doc about how to change default modes
Date: Mon, 18 Nov 2024 14:09:22 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: stefankangas@gmail.com,  74367@debbugs.gnu.org,  acm@muc.de
> Date: Sun, 17 Nov 2024 17:19:28 -0500
> 
> So, for `emacs-30` I propose the patch below.
> Any objection?

No objections, provided that you replace

  (require 'c-ts-mode)

with

  (load "c-ts-mode")

since, as we now understand, just 'require' might not do anything.

> @@ -1496,7 +1496,6 @@ c-or-c++-ts-mode
>                   '(c++-mode . c++-ts-mode)))
>  
>  (when (treesit-ready-p 'c)
> -  (add-to-list 'major-mode-remap-defaults '(c++-mode . c++-ts-mode))
>    (add-to-list 'major-mode-remap-defaults '(c-mode . c-ts-mode)))
>  
>  (when (and (treesit-ready-p 'cpp)

Please leave this part alone in the meantime, as long as bug#74339 is
being discussed and is not resolved.  The resolution of that bug will
also handle this nit.





reply via email to

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