all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error
@ 2022-11-24  3:18 Shohei YOSHIDA
  2022-11-24  3:30 ` Shohei Yoshida
  0 siblings, 1 reply; 3+ messages in thread
From: Shohei YOSHIDA @ 2022-11-24  3:18 UTC (permalink / raw)
  To: 59528; +Cc: Shohei YOSHIDA

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






^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error
  2022-11-24  3:18 bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error Shohei YOSHIDA
@ 2022-11-24  3:30 ` Shohei Yoshida
  2022-11-24  3:51   ` Yuan Fu
  0 siblings, 1 reply; 3+ messages in thread
From: Shohei Yoshida @ 2022-11-24  3:30 UTC (permalink / raw)
  To: 59528

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

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 <syohex@gmail.com> 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(syohex@gmail.com)
<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>

[-- Attachment #2: Type: text/html, Size: 1964 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error
  2022-11-24  3:30 ` Shohei Yoshida
@ 2022-11-24  3:51   ` Yuan Fu
  0 siblings, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2022-11-24  3:51 UTC (permalink / raw)
  To: Shohei Yoshida; +Cc: 59528, 59528-done



> On Nov 23, 2022, at 7:30 PM, Shohei Yoshida <syohex@gmail.com> wrote:
> 
> 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 <syohex@gmail.com> wrote:
> Load treesit for using its functions

Thanks! this should be fixed now.

Yuan




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-24  3:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24  3:18 bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error Shohei YOSHIDA
2022-11-24  3:30 ` Shohei Yoshida
2022-11-24  3:51   ` Yuan Fu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.