GNU bug report logs - #47356
[PATCH 0/2] Two Emacs packages related to Julia

Previous Next

Package: guix-patches;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Wed, 24 Mar 2021 03:03:02 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

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 47356 in the body.
You can then email your comments to 47356 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#47356; Package guix-patches. (Wed, 24 Mar 2021 03:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zimoun <zimon.toutoune <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 24 Mar 2021 03:03:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 0/2] Two Emacs packages related to Julia
Date: Wed, 24 Mar 2021 04:01:51 +0100
Hi,

This patch adds 2 Emacs packages to deal with Julia.  Since I am not confident
with what is the inputs / propagated-inputs, please give a look.  From my
understanding and experiments, it seems to make sense.

Last, the most recent version tagged 1.0.0rc5 of 'emacs-julia-snail' uses the
Julia package 'CSTParser' which is not packaged yet on the Julia side.  It is
straightforward since that depends only on another Julia package.

However, importing all the (gnu packages julia-xyz) module in (gnu packages
emacs-xyz)---or conversely---does not make sense, IMHO.

Waiting progress on the side of Julia packages, let consider this 'rc4'
version using an ELisp parser for the Julia language.

Last, 'emacs-julia-snail' requires the package 'julia' to work.  Since 'M-x
julia-snail' runs a "server" with the code JuliaSnail.jl.  From my
understanding of the standards, this package 'julia' is not propagated.  Does
it make sense?

Cheers,
simon


zimoun (2):
  gnu: Add emacs-julia-repl.
  gnu: Add emacs-julia-snail.

 gnu/packages/emacs-xyz.scm | 64 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)


base-commit: 8b2b5463963d5d4dee480b0cf73fa4a9eca414ba
-- 
2.29.2





Information forwarded to guix-patches <at> gnu.org:
bug#47356; Package guix-patches. (Wed, 24 Mar 2021 03:05:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: 47356 <at> debbugs.gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 2/2] gnu: Add emacs-julia-snail.
Date: Wed, 24 Mar 2021 04:04:06 +0100
* gnu/packages/emacs-xyz.scm (emacs-julia-snail): New variable.
---
 gnu/packages/emacs-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2d26cae5ca..71b88cca07 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -8720,6 +8720,46 @@ the help system and the debugger.  It is recommended that you use this minor
 mode with the package emacs-julia-mode.")
     (license license:expat)))
 
+(define-public emacs-julia-snail
+  (package
+    (name "emacs-julia-snail")
+    (version "1.0.0rc4")               ;rc5 requires CSTParser (julia package)
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/gcv/julia-snail")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "065ix3jycsx3wvkq7a6060i93caxisdvgxgqb1l6rq15n4qln78y"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'JuliaSnail-jl
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out(assoc-ref outputs "out")))
+               (install-file "JuliaSnail.jl"
+                             (string-append out "/share/emacs/site-lisp/")))
+             #t)))))
+    (inputs
+     `(("emacs-dash" ,emacs-dash)
+       ("emacs-s" ,emacs-s)
+       ("emacs-spinner" ,emacs-spinner)
+       ("emacs-xref" ,emacs-xref)))
+    (propagated-inputs
+     `(("libvterm" ,libvterm)
+       ("emacs-julia-mode" ,emacs-julia-mode) ;required by parser
+       ("emacs-parsec" ,emacs-parsec)         ;required by parser
+       ("emacs-vterm" ,emacs-vterm)))
+    (home-page "https://github.com/gcv/julia-snail")
+    (synopsis "Development environment and REPL interaction package for Julia")
+    (description "This package provides a development environment and REPL
+interaction package for Julia in the spirit of Common Lisp’s SLIME and
+Clojure’s CIDER.  It enables convenient and dynamic REPL-driven development.")
+    (license license:gpl3)))
+
 (define-public emacs-smex
   (package
     (name "emacs-smex")
-- 
2.29.2





Information forwarded to guix-patches <at> gnu.org:
bug#47356; Package guix-patches. (Wed, 24 Mar 2021 03:05:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: 47356 <at> debbugs.gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 1/2] gnu: Add emacs-julia-repl.
Date: Wed, 24 Mar 2021 04:04:05 +0100
* gnu/packages/emacs-xyz.scm (emacs-julia-repl): New variable.
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a147e81289..2d26cae5ca 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -95,6 +95,7 @@
 ;;; Copyright © 2021 Alexey Abramov <levenson <at> mmer.org>
 ;;; Copyright © 2021 Xinglu Chen <public <at> yoctocell.xyz>
 ;;; Copyright © 2021 Stefan Reichör <stefan <at> xsteve.at>
+;;; Copyright © 2021 Simon Tournier <zimon.toutoune <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8696,6 +8697,29 @@ E-Prime forbids the use of the \"to be\" form to strengthen your writing.")
 programming language.")
       (license license:expat)))
 
