From 47e014ff90ef7da7d91cd384b78c85f4198df193 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 5 May 2026 11:42:12 +0300 Subject: [PATCH] ; Fix byte-compilation warnings in markdown-ts-mode * lisp/textmodes/markdown-ts-mode-x.el: Use 'treesit-declare-unavailable-functions'. * lisp/treesit.el (treesit-declare-unavailable-functions): Add declaration. --- lisp/textmodes/markdown-ts-mode-x.el | 2 ++ lisp/treesit.el | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lisp/textmodes/markdown-ts-mode-x.el b/lisp/textmodes/markdown-ts-mode-x.el index 7405078ab4b..1327191828e 100644 --- a/lisp/textmodes/markdown-ts-mode-x.el +++ b/lisp/textmodes/markdown-ts-mode-x.el @@ -91,6 +91,8 @@ The function is called with one argument, the file name." (defconst markdown-ts--convert-output-buffer "*markdown-ts-convert output*") +(treesit-declare-unavailable-functions) + (defvar markdown-ts-converters (list (cons 'html diff --git a/lisp/treesit.el b/lisp/treesit.el index baebdbb31dc..c03740159c7 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -131,6 +131,8 @@ in a Emacs not built with tree-sitter library." (declare-function treesit-available-p "treesit.c") + (declare-function treesit-parser-remove-notifier "treesit.c") + (defvar treesit-thing-settings) (defvar treesit-major-mode-remap-alist) (defvar treesit-extra-load-path)))