[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 149e6e03b3: ; Avoid treesit-related byte-compilation warnings
From: |
Eli Zaretskii |
Subject: |
master 149e6e03b3: ; Avoid treesit-related byte-compilation warnings |
Date: |
Thu, 24 Nov 2022 14:24:51 -0500 (EST) |
branch: master
commit 149e6e03b3f860c3d78031bf3377d8a4c99a7a64
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Avoid treesit-related byte-compilation warnings
* lisp/progmodes/csharp-mode.el:
* lisp/progmodes/ts-mode.el: Declare treesit.c functions.
---
lisp/progmodes/csharp-mode.el | 5 +++++
lisp/progmodes/ts-mode.el | 2 ++
2 files changed, 7 insertions(+)
diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index c507de94e0..3ea894733f 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -32,6 +32,11 @@
(eval-when-compile
(require 'cc-fonts))
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-child-by-field-name "treesit.c")
+
(defgroup csharp nil
"Major mode for editing C# code."
:group 'prog-mode)
diff --git a/lisp/progmodes/ts-mode.el b/lisp/progmodes/ts-mode.el
index 436b198f59..bdef1c4576 100644
--- a/lisp/progmodes/ts-mode.el
+++ b/lisp/progmodes/ts-mode.el
@@ -28,6 +28,8 @@
(require 'rx)
(require 'js)
+(declare-function treesit-parser-create "treesit.c")
+
(defcustom ts-mode-indent-offset 2
"Number of spaces for each indentation step in `ts-mode'."
:version "29.1"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 149e6e03b3: ; Avoid treesit-related byte-compilation warnings,
Eli Zaretskii <=