+(define-public emacs-julia-repl
+  (package
+    (name "emacs-julia-repl")
+    (version "1.3.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/tpapp/julia-repl")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "11vpqqnxqj9nxh8kccj4y6h3f8lib6jxnsk6vxc2j2fqw6alnafm"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/tpapp/julia-repl")
+    (synopsis "Minor mode for interacting with a Julia REPL")
+    (description "This package provides a minor mode for interacting with a
+Julia REPL running inside Emacs.  The julia process is started in an ANSI
+terminal (term), which allows text formatting and colors, and interaction with
+the help system and the debugger.  It is recommended that you use this minor
+mode with the package emacs-julia-mode.")
+    (license license:expat)))
+
 (define-public emacs-smex
   (package
     (name "emacs-smex")
-- 
2.29.2





Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Wed, 31 Mar 2021 07:20:02 GMT) Full text and rfc822 format available.

Notification sent to zimoun <zimon.toutoune <at> gmail.com>:
bug acknowledged by developer. (Wed, 31 Mar 2021 07:20:02 GMT) Full text and rfc822 format available.

Message #16 received at 47356-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 47356-done <at> debbugs.gnu.org
Subject: Re: [bug#47356] [PATCH 2/2] gnu: Add emacs-julia-snail.
Date: Wed, 31 Mar 2021 08:19:31 +0100
[Message part 1 (text/plain, inline)]
zimoun <zimon.toutoune <at> gmail.com> writes:

> * gnu/packages/emacs-xyz.scm (emacs-julia-snail): New variable.
> ---
>  gnu/packages/emacs-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 2d26cae5ca..71b88cca07 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -8720,6 +8720,46 @@ the help system and the debugger.  It is recommended that you use this minor
>  mode with the package emacs-julia-mode.")
>      (license license:expat)))
>  
> +(define-public emacs-julia-snail
> +  (package
> +    (name "emacs-julia-snail")
> +    (version "1.0.0rc4")               ;rc5 requires CSTParser (julia package)
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/gcv/julia-snail")
> +                    (commit version)))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "065ix3jycsx3wvkq7a6060i93caxisdvgxgqb1l6rq15n4qln78y"))))
> +    (build-system emacs-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'install 'JuliaSnail-jl
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((out(assoc-ref outputs "out")))

I added a space here after out.

> +               (install-file "JuliaSnail.jl"
> +                             (string-append out "/share/emacs/site-lisp/")))
> +             #t)))))
> +    (inputs
> +     `(("emacs-dash" ,emacs-dash)
> +       ("emacs-s" ,emacs-s)
> +       ("emacs-spinner" ,emacs-spinner)
> +       ("emacs-xref" ,emacs-xref)))
> +    (propagated-inputs
> +     `(("libvterm" ,libvterm)
> +       ("emacs-julia-mode" ,emacs-julia-mode) ;required by parser
> +       ("emacs-parsec" ,emacs-parsec)         ;required by parser
> +       ("emacs-vterm" ,emacs-vterm)))
> +    (home-page "https://github.com/gcv/julia-snail")
> +    (synopsis "Development environment and REPL interaction package for Julia")
> +    (description "This package provides a development environment and REPL
> +interaction package for Julia in the spirit of Common Lisp’s SLIME and
> +Clojure’s CIDER.  It enables convenient and dynamic REPL-driven development.")
> +    (license license:gpl3)))
> +
>  (define-public emacs-smex
>    (package
>      (name "emacs-smex")

Both patches look good to me, and they build at least. They're on master
as of f27bdad0a7a3c3d6edbfa2c6809f19592fe5ba56.

Thanks,

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

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Apr 2021 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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