Subject: Re: bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error

From: Shohei Yoshida <[email-masked]>
Date: Thu, 24 Nov 2022 12:30:06 +0900

How to reproduce this bug

1. emacs -Q a.cs
2. You get an error. File mode specification error: (void-function
treesit-font-lock-rules)

I use d47e05219f963c28be3b018f31d232aa8eeb200f revision

On Thu, Nov 24, 2022 at 12:20 PM Shohei YOSHIDA <[email-masked]> wrote:

> Load treesit for using its functions
> ---
>  lisp/progmodes/csharp-mode.el | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
> index 23d7b05d50..c507de94e0 100644
> --- a/lisp/progmodes/csharp-mode.el
> +++ b/lisp/progmodes/csharp-mode.el
> @@ -27,6 +27,7 @@
>  (require 'compile)
>  (require 'cc-mode)
>  (require 'cc-langs)
> +(require 'treesit)
>
>  (eval-when-compile
>    (require 'cc-fonts))
> --
> 2.37.2
>
>
>
>
>

-- 
Shohei YOSHIDA([email-masked])
<http://b.hatena.ne.jp/entry/https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.ja.tLQrNXCHmdo.O/m=m_i,t,it/am=nBHH5b_7g8gZ7tIn1f7977tLmp39J3_3JgBC2Amo_5v9P4jWA_ug_FA/rt=h/d=1/t=zcms/rs=AItRSTNJwrjV1i8LKqdsHFfbx47Tnlb-Bw>