GNU bug report logs - #61139
[PATCH] gnu: emacs-next: Enable tree-sitter support.

Previous Next

Package: guix-patches;

Reported by: Declan Tsien <declantsien <at> riseup.net>

Date: Sun, 29 Jan 2023 06:12:01 UTC

Severity: normal

Tags: patch

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61139 in the body.
You can then email your comments to 61139 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#61139; Package guix-patches. (Sun, 29 Jan 2023 06:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Declan Tsien <declantsien <at> riseup.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 29 Jan 2023 06:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Declan Tsien <declantsien <at> riseup.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: emacs-next: Enable tree-sitter support.
Date: Sun, 29 Jan 2023 14:10:50 +0800
[0001-gnu-emacs-next-Enable-tree-sitter-support.patch (text/x-patch, inline)]
From d51a7e7812beec431e79164efe9d7cb87341674e Mon Sep 17 00:00:00 2001
From: Declan Tsien <declantsien <at> riseup.net>
Date: Sun, 29 Jan 2023 13:34:03 +0800
Subject: [PATCH] gnu: emacs-next: Enable tree-sitter support.

* gnu/packages/emacs.scm (emacs-next): Update to 29.0.60-1.2bd0b94.
* gnu/packages/emacs.scm (emacs-next)[propagated-inputs]: Add tree-sitter.
---
 gnu/packages/emacs.scm | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 299ab5e992..ed62f6ec8b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2020 Jack Hill <jackhill <at> jackhill.us>
 ;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith <at> outlook.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last <at> 163.com>
+;;; Copyright © 2022 Declan Tsien <declantsien <at> riseup.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -75,6 +76,7 @@ (define-module (gnu packages emacs)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages tls)
+  #:use-module (gnu packages text-editors) ; for tree-sitter
   #:use-module (gnu packages web)       ; for jansson
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages xml)
@@ -381,12 +383,12 @@ (define* (emacs-byte-compile-directory dir)
     (license license:gpl3+)))
 
 (define-public emacs-next
-  (let ((commit "6adc193ad66445acd84caba6973424ecbd21da26")
-        (revision "4"))
+  (let ((commit "2bd0b9475384adfb4dd2cc794bbe1d8621546717")
+        (revision "1"))
     (package
       (inherit emacs)
       (name "emacs-next")
-      (version (git-version "29.0.50" revision commit))
+      (version (git-version "29.0.60" revision commit))
       (source
        (origin
          (inherit (package-source emacs))
@@ -401,10 +403,13 @@ (define-public emacs-next
                                   "emacs-native-comp-driver-options.patch"))
          (sha256
           (base32
-           "0b48qg9w7fzvhva78gzi3cs2m6asj11fk0kgys49fqhwskigzg1f"))))
+           "0pf2qlbfddpzp38x6rpz0qpadwa3vgrp3dik3a4wr3cdcby98cc3"))))
       (inputs
        (modify-inputs (package-inputs emacs)
          (prepend sqlite)))
+      (propagated-inputs
+       (modify-inputs (package-propagated-inputs emacs)
+         (prepend tree-sitter)))
       (native-inputs
        (modify-inputs (package-native-inputs emacs)
          (prepend autoconf))))))

base-commit: bea22409682f6d1947de7d92f264aad822c2e68c
-- 
2.39.1

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#61139; Package guix-patches. (Sun, 29 Jan 2023 15:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 61139 <at> debbugs.gnu.org (full text, mbox):

From: Luis Henrique Gomes Higino <luishenriquegh2701 <at> gmail.com>
To: 61139 <at> debbugs.gnu.org, Declan Tsien <declantsien <at> riseup.net>
Subject: [PATCH] gnu: emacs-next: Enable tree-sitter support.
Date: Sun, 29 Jan 2023 12:26:36 -0300
Hi Declan,

>  (define-public emacs-next
> -  (let ((commit "6adc193ad66445acd84caba6973424ecbd21da26")
> -        (revision "4"))
> +  (let ((commit "2bd0b9475384adfb4dd2cc794bbe1d8621546717")
> +        (revision "1"))

Revision numbers start at 0 if I'm not mistaken.

>        (inputs
>         (modify-inputs (package-inputs emacs)
>           (prepend sqlite)))
> +      (propagated-inputs
> +       (modify-inputs (package-propagated-inputs emacs)
> +         (prepend tree-sitter)))
>        (native-inputs
>         (modify-inputs (package-native-inputs emacs)
>           (prepend autoconf))))))

Is there any reason for tree-sitter to be added as a propagated 
input? It does not provide any binaries and I tested changing it 
to a normal input and c-ts-mode worked fine.

Regards,
-- 
Luis H. Higino




