emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/treesit-fold d3665fd07a 013/417: update readme


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold d3665fd07a 013/417: update readme
Date: Mon, 1 Jul 2024 10:02:05 -0400 (EDT)

branch: elpa/treesit-fold
commit d3665fd07a444881af57d57138c1602483805564
Author: Junyi Hou <junyi.yi.hou@gmail.com>
Commit: Junyi Hou <junyi.yi.hou@gmail.com>

    update readme
---
 readme.org | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/readme.org b/readme.org
index 0362522208..2e32168652 100644
--- a/readme.org
+++ b/readme.org
@@ -68,12 +68,10 @@ Following the following steps to build additional grammar 
for ~emacs-tree-sitter
 2. add new grammar repos to ~tree-sitter-langs-git-dir~. In the case of ~R~, 
run
    #+begin_src emacs-lisp
      ;; make sure I do not re-add the submodule multiple times
-     (condition-case _
-         (tree-sitter-langs--repo-status 'r)
-       (error
-        (let ((default-directory tree-sitter-langs-git-dir))
-          (tree-sitter-langs--call
-           "git" "submodule" "add" "https://github.com/r-lib/tree-sitter-r"; 
"repos/r"))))
+     (unless (f-exists-p (concat tree-sitter-langs-git-dir "/repos/r"))
+       (let ((default-directory tree-sitter-langs-git-dir))
+         (tree-sitter-langs--call
+          "git" "submodule" "add" "https://github.com/r-lib/tree-sitter-r"; 
"repos/r")))
    #+end_src
 
 3. compile the new grammar parser by running



reply via email to

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