From 5f4fce2f54c758e233fa069b39eb008f93d15e42 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:58:16 -0500 Subject: [PATCH] =?UTF-8?q?Fixes=20#79:=20Native-compiler=20warning:=20The?= =?UTF-8?q?=20function=20=E2=80=98smie-config-guess=E2=80=99=20is=20not=20?= =?UTF-8?q?known=20to=20be=20defined.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dtrt-indent.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dtrt-indent.el b/dtrt-indent.el index 83bb0be..c3dff31 100644 --- a/dtrt-indent.el +++ b/dtrt-indent.el @@ -199,8 +199,9 @@ adjusted transparently." (if dtrt-indent-mode (if (and (boundp 'smie-grammar) (not (null smie-grammar)) (not (eq smie-grammar 'unset))) (progn - ;; FIXME: Emacs warns about unbound identifiers: https://github.com/jscheid/dtrt-indent/issues/79 - (when (null smie-config--buffer-local) (smie-config-guess)) + (when (and (null smie-config--buffer-local) + (fboundp 'smie-config-guess)) + (smie-config-guess)) (when (bound-and-true-p dtrt-indent-run-after-smie) (dtrt-indent-try-set-offset))) (dtrt-indent-try-set-offset))