Information forwarded to guix-patches <at> gnu.org:
bug#61139; Package guix-patches. (Sun, 29 Jan 2023 16:19:01 GMT) Full text and rfc822 format available.

Message #11 received at 61139 <at> debbugs.gnu.org (full text, mbox):

From: Declan Tsien <declantsien <at> riseup.net>
To: 61139 <at> debbugs.gnu.org, Luis Henrique Gomes Higino
 <luishenriquegh2701 <at> gmail.com>
Subject: Subject: [PATCH v2] gnu: emacs-next: Enable tree-sitter support.
Date: Mon, 30 Jan 2023 00:17:48 +0800
[Message part 1 (text/plain, inline)]
Hey Luis

>
> Revision numbers start at 0 if I'm not mistaken.
>

Good to know. Thanks.

>
> Is there any reason for tree-sitter to be added as a propagated 
> input? It does not provide any binaries and I tested changing it 
> to a normal input and c-ts-mode worked fine.
>

Wired. I tried to put it in the =inputs= earlier today, Emacs failed to
find tree-sitter. But it works now. I guess I did something wrong before.

Regards,
Declan

[0001-gnu-emacs-next-Enable-tree-sitter-support.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#61139; Package guix-patches. (Sun, 29 Jan 2023 17:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 61139 <at> debbugs.gnu.org (full text, mbox):

From: Luis Henrique Gomes Higino <luishenriquegh2701 <at> gmail.com>
To: Declan Tsien <declantsien <at> riseup.net>
Cc: 61139 <at> debbugs.gnu.org
Subject: Re: Subject: [PATCH v2] gnu: emacs-next: Enable tree-sitter support.
Date: Sun, 29 Jan 2023 14:47:28 -0300
Hi Declan,

tried your newest patch and it LGTM. The only problem I see now is 
that your copyright's year is wrong haha.

Regards,
-- 
Luis H. Higino




Information forwarded to guix-patches <at> gnu.org:
bug#61139; Package guix-patches. (Mon, 30 Jan 2023 02:03:02 GMT) Full text and rfc822 format available.

Message #17 received at 61139 <at> debbugs.gnu.org (full text, mbox):

From: Declan Tsien <declantsien <at> riseup.net>
To: 61139 <at> debbugs.gnu.org, Luis Henrique Gomes Higino
 <luishenriquegh2701 <at> gmail.com>
Subject: [PATCH v3] gnu: emacs-next: Enable tree-sitter support.
Date: Mon, 30 Jan 2023 10:02:26 +0800
[Message part 1 (text/plain, inline)]
Hey Luis,

Luis Henrique Gomes Higino <luishenriquegh2701 <at> gmail.com> writes:

> Hi Declan,
>
> tried your newest patch and it LGTM. The only problem I see now is 
> that your copyright's year is wrong haha.
>
> Regards,
> -- 
> Luis H. Higino

Whops, fixed the year.

Regards,
Declan

[0001-gnu-emacs-next-Enable-tree-sitter-support.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#61139; Package guix-patches. (Sat, 04 Feb 2023 04:52:02 GMT) Full text and rfc822 format available.

Message #20 received at 61139 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Tropin <andrew <at> trop.in>
To: Declan Tsien <declantsien <at> riseup.net>, 61139 <at> debbugs.gnu.org, Luis
 Henrique Gomes Higino <luishenriquegh2701 <at> gmail.com>
Subject: Re: [bug#61139] [PATCH v3] gnu: emacs-next: Enable tree-sitter
 support.
Date: Sat, 04 Feb 2023 08:51:01 +0400
[Message part 1 (text/plain, inline)]
On 2023-01-30 10:02, Declan Tsien wrote:

> Hey Luis,
>
> Luis Henrique Gomes Higino <luishenriquegh2701 <at> gmail.com> writes:
>
>> Hi Declan,
>>
>> tried your newest patch and it LGTM. The only problem I see now is 
>> that your copyright's year is wrong haha.
>>
>> Regards,
>> -- 
>> Luis H. Higino

Hi Declan,

Thank you very much for the patch, applied it, updated emacs commit to
ac7ec87a7a0db887e4ae7fe9005aea517958b778 and pushed as
6f0c9053244d6b4cfc4130c963a15dbf83cbcdac.

-- 
Best regards,
Andrew Tropin
[signature.asc (application/pgp-signature, inline)]

bug closed, send any further explanations to 61139 <at> debbugs.gnu.org and Declan Tsien <declantsien <at> riseup.net> Request was from Andrew Tropin <andrew <at> trop.in> to control <at> debbugs.gnu.org. (Sat, 04 Feb 2023 04:52:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Mar 2023 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 169 days ago.

Previous Next


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