From 44c2befb4a36391f17ee8f3539dee7be62df89f0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 11 May 2023 16:25:46 +0300 Subject: [PATCH] ; Fix byte-compilation warnings in --without-x build * lisp/x-dnd.el (mwheel): * lisp/term/haiku-win.el (mwheel): Require. * lisp/progmodes/prog-mode.el (treesit-node-at): * lisp/dynamic-setting.el (reconsider-frame-font): Declare. (Bug#63415) --- lisp/dynamic-setting.el | 1 + lisp/progmodes/prog-mode.el | 1 + lisp/term/haiku-win.el | 3 +++ lisp/x-dnd.el | 3 +++ 4 files changed, 8 insertions(+) diff --git a/lisp/dynamic-setting.el b/lisp/dynamic-setting.el index 9ce09657345..ebe25ab9c75 100644 --- a/lisp/dynamic-setting.el +++ b/lisp/dynamic-setting.el @@ -33,6 +33,7 @@ ;;; Customizable variables (declare-function font-get-system-font "xsettings.c" ()) +(declare-function reconsider-frame-font "frame.c" ()) (defvar font-use-system-font) diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el index 04071703184..a434c7e9058 100644 --- a/lisp/progmodes/prog-mode.el +++ b/lisp/progmodes/prog-mode.el @@ -36,6 +36,7 @@ (declare-function treesit-available-p "treesit.c") (declare-function treesit-parser-list "treesit.c") (declare-function treesit-node-type "treesit.c") +(declare-function treesit-node-at "treesit.c") (defgroup prog-mode nil "Generic programming mode, from which others derive." diff --git a/lisp/term/haiku-win.el b/lisp/term/haiku-win.el index ae5a2f2fc6b..50c9cb5b9d4 100644 --- a/lisp/term/haiku-win.el +++ b/lisp/term/haiku-win.el @@ -36,6 +36,9 @@ (require 'menu-bar) (require 'fontset) (require 'dnd) +;; For when building a --without-x configuration, where this is not +;; preloaded. +(eval-when-compile (require 'mwheel)) (add-to-list 'display-format-alist '(".*" . haiku)) diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el index acfbbed9677..b87fc97f8fd 100644 --- a/lisp/x-dnd.el +++ b/lisp/x-dnd.el @@ -31,6 +31,9 @@ ;;; Code: (require 'dnd) +;; For when building a --without-x configuration, where this is not +;; preloaded. +(eval-when-compile (require 'mwheel)) ;;; Customizable variables (defcustom x-dnd-test-function #'x-dnd-default-test-function -- 2.39.2