GNU bug report logs - #62704
30.0.50; treesit-install-language-grammar should accept an arg to indicate the installation path.

Previous Next

Package: emacs;

Reported by: Nasy <nasyxx <at> gmail.com>

Date: Thu, 6 Apr 2023 22:07:01 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: nasyxx <at> gmail.com
Cc: 62704 <at> debbugs.gnu.org
Subject: bug#62704: 30.0.50; treesit-install-language-grammar should  accept an arg to  indicate the installation path.
Date: Wed, 12 Apr 2023 00:06:44 -0700
Nasy <nasyxx <at> gmail.com> writes:

> Hi,
>
> In treesit.el, the ~treesit-install-language-grammar~ function installs
> the grammar to the default path of
> ~treesit--install-language-grammar-1~, which is inconvenient for users
> who want to install the grammar to a custom path.  Adding an optional
> argument =PATH= to this function and changing the line below would be
> better.
>
>     (condition-case err
>         (apply #'treesit--install-language-grammar-1
>                ;; The nil is OUT-DIR.
> -               (cons nil recipe))
> +               (cons PATH recipe))
>       (error

Fair enough. I added a prompt at the end that asks for the target
directory. Please give it a try (I didn’t test it :-)

Yuan




This bug report was last modified 1 year and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.