Subject: [bug#75243] [PATCH] gnu: Add emacs-binder.

From: Divya Ranjan <[email-masked]>
Date: Wed, 01 Jan 2025 20:13:47 +0000

Hello Nicholas, I’ve made the necessary edits, the edited patch is attached below:

Nicolas Goaziou via Guix-patches via <[email-masked]> writes:

> Hello,
>
> Divya Ranjan via Guix-patches via <[email-masked]> writes:
>
>> * gnu/packages/emacs-xyz.scm (emacs-binder): New variable.
>
> Thank you. Some comments follow.
>
>> +(define-public emacs-binder
>> +  (package
>> +    (name "emacs-binder")
>> +    (version "20241023.1154")
>
> Version should be "0.5.0", as set in "binder.el".
>
>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (string-append "https://melpa.org/packages/binder-" version ".tar"))
>
> Guix does not use MELPA as upstream because tarballs are not reliable.
> Please use Codeberg repository instead.
>
>> +       (sha256
>> +        (base32 "1nvsmmg9wwan5y38dpcpffzxxvivi4708ri64f03gwcq66g1k49m"))))
>> +    (build-system emacs-build-system)
>> +    (home-page "https://codeberg.org/divyaranjan/binder")
>> +    (synopsis
>> +     "Binder is a global minor mode to facilitate working on multiple files")
>> +    (description "Primarily, Binder provides a global minor mode
>> binder-mode.
>
> "binder-mode" -> "Binder mode".
>
>> +This allows working with files in the current
>> binder-project-directory.
>
> "binder-project-directory" -> "@code{binder-project-directory}".
>
>> +Data concerning these files is saved in a .binder.el file in the
>> project directory.")
>
> I don’t think the last sentence is useful in the description as it
> merely describes the internals of the package. I suggest to remove it.
> If you absolutely want to keep it, I suggest to apply proper markup:
> ".binder.el" -> "@file{.binder.el}".
>From 1ff216e0f0479dc86d1b686fc80af50ccf8f5487 Mon Sep 17 00:00:00 2001
From: Divya Ranjan <[email-masked]>
Date: Wed, 1 Jan 2025 15:18:44 +0000
Subject: [PATCH] gnu: Add emacs-binder.

* gnu/packages/emacs-xyz.scm (emacs-binder): 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 4e4ac5d4c4..072e30d131 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -39712,6 +39712,28 @@ (define-public emacs-iter2
 original package.")
     (license license:gpl3+)))
 
+(define-public emacs-binder
+  (package
+    (name "emacs-binder")
+    (version "0.5.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://codeberg.org/divyaranjan/binder")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        "1fdgl31zc15cysv1yys95j0106i2fwfxb3qcwwh7f3mcz2snr2md")))
+    (build-system emacs-build-system)
+    (home-page "https://codeberg.org/divyaranjan/binder")
+    (synopsis
+     "Binder is a global minor mode to facilitate working on multiple files")
+    (description
+     "Primarily, Binder provides a global minor mode Binder Mode.
+This allows working with files in the current @code{binder-project-directory}.")
+    (license license:gpl3+)))
+
 (define-public emacs-bind-map
   (let ((commit "510a24138d8de3b8df0783f1ac493a551fc9bd74")
         (revision "0"))
-- 
2.47.1

>
> Could you send an updated patch?
>
> Regards,

-- 
Divya Ranjan,
Philosophy, Mathematics, Libre Software.

PGP Fingerprint: F0B3 1A69 8006 8FB8 096A  2F12 B245 10C6 108C 8D4A