Skip to content

Commit

Permalink
Fixes #79: Native-compiler warning: The function ‘smie-config-guess’ …
Browse files Browse the repository at this point in the history
…is not known to be defined.
  • Loading branch information
jamescherti authored and rrthomas committed Jan 29, 2025
1 parent b68f199 commit 5f4fce2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dtrt-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5f4fce2

Please sign in to comment.