From: Yuan Fu Date: Mon, 10 Oct 2022 03:54:19 +0000 (-0700) Subject: Add :version tag for new tree-sitter custom options X-Git-Tag: emacs-29.0.90~1849 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aaaa4ca77e440499ec852069efaea42410ebe30b;p=emacs.git Add :version tag for new tree-sitter custom options * lisp/progmodes/python.el (python-use-tree-sitter): Add version tag. * lisp/treesit.el (treesit): (treesit-max-buffer-size): Add version tag. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d87789fd773..a0466707e60 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -290,7 +290,8 @@ "If non-nil, `python-mode' tries to use tree-sitter. Currently `python-mode' uses tree-sitter for font-locking, imenu, and movement functions." - :type 'boolean) + :type 'boolean + :version "29.1") (defcustom python-interpreter "python" "Python interpreter for noninteractive use. diff --git a/lisp/treesit.el b/lisp/treesit.el index 7132f1d5ee6..f2e7f478b3f 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -34,11 +34,13 @@ (defgroup treesit nil "Tree-sitter is an incremental parser." - :group 'tools) + :group 'tools + :version "29.1") (defcustom treesit-max-buffer-size (* 4 1024 1024) - "Maximum buffer size for enabling tree-sitter parsing." - :type 'integer) + "Maximum buffer size for enabling tree-sitter parsing (in bytes)." + :type 'integer + :version "29.1") (defun treesit-available-p () "Return non-nil if tree-sitter features are available."