Subject: [PATCH] Fix warning compiling csharp-mode.el
From: Daniel Martín <[email-masked]>
To: [email-masked]
Date: Mon, 14 Aug 2023 22:07:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Tags: patch

This patch fixes a warning compiling Emacs, about treesit-query-capture
not defined.

In GNU Emacs 29.1 (build 1, aarch64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2023-07-30 built on
 armbob.lan
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6.7

Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules 'CFLAGS=-DFD_SETSIZE=10000
 -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=no'

From c34fbe331cab60b79eeb414daf93eb01231df95f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <[email-masked]>
Date: Mon, 14 Aug 2023 21:46:11 +0200
Subject: [PATCH] ; lisp/progmodes/csharp-mode.el (treesit-query-capture):
 Declare

---
 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 5291efda175..37bb84ab5ba 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -45,6 +45,7 @@
 (declare-function treesit-node-start "treesit.c")
 (declare-function treesit-node-type "treesit.c")
 (declare-function treesit-node-child-by-field-name "treesit.c")
+(declare-function treesit-query-capture "treesit.c")
 
 (defgroup csharp nil
   "Major mode for editing C# code."
-- 
2.40.1