From aaaa4ca77e440499ec852069efaea42410ebe30b Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sun, 9 Oct 2022 20:54:19 -0700 Subject: [PATCH] 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. --- lisp/progmodes/python.el | 3 ++- lisp/treesit.el | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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." -- 2.39.2