Subject: [bug#75683] Add emacs-discourse-mode.

From: Ian Eure <[email-masked]>
Date: Fri, 14 Feb 2025 06:49:10 -0800

Hi Yuval,

Yuval Langer <[email-masked]> writes:

>>>From the tagline on its Codeberg git repository page[1]:
>
>> A modern Emacs package for seamless Discourse forum 
>> integration.
>
> This Emacs mode is being written by Glenn Thompson.
>
> Thank you!
>
> [1]: https://codeberg.org/glenneth/discourse-mode
>
> From c0bba4133a061eadbde67eae4e060da269171146 Mon Sep 17 
> 00:00:00 2001
> Message-Id: 
> <c0bb[email-masked]>
> From: Yuval Langer <[email-masked]>
> Date: Mon, 20 Jan 2025 08:15:51 +0200
> Subject: [PATCH] gnu: Add emacs-discourse-mode.
>
> * gnu/packages/emacs-xyz.scm (emacs-discourse-mode): New 
> variable.
> ---
>  gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm 
> b/gnu/packages/emacs-xyz.scm
> index 36cad3a7df..6c69df71f4 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -1564,6 +1564,31 @@ do manually if you wanted to keep the 
> buffers of a project neatly isolated in
>  separate, named tab groups.")
>        (license license:gpl3+))))
>  
> +(define-public emacs-discourse-mode
> +  (let ((commit "c5fde79990ab5d44786721f133b1c66764d6dc2b")
> +        (revision "1"))
> +    (package
> +      (name "emacs-discourse-mode")
> +      (version (git-version "0.2.4" revision commit))
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url 
> "https://codeberg.org/glenneth/discourse-mode")
> +               (commit commit)))

Please use the tagged version (v0.2.4) instead of its commit and 
eliminate the `let' form.

> +         (file-name (git-file-name name version))
> +         (sha256
> +          (base32 
> "0j2f0vclj6zrmk1hxyrrhkcpk74vqvq42g9wjqrjw827yjh2wm65"))))
> +      (build-system emacs-build-system)
> +      (propagated-inputs (list emacs-compat
> +                               emacs-markdown-mode
> +                               emacs-request))
> +      (home-page 
> "https://codeberg.org/glenneth/discourse-mode")
> +      (synopsis "Emacs package for interacting with Discourse 
> forums")
> +      (description "Browse categories, view topics, read posts, 
> and
> +participate in discussions directly from Emacs.")

This should probably mention Discourse, ex:

    Browse categories, view topics, read posts, and participate in
    discussions on Discourse, directly from Emacs.

Would you please send a v2 patch, using `git send-email'?  Your 
patch was sent as an attachment, which doesn’t work with the Guix 
tooling.

Thanks,

  -- Ian