bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#61051: treesit-install-language-grammar can provide the default repo


From: Dmitry Gutov
Subject: bug#61051: treesit-install-language-grammar can provide the default repository URL
Date: Wed, 25 Jan 2023 05:23:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

The format https://github.com/tree-sitter/tree-sitter-%s will work for a lot of languages, and the user won't even have to search for the address.

The patch can look like this:

diff --git a/lisp/treesit.el b/lisp/treesit.el
index 660039cc7cc..c1b98d085e8 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -2708,7 +2708,8 @@ treesit--install-language-grammar-build-recipe
       (list
        lang
        (read-string
-        "Enter the URL of the Git repository of the language grammar: ")
+        "Enter the URL of the Git repository of the language grammar: "
+        (format "https://github.com/tree-sitter/tree-sitter-%s"; lang))
        (empty-string-to-nil
         (read-string
          "Enter the tag or branch (default: default branch): "))





reply via email to

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