unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Shohei Yoshida <syohex@gmail.com>
To: 59528@debbugs.gnu.org
Subject: bug#59528: [PATCH] Fix "void-function treesit-font-lock-rules" error
Date: Thu, 24 Nov 2022 12:30:06 +0900	[thread overview]
Message-ID: <CAFX6MON_iWO7eqXSa=n8jT7HWB=17w79kdXhivNm=+94vk0MDA@mail.gmail.com> (raw)
In-Reply-To: <20221124031848.1487279-1-syohex@gmail.com>

[-- 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 --]

  reply	other threads:[~2022-11-24  3:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-11-24  3:51   ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFX6MON_iWO7eqXSa=n8jT7HWB=17w79kdXhivNm=+94vk0MDA@mail.gmail.com' \
    --to=syohex@gmail.com \
    --cc=59528@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).