From: Yuan Fu Date: Tue, 18 Oct 2022 20:24:37 +0000 (-0700) Subject: Rename tree-sitter group to treesit X-Git-Tag: emacs-29.0.90~1811 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=85073998cb47567cb30fb41f12135bd799ad2588;p=emacs.git Rename tree-sitter group to treesit * lisp/treesit.el (tree-sitter): Rename to treesit. (treesit-mode) (global-treesit-mode): Use treesit group. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index cc280f5a5e4..aadcc729d48 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -35,12 +35,11 @@ ;;; Activating tree-sitter -;; Per our naming guideline, we use "tree-sitter" when referring to it -;; as a name and only use "treesit" for prefix. Since a group name is -;; not a prefix, we use "tree-sitter" here. -(defgroup tree-sitter - nil - "Tree-sitter is an incremental parser." +;; Tree-sitter always appear as treesit in symbols. +(defgroup treesit nil + "Incremental parser. +It is used to enhance major mode features like font-lock, +indent, imenu, etc." :group 'tools :version "29.1") @@ -76,7 +75,7 @@ actual activation of tree-sitter functionalities depends on whether the major mode supports tree-sitter, availability of specific tree-sitter language definition, etc." :version "29.1" - :group 'languages + :group 'treesit (when major-mode-backend-function (funcall major-mode-backend-function (if treesit-mode 'treesit 'elisp) @@ -96,7 +95,8 @@ turned off, so we record each (MODE . NEW-MODE) in this variable.") ;;;###autoload (define-globalized-minor-mode global-treesit-mode treesit-mode global-treesit-mode--turn-on - :group 'languages + :version "29.1" + :group 'treesit :predicate t (when (not global-treesit-mode) (dolist (map treesit-remapped-major-mode-alist)