emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/tree-sitter 85073998cb 3/3: Rename tree-sitter group to treesit


From: Yuan Fu
Subject: feature/tree-sitter 85073998cb 3/3: Rename tree-sitter group to treesit
Date: Tue, 18 Oct 2022 16:33:44 -0400 (EDT)

branch: feature/tree-sitter
commit 85073998cb47567cb30fb41f12135bd799ad2588
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Rename tree-sitter group to treesit
    
    * lisp/treesit.el (tree-sitter): Rename to treesit.
    (treesit-mode)
    (global-treesit-mode): Use treesit group.
---
 lisp/treesit.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index cc280f5a5e..aadcc729d4 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]