* [bug#61139] [PATCH] gnu: emacs-next: Enable tree-sitter support.
@ 2023-01-29 6:10 Declan Tsien
2023-01-29 15:26 ` Luis Henrique Gomes Higino
2023-02-04 4:51 ` Andrew Tropin
0 siblings, 2 replies; 6+ messages in thread
From: Declan Tsien @ 2023-01-29 6:10 UTC (permalink / raw)
To: 61139
[-- Attachment #1.1: Enable tree-sitter support. --]
[-- Type: text/x-patch, Size: 2574 bytes --]
From d51a7e7812beec431e79164efe9d7cb87341674e Mon Sep 17 00:00:00 2001
From: Declan Tsien <declantsien@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@jackhill.us>
;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 Declan Tsien <declantsien@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 690 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#61139] [PATCH] gnu: emacs-next: Enable tree-sitter support.
2023-01-29 6:10 [bug#61139] [PATCH] gnu: emacs-next: Enable tree-sitter support Declan Tsien
@ 2023-01-29 15:26 ` Luis Henrique Gomes Higino
2023-01-29 16:17 ` [bug#61139] Subject: [PATCH v2] " Declan Tsien
2023-02-04 4:51 ` Andrew Tropin
1 sibling, 1 reply; 6+ messages in thread
From: Luis Henrique Gomes Higino @ 2023-01-29 15:26 UTC (permalink / raw)
To: 61139, Declan Tsien
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#61139] Subject: [PATCH v2] gnu: emacs-next: Enable tree-sitter support.
2023-01-29 15:26 ` Luis Henrique Gomes Higino
@ 2023-01-29 16:17 ` Declan Tsien
2023-01-29 17:47 ` Luis Henrique Gomes Higino
0 siblings, 1 reply; 6+ messages in thread
From: Declan Tsien @ 2023-01-29 16:17 UTC (permalink / raw)
To: 61139, Luis Henrique Gomes Higino
[-- Attachment #1.1: Type: text/plain, Size: 460 bytes --]
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
[-- Attachment #1.2: Enable tree-sitter for emacs-next --]
[-- Type: text/x-patch, Size: 2484 bytes --]
From 1d91c374a325ad8be799cadeb77b4b976b8fbce9 Mon Sep 17 00:00:00 2001
From: Declan Tsien <declantsien@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-0.2bd0b94.
* gnu/packages/emacs.scm (emacs-next)[inputs]: Add tree-sitter.
---
gnu/packages/emacs.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 299ab5e992..03182d233b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -23,6 +23,7 @@
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 Declan Tsien <declantsien@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 "0"))
(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,10 @@ (define-public emacs-next
"emacs-native-comp-driver-options.patch"))
(sha256
(base32
- "0b48qg9w7fzvhva78gzi3cs2m6asj11fk0kgys49fqhwskigzg1f"))))
+ "0pf2qlbfddpzp38x6rpz0qpadwa3vgrp3dik3a4wr3cdcby98cc3"))))
(inputs
(modify-inputs (package-inputs emacs)
- (prepend sqlite)))
+ (prepend sqlite tree-sitter)))
(native-inputs
(modify-inputs (package-native-inputs emacs)
(prepend autoconf))))))
base-commit: bea22409682f6d1947de7d92f264aad822c2e68c
--
2.39.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 690 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#61139] Subject: [PATCH v2] gnu: emacs-next: Enable tree-sitter support.
2023-01-29 16:17 ` [bug#61139] Subject: [PATCH v2] " Declan Tsien
@ 2023-01-29 17:47 ` Luis Henrique Gomes Higino
2023-01-30 2:02 ` [bug#61139] [PATCH v3] " Declan Tsien
0 siblings, 1 reply; 6+ messages in thread
From: Luis Henrique Gomes Higino @ 2023-01-29 17:47 UTC (permalink / raw)
To: Declan Tsien; +Cc: 61139
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#61139] [PATCH v3] gnu: emacs-next: Enable tree-sitter support.
2023-01-29 17:47 ` Luis Henrique Gomes Higino
@ 2023-01-30 2:02 ` Declan Tsien
0 siblings, 0 replies; 6+ messages in thread
From: Declan Tsien @ 2023-01-30 2:02 UTC (permalink / raw)
To: 61139, Luis Henrique Gomes Higino
[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]
Hey Luis,
Luis Henrique Gomes Higino <luishenriquegh2701@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
[-- Attachment #1.2: Enable tree-sitter support for emacs-next --]
[-- Type: text/x-patch, Size: 2484 bytes --]
From 8ffd29a3fb7d07630a3971d47feb765e9f99ee4d Mon Sep 17 00:00:00 2001
From: Declan Tsien <declantsien@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-0.2bd0b94.
* gnu/packages/emacs.scm (emacs-next)[inputs]: Add tree-sitter.
---
gnu/packages/emacs.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 299ab5e992..e21d6f7954 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -23,6 +23,7 @@
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2023 Declan Tsien <declantsien@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 "0"))
(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,10 @@ (define-public emacs-next
"emacs-native-comp-driver-options.patch"))
(sha256
(base32
- "0b48qg9w7fzvhva78gzi3cs2m6asj11fk0kgys49fqhwskigzg1f"))))
+ "0pf2qlbfddpzp38x6rpz0qpadwa3vgrp3dik3a4wr3cdcby98cc3"))))
(inputs
(modify-inputs (package-inputs emacs)
- (prepend sqlite)))
+ (prepend sqlite tree-sitter)))
(native-inputs
(modify-inputs (package-native-inputs emacs)
(prepend autoconf))))))
base-commit: bea22409682f6d1947de7d92f264aad822c2e68c
--
2.39.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 690 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#61139] [PATCH v3] gnu: emacs-next: Enable tree-sitter support.
2023-01-29 6:10 [bug#61139] [PATCH] gnu: emacs-next: Enable tree-sitter support Declan Tsien
2023-01-29 15:26 ` Luis Henrique Gomes Higino
@ 2023-02-04 4:51 ` Andrew Tropin
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Tropin @ 2023-02-04 4:51 UTC (permalink / raw)
To: Declan Tsien, 61139, Luis Henrique Gomes Higino
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
On 2023-01-30 10:02, Declan Tsien wrote:
> Hey Luis,
>
> Luis Henrique Gomes Higino <luishenriquegh2701@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-02-04 4:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-29 6:10 [bug#61139] [PATCH] gnu: emacs-next: Enable tree-sitter support Declan Tsien
2023-01-29 15:26 ` Luis Henrique Gomes Higino
2023-01-29 16:17 ` [bug#61139] Subject: [PATCH v2] " Declan Tsien
2023-01-29 17:47 ` Luis Henrique Gomes Higino
2023-01-30 2:02 ` [bug#61139] [PATCH v3] " Declan Tsien
2023-02-04 4:51 ` Andrew Tropin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.