GNU bug report logs - #59528
[PATCH] Fix "void-function treesit-font-lock-rules" error

Previous Next

Package: emacs;

Reported by: Shohei YOSHIDA <syohex <at> gmail.com>

Date: Thu, 24 Nov 2022 03:20:02 UTC

Severity: normal

Tags: patch

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59528 in the body.
You can then email your comments to 59528 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59528; Package emacs. (Thu, 24 Nov 2022 03:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shohei YOSHIDA <syohex <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 Nov 2022 03:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shohei YOSHIDA <syohex <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Shohei YOSHIDA <syohex <at> gmail.com>
Subject: [PATCH] Fix "void-function treesit-font-lock-rules" error
Date: Thu, 24 Nov 2022 12:18:48 +0900
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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59528; Package emacs. (Thu, 24 Nov 2022 03:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 59528 <at> debbugs.gnu.org (full text, mbox):

From: Shohei Yoshida <syohex <at> gmail.com>
To: 59528 <at> debbugs.gnu.org
Subject: Re: bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules"
 error
Date: Thu, 24 Nov 2022 12:30:06 +0900
[Message part 1 (text/plain, inline)]
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 <at> 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 <at> 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>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59528; Package emacs. (Thu, 24 Nov 2022 03:53:02 GMT) Full text and rfc822 format available.

Message #11 received at 59528 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Shohei Yoshida <syohex <at> gmail.com>
Cc: 59528 <at> debbugs.gnu.org, 59528-done <at> debbugs.gnu.org
Subject: Re: bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules"
 error
Date: Wed, 23 Nov 2022 19:51:56 -0800

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

Thanks! this should be fixed now.

Yuan



Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Thu, 24 Nov 2022 03:53:02 GMT) Full text and rfc822 format available.

Notification sent to Shohei YOSHIDA <syohex <at> gmail.com>:
bug acknowledged by developer. (Thu, 24 Nov 2022 03:53:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Dec 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.