Subject: bug#65673: [PATCH] Add lua-ts-mode

From: Eli Zaretskii <[email-masked]>
Date: Sat, 16 Sep 2023 14:17:09 +0300

> Resent-To: [email-masked]
> Cc: [email-masked], ~emacs/[email-masked], [email-masked],
>  [email-masked], [email-masked], [email-masked]
> Date: Sat, 16 Sep 2023 13:03:11 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> > Cc: john muhl <[email-masked]>, [email-masked], [email-masked],
> >  [email-masked], ~emacs/[email-masked]
> > Date: Mon, 11 Sep 2023 10:03:13 -0500
> > From:  john muhl via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <[email-masked]>
> > 
> > * lisp/progmodes/lua-ts-mode.el:
> > * test/lisp/progmodes/lua-ts-mode-resources/indent.erts:
> > * test/lisp/progmodes/lua-ts-mode-tests.el: New file.
> > * etc/NEWS: Mention new mode.
> > * lisp/progmodes/eglot.el (eglot-server-programs):
> > * lisp/progmodes/hideshow.el (hs-special-modes-alist): Support
> > lua-ts-mode.
> > * admin/notes/tree-sitter/build-module/batch.sh:
> > * admin/notes/tree-sitter/build-module/build.sh: Add Lua.
> > * test/infra/Dockerfile.emba:
> > * test/infra/test-jobs.yml: Include lua-ts-mode tests.
> 
> Thanks, installed on the master branch, and closing the bug.

However, this causes byte-compilation warnings on a system where
tree-sitter is not available:

  In end of data:
  progmodes/typescript-ts-mode.el:498:17: Warning: the function ‘treesit-node-end’ is not known to be defined.
  progmodes/typescript-ts-mode.el:497:17: Warning: the function ‘treesit-node-start’ is not known to be defined.
  progmodes/typescript-ts-mode.el:474:6: Warning: the function ‘treesit-query-compile’ is not known to be defined.

Could you please fix these warnings?