From unknown Sun Jun 22 00:21:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64295: [PATCH] treesit-install-language-grammar ignores out-dir Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jun 2023 07:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64295 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 64295@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168776374827136 (code B ref -1); Mon, 26 Jun 2023 07:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jun 2023 07:15:48 +0000 Received: from localhost ([127.0.0.1]:44222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDgRu-00073V-TB for submit@debbugs.gnu.org; Mon, 26 Jun 2023 03:15:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:48628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDaTF-0004Ge-0H for submit@debbugs.gnu.org; Sun, 25 Jun 2023 20:52:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDaTE-0006Iq-Nz for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 20:52:44 -0400 Received: from out-3.mta0.migadu.com ([91.218.175.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDaTC-0000R7-Ko for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 20:52:44 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1687740758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=D5dKa2jWOQzpn50+SJKyLQKJZGiWjCXcxFtJq6x8vOk=; b=nEjB7d579HUIxCzZQC5y22fzvk/L3bC199pYApwtANUlgKxM+k+RbS0xFYGo8QO/8hxJas Q1BooHKYgaIyStdJm+N+1XH+zRRZo93yXFM4rqh7ky3L1hEd/QkuAyKn3Wz7D1CQn0ebkC 99K9GXtFNhejYY28UkdyaOPYCONtLuM= From: john muhl Date: Sun, 25 Jun 2023 19:43:18 -0500 Message-ID: <87ttuvhwob.fsf@pub.pink> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.3; envelope-from=jm@pub.pink; helo=out-3.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Mon, 26 Jun 2023 03:15:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Running interactively from emacs -Q: M-x t-i-l-g RET bash RET y RET RET RET RET RET ~/tmp/tree-sitter RET installs to user-emacs-directory/tree-sitter instead of the supplied directory. Here=E2=80=99s the tiny change to make it work. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-Fix-treesit-install-language-grammar-for-custom-ou.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] Fix treesit-install-language-grammar for custom out-dir >From 6d38e4c74488d424c2563ff57d963cadf24531f7 Mon Sep 17 00:00:00 2001 From: john muhl Date: Sun, 25 Jun 2023 19:38:08 -0500 Subject: [PATCH] Fix treesit-install-language-grammar for custom out-dir MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit M-x t-i-l-g RET bash RET y RET RET RET RET RET ~/tmp/tree-sitter RET installs to user-emacs-directory/tree-sitter instead of the supplied directory. Here=E2=80=99s the tiny patch to make it work. --- lisp/treesit.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index df13dd9f424..81920834329 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -3094,8 +3094,7 @@ treesit-install-language-grammar (condition-case err (progn (apply #'treesit--install-language-grammar-1 - ;; The nil is OUT-DIR. - (cons nil recipe)) + (cons out-dir recipe)) =20 ;; Check that the installed language grammar is loadable. (pcase-let ((`(,available . ,err) --=20 2.41.0 --=-=-=-- From unknown Sun Jun 22 00:21:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64295: [PATCH] treesit-install-language-grammar ignores out-dir Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2023 05:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64295 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: john muhl , Yuan Fu Cc: 64295@debbugs.gnu.org Received: via spool by 64295-submit@debbugs.gnu.org id=B64295.168801718316196 (code B ref 64295); Thu, 29 Jun 2023 05:40:02 +0000 Received: (at 64295) by debbugs.gnu.org; 29 Jun 2023 05:39:43 +0000 Received: from localhost ([127.0.0.1]:52078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEkNX-0004D6-HH for submit@debbugs.gnu.org; Thu, 29 Jun 2023 01:39:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEkNR-0004Cq-L4 for 64295@debbugs.gnu.org; Thu, 29 Jun 2023 01:39:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEkNI-0005qj-Pg; Thu, 29 Jun 2023 01:39:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=s8kvRtjH2L/Ds1eAXhWNMgdShS8hReZZ28IVx4PTHxs=; b=I+RM+L8nsgBDHgrxLhu1 Kcb9/3sTkHEHo+gMkY0FuYggIHZ5thxwzq0R9R1EUoqugAXJ+Dg9qBnUk5en/kAOl2Pi+t3OrVkq5 rgabbWqPrj9dVujLzhwOkTjbDDk6ykvv3CnEgtaNEYFMJj+3HOf8hrfqSOpQibEgwlSIDLSwpfmUZ 2xGiVTE1NoGym2nnHDPi/213u8uIJmmH5DRWWUe3FEiXflhpXgvQTwCquY87MM76K4JzakM2mR94i kZdLa8MIMU3JgPqS4gvLzkAyHaI0mrAHyuTWXrocTlXiGMqJ8d3g2M330LIrqIHiJ93BCnvilEkzQ E9qHfNXv/ebJ0g==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEkNI-00021s-3L; Thu, 29 Jun 2023 01:39:24 -0400 Date: Thu, 29 Jun 2023 08:39:50 +0300 Message-Id: <83pm5eu8rd.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87ttuvhwob.fsf@pub.pink> (bug-gnu-emacs@gnu.org) References: <87ttuvhwob.fsf@pub.pink> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 25 Jun 2023 19:43:18 -0500 > From: john muhl via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Running interactively from emacs -Q: > > M-x t-i-l-g RET bash RET y RET RET RET RET RET ~/tmp/tree-sitter RET > > installs to user-emacs-directory/tree-sitter instead of the supplied > directory. > > Here’s the tiny change to make it work. Yuan, are you looking into this? AFAIU, this is for the master branch. From unknown Sun Jun 22 00:21:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64295: [PATCH] treesit-install-language-grammar ignores out-dir Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2023 16:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64295 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 64295@debbugs.gnu.org, Yuan Fu Received: via spool by 64295-submit@debbugs.gnu.org id=B64295.168805709131746 (code B ref 64295); Thu, 29 Jun 2023 16:45:02 +0000 Received: (at 64295) by debbugs.gnu.org; 29 Jun 2023 16:44:51 +0000 Received: from localhost ([127.0.0.1]:53940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEulF-0008Fv-Jz for submit@debbugs.gnu.org; Thu, 29 Jun 2023 12:44:51 -0400 Received: from out-59.mta1.migadu.com ([95.215.58.59]:33851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEtcc-0006AW-IN for 64295@debbugs.gnu.org; Thu, 29 Jun 2023 11:31:52 -0400 References: <87ttuvhwob.fsf@pub.pink> <83pm5eu8rd.fsf@gnu.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1688052709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n9IDGwamhDVvkYdwNZWxVUlxbHUueRXKZAtmbWyJg/Y=; b=ntAU8bqXW2QeG02whwa58ZGQX2U6iB9UW2AKfKzgVhZ89WjmVdMAGpBBt5rP1ksBRmTIT4 GM4XS8/11Ma1Zp8xcYaPn/COW838pYSGCwC0A9upndXq5OkbLQBqOVcbjp8+a5oz2WkI12 8yTEQigRwE1T2vTmr4pjGqPd++dQLL0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: john muhl Date: Thu, 29 Jun 2023 10:30:30 -0500 In-reply-to: <83pm5eu8rd.fsf@gnu.org> Message-ID: <87o7kyp9nh.fsf@pub.pink> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Thu, 29 Jun 2023 12:44:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > AFAIU, this is for the master branch. Sorry for omitting that but master is correct. From unknown Sun Jun 22 00:21:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: john muhl Subject: bug#64295: closed (Re: bug#64295: [PATCH] treesit-install-language-grammar ignores out-dir) Message-ID: References: <1C1A7E02-E643-491D-BCC7-8714D08EC534@gmail.com> <87ttuvhwob.fsf@pub.pink> X-Gnu-PR-Message: they-closed 64295 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 64295@debbugs.gnu.org Date: Thu, 29 Jun 2023 19:05:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1688065502-14138-1" This is a multi-part message in MIME format... ------------=_1688065502-14138-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #64295: [PATCH] treesit-install-language-grammar ignores out-dir which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 64295@debbugs.gnu.org. --=20 64295: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64295 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1688065502-14138-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 64295-done) by debbugs.gnu.org; 29 Jun 2023 19:04:21 +0000 Received: from localhost ([127.0.0.1]:54035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEwwG-0003f7-Se for submit@debbugs.gnu.org; Thu, 29 Jun 2023 15:04:21 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:54459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEwwE-0003et-B6 for 64295-done@debbugs.gnu.org; Thu, 29 Jun 2023 15:04:20 -0400 Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-557790487feso764864a12.0 for <64295-done@debbugs.gnu.org>; Thu, 29 Jun 2023 12:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688065452; x=1690657452; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oylsyZXFu5Mp6COU1HaVTVzC0nCyivY6xJYuvSXN8+g=; b=JYVL1MuqLLnLfdSqBBC6HPn8KGV5y0haUjNghAoOfIWq+TQ1+G46pQk4+wr1484VNa +bSxxfJ1kMDF2Tul2cg60D3uqQjeUve/u8emMRAUJFvCsATqqKCAULnZ5Za36aHUa3oy WcxJW96NfixsclzIdiEDKQWOOsI1Mmb2D+rbgsrMCcQv/91362e9qONBS1bwy5cDe7hq CRn05I/EGPhOzhp0YEP+xcs7vorNSnLKCHA4/uPVlbMvQw2PJlYOrWh9RfEhziVBw0PA 5dxAGum8EMToZp5OSyxqWZMReZ1dJ+GAHuLw3HjNd4OboSgC0VYi4KgBeZXuYlrVi5XJ s/3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688065452; x=1690657452; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oylsyZXFu5Mp6COU1HaVTVzC0nCyivY6xJYuvSXN8+g=; b=hOLHFCM8JxTVI3Exq283iuLAF3LWSRmoCrBAUby/88XEtO3vQtoUe9DARsuCNUswdg dE7eKbiKP7b8EFn9uCbd0VLFrKICW0Dk3HMS/EBYIg2C2xMtZPnexhYF+CXejbiwYd9M 4pGZ2BVjD0aBd/3mMH1yeOcU53eyWPeEBImeHnv6MpQKicSbAGKvHjbs5N5vwMizHMRi ntKC16KhsSC2kYq9cMDw5XmwBFsfGyzk0rslGw2FCLoKjCyO/CBVa4VQHXFkOq3L+uwo hAkhGE0D6KFTrxngsu46ZKEVfcmWc8ShhZR7ThSpjSu582Vpbdff3uxTvJXAW+kLsHQg W8FQ== X-Gm-Message-State: AC+VfDydiya7KnB66oBFw5dKdiccTxaXMSPo9V+GNJOqAV4Q4T7WSS64 kpf1HV/MxaHuSb6cMb2SL+A= X-Google-Smtp-Source: ACHHUZ4hOqjsAmBb758Ah9LPCAwVv4XXCa6QKNu6Fr5uktaibC2tPjEZ0n5IGl4/LskkUELkacOBVQ== X-Received: by 2002:a05:6a20:a10c:b0:11d:9307:8acb with SMTP id q12-20020a056a20a10c00b0011d93078acbmr418223pzk.45.1688065452147; Thu, 29 Jun 2023 12:04:12 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id t4-20020a62ea04000000b0064d27a28451sm8631294pfh.100.2023.06.29.12.04.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jun 2023 12:04:11 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: bug#64295: [PATCH] treesit-install-language-grammar ignores out-dir From: Yuan Fu In-Reply-To: <87o7kyp9nh.fsf@pub.pink> Date: Thu, 29 Jun 2023 12:03:59 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1C1A7E02-E643-491D-BCC7-8714D08EC534@gmail.com> References: <87ttuvhwob.fsf@pub.pink> <83pm5eu8rd.fsf@gnu.org> <87o7kyp9nh.fsf@pub.pink> To: john muhl X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64295-done Cc: Eli Zaretskii , 64295-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jun 29, 2023, at 8:30 AM, john muhl wrote: >=20 > Eli Zaretskii writes: >=20 >> AFAIU, this is for the master branch. >=20 > Sorry for omitting that but master is correct. Thanks, the fix is right, and the problem is on master. I=E2=80=99ve = pushed the fix. Yuan= ------------=_1688065502-14138-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jun 2023 07:15:48 +0000 Received: from localhost ([127.0.0.1]:44222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDgRu-00073V-TB for submit@debbugs.gnu.org; Mon, 26 Jun 2023 03:15:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:48628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDaTF-0004Ge-0H for submit@debbugs.gnu.org; Sun, 25 Jun 2023 20:52:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDaTE-0006Iq-Nz for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 20:52:44 -0400 Received: from out-3.mta0.migadu.com ([91.218.175.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDaTC-0000R7-Ko for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 20:52:44 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1687740758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=D5dKa2jWOQzpn50+SJKyLQKJZGiWjCXcxFtJq6x8vOk=; b=nEjB7d579HUIxCzZQC5y22fzvk/L3bC199pYApwtANUlgKxM+k+RbS0xFYGo8QO/8hxJas Q1BooHKYgaIyStdJm+N+1XH+zRRZo93yXFM4rqh7ky3L1hEd/QkuAyKn3Wz7D1CQn0ebkC 99K9GXtFNhejYY28UkdyaOPYCONtLuM= From: john muhl To: bug-gnu-emacs@gnu.org Subject: [PATCH] treesit-install-language-grammar ignores out-dir Date: Sun, 25 Jun 2023 19:43:18 -0500 Message-ID: <87ttuvhwob.fsf@pub.pink> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.3; envelope-from=jm@pub.pink; helo=out-3.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 26 Jun 2023 03:15:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Running interactively from emacs -Q: M-x t-i-l-g RET bash RET y RET RET RET RET RET ~/tmp/tree-sitter RET installs to user-emacs-directory/tree-sitter instead of the supplied directory. Here=E2=80=99s the tiny change to make it work. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-Fix-treesit-install-language-grammar-for-custom-ou.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] Fix treesit-install-language-grammar for custom out-dir >From 6d38e4c74488d424c2563ff57d963cadf24531f7 Mon Sep 17 00:00:00 2001 From: john muhl Date: Sun, 25 Jun 2023 19:38:08 -0500 Subject: [PATCH] Fix treesit-install-language-grammar for custom out-dir MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit M-x t-i-l-g RET bash RET y RET RET RET RET RET ~/tmp/tree-sitter RET installs to user-emacs-directory/tree-sitter instead of the supplied directory. Here=E2=80=99s the tiny patch to make it work. --- lisp/treesit.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index df13dd9f424..81920834329 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -3094,8 +3094,7 @@ treesit-install-language-grammar (condition-case err (progn (apply #'treesit--install-language-grammar-1 - ;; The nil is OUT-DIR. - (cons nil recipe)) + (cons out-dir recipe)) =20 ;; Check that the installed language grammar is loadable. (pcase-let ((`(,available . ,err) --=20 2.41.0 --=-=-=-- ------------=_1688065502-14138-1--