unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#44274] [PATCH] gnu: Add emacs-powershell.el
@ 2020-10-28  8:39 Adam Kandur via Guix-patches via
  2020-10-28  9:27 ` Nicolas Goaziou
  2020-10-28 10:01 ` Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Adam Kandur via Guix-patches via @ 2020-10-28  8:39 UTC (permalink / raw)
  To: 44274

[-- Attachment #1: Type: text/plain, Size: 73 bytes --]


Sometimes use it for work, would be great to have in guix,

Adam Kandur

[-- Attachment #2: 0001-gnu-Add-emacs-powershell.el.patch --]
[-- Type: text/x-patch, Size: 1660 bytes --]

From debe288267094e2eefff6083ac4d245020a4909d Mon Sep 17 00:00:00 2001
From: Adam <rndd@tuta.io>
Date: Wed, 28 Oct 2020 11:35:03 +0300
Subject: [PATCH] gnu: Add emacs-powershell.el

* gnu/packages/emacs-xyz.scm (emacs-powershell.el): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 019b2c6..8470829 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -25091,6 +25091,29 @@ built-in generator package.  It provides @code{iter2-defun} and
 original package.")
     (license license:gpl3+)))
 
+(define-public emacs-powershell.el
+  (let ((revision "0")
+        (commit "d1b3f95669343399f199f291ef76c09a0ede5e60"))
+    (package
+      (name "emacs-powershell.el")
+      (build-system emacs-build-system)
+      (arguments
+       `(#:include '("\\.el$")))
+      (version "master") ;; tagged branch is outdated (2015)
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+	       (url "https://github.com/jschaf/powershell.el")
+	       (commit version)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1cxhzaaig88zhylyycvb3849r85j1ijqklnh9zbqsfl2zhpb0g5c"))))
+      (home-page "https://github.com/jschaf/powershell.el")
+      (synopsis "Mode for editing PowerShell scripts")
+      (description "@code{powershell.el} Mode is an Emacs major mode for editing and running Microsoft PowerShell files.")
+      (license license:gpl3+))))
+
 (define-public emacs-promise
   (package
     (name "emacs-promise")
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#44274] [PATCH] gnu: Add emacs-powershell.el
  2020-10-28  8:39 [bug#44274] [PATCH] gnu: Add emacs-powershell.el Adam Kandur via Guix-patches via
@ 2020-10-28  9:27 ` Nicolas Goaziou
  2020-10-28 10:01 ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2020-10-28  9:27 UTC (permalink / raw)
  To: 44274; +Cc: rndd

Hello,

Adam Kandur via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/emacs-xyz.scm (emacs-powershell.el): New variable.

Thank you. Some comments follow.

> +(define-public emacs-powershell.el

I suggest to rename it emacs-powershell.

> +  (let ((revision "0")
> +        (commit "d1b3f95669343399f199f291ef76c09a0ede5e60"))
> +    (package
> +      (name "emacs-powershell.el")

See above.

> +      (build-system emacs-build-system)
> +      (arguments
> +       `(#:include '("\\.el$")))
> +      (version "master") ;; tagged branch is outdated (2015)

Version is 0.3 per main Elisp file.

Also, end of line comments start with a single semicolon. Two semicolons
are used only for full line comments. In any case, I suggest to write
the comment above `package' instead.

> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +	       (url "https://github.com/jschaf/powershell.el")

There seem to be an issue with indentation here.

> +	       (commit version)))

This should be (commit commit)

> +         (file-name (git-file-name name version))
> +         (sha256
> +          (base32 "1cxhzaaig88zhylyycvb3849r85j1ijqklnh9zbqsfl2zhpb0g5c"))))
> +      (home-page "https://github.com/jschaf/powershell.el")
> +      (synopsis "Mode for editing PowerShell scripts")

I suggest:

  Emacs mode for editing PowerShell scripts

> +      (description "@code{powershell.el} Mode is an Emacs major mode for editing and running Microsoft PowerShell files.")

I suggest:

  Powershell is an Emacs major mode…

The library is really named Powershell, and the capitalization makes it
different from PowerShell.

Could you send an updated patch?

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#44274] [PATCH] gnu: Add emacs-powershell.el
  2020-10-28  8:39 [bug#44274] [PATCH] gnu: Add emacs-powershell.el Adam Kandur via Guix-patches via
  2020-10-28  9:27 ` Nicolas Goaziou
@ 2020-10-28 10:01 ` Nicolas Goaziou
  2020-10-28 11:04   ` Adam Kandur via Guix-patches via
  1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2020-10-28 10:01 UTC (permalink / raw)
  To: 44274; +Cc: rndd

Adam Kandur via Guix-patches via <guix-patches@gnu.org> writes:

> +      (arguments
> +       `(#:include '("\\.el$")))

In addition to my other comments, I don't think the section above is
needed.

Regards,




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#44274] [PATCH] gnu: Add emacs-powershell.el
  2020-10-28 10:01 ` Nicolas Goaziou
@ 2020-10-28 11:04   ` Adam Kandur via Guix-patches via
  2020-10-29  9:20     ` bug#44274: " Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Kandur via Guix-patches via @ 2020-10-28 11:04 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44274

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

hi, attached new patch. hope it is correct



Oct 28, 2020, 10:01 by mail@nicolasgoaziou.fr:

> Adam Kandur via Guix-patches via <guix-patches@gnu.org> writes:
>
>> +      (arguments
>> +       `(#:include '("\\.el$")))
>>
>
> In addition to my other comments, I don't think the section above is
> needed.
>
> Regards,
>


[-- Attachment #2: 0001-gnu-Add-emacs-powershell.patch --]
[-- Type: text/x-patch, Size: 1638 bytes --]

From 288fbe826b26d088c70c876ef74afd5445b63609 Mon Sep 17 00:00:00 2001
From: Adam <rndd@tuta.io>
Date: Wed, 28 Oct 2020 14:02:26 +0300
Subject: [PATCH] gnu: Add emacs-powershell.

* gnu/packages/emacs-xyz.scm (emacs-powershell): New variable.
---
 gnu/packages/emacs-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 40e4c63..6684678 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13232,6 +13232,28 @@ literate programming tools for exporting, weaving and tangling.")
        "Edit YAML files for Ansible containing embedded Jinja2 templating.")
       (license license:gpl3+))))
 
+(define-public emacs-powershell
+  (let ((revision "0")
+        (commit "d1b3f95669343399f199f291ef76c09a0ede5e60"))
+    ;; tagged branch 0.1 is outdated (2015)
+    (package
+      (name "emacs-powershell")
+      (build-system emacs-build-system)
+      (version "0.3")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+	       (url "https://github.com/jschaf/powershell.el")
+	       (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1cxhzaaig88zhylyycvb3849r85j1ijqklnh9zbqsfl2zhpb0g5c"))))
+      (home-page "")
+      (synopsis "Emacs mode for editing PowerShell scripts")
+      (description "@code{powershell.el} Mode is an Emacs major mode for editing and running Microsoft PowerShell files.")
+    (license license:gpl3+))))
+
 (define-public emacs-polymode-org
   (package
     (name "emacs-polymode-org")
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#44274: [PATCH] gnu: Add emacs-powershell.el
  2020-10-28 11:04   ` Adam Kandur via Guix-patches via
@ 2020-10-29  9:20     ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2020-10-29  9:20 UTC (permalink / raw)
  To: Adam Kandur; +Cc: 44274-done

Hello,

Adam Kandur <rndd@tuta.io> writes:

> hi, attached new patch. hope it is correct

I fixed indentation, the version tag, added a home-page, tweaked the
description, and pushed your patch.

Thanks.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-29  9:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28  8:39 [bug#44274] [PATCH] gnu: Add emacs-powershell.el Adam Kandur via Guix-patches via
2020-10-28  9:27 ` Nicolas Goaziou
2020-10-28 10:01 ` Nicolas Goaziou
2020-10-28 11:04   ` Adam Kandur via Guix-patches via
2020-10-29  9:20     ` bug#44274: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).