Skip to content

Commit

Permalink
Fix warning (native-compiler): The function ‘smie-config-guess’ is no…
Browse files Browse the repository at this point in the history
…t known to be defined.
  • Loading branch information
jamescherti committed Jan 29, 2025
1 parent d09b4c6 commit 7a429c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dtrt-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ adjusted transparently."
(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))
Expand Down

0 comments on commit 7a429c8

Please sign in to comment.