Subject: bug#40128: closed (Re: [bug#40128] [PATCH 1/2] gnu: Add emacs-pretty-hydra.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 21 Nov 2020 09:13:02 +0000

Your bug report

#40128: [PATCH 1/2] gnu: Add emacs-pretty-hydra.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40128: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40128
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#40128] [PATCH 1/2] gnu: Add emacs-pretty-hydra.
From: Christopher Baines <[email-masked]>
To: "LaFreniere, Joseph" <[email-masked]>
Cc: [email-masked]
Date: Sat, 21 Nov 2020 09:12:50 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

LaFreniere, Joseph <[email-masked]> writes:

> Nicolas Goaziou <[email-masked]> writes:
>> Uh? Did I miss your updated patch?
>>
>> Would you mind sending it again?
>
> No problem.  :)
>
> Patch file is attached.

It's been a few months, so I've reviewed and pushed what I think were
the most up to date patches. They're on master as of
90eb5dd6b5989eeb5350c785036c53469496e394.

Thanks,

Chris

Subject: [PATCH 1/2] gnu: Add emacs-pretty-hydra.
From: "LaFreniere, Joseph" <[email-masked]>
To: [email-masked]
Date: Thu, 19 Mar 2020 00:41:44 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Patch file is attached.

As noted in the description, this package is not intended for use 
by end-users.  Is there a convention for communicating that?

--
Joseph LaFreniere
>From 77d0cc7e5fbda5dc0aa36cc16f8ffac6ca8591ad Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <[email-masked]>
Date: Wed, 18 Mar 2020 20:59:49 -0500
Subject: [PATCH 1/2] gnu: Add emacs-pretty-hydra.

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a821bc7776..54728d7165 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5576,6 +5576,40 @@ the Hydra very seamless; it's like a minor mode that disables itself
 automatically.")
     (license license:gpl3+)))
 
+(define-public emacs-pretty-hydra
+  (package
+    (name "emacs-pretty-hydra")
+    (version "0.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jerrypnz/major-mode-hydra.el.git")
+             (commit version)))
+       (sha256
+        (base32
+         "08a15knkdq35pzjq82imff016fbfdib5q4glg2xmdy2b5fnk7jqa"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-hydra" ,emacs-hydra)
+       ("emacs-s" ,emacs-s)
+       ("emacs-dash" ,emacs-dash)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'add-source-to-load-path 'remove-pretty-hydra
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; major-mode-hydra is packaged separately.
+             (delete-file "major-mode-hydra.el")
+             #t)))))
+    (home-page "https://github.com/jerrypnz/major-mode-hydra.el")
+    (synopsis "Major mode keybindings managed by Hydra")
+    (description
+     "This package offers an hydra-based method of managing major
+mode-specific key bindings.  It is intended for use as a library only; see
+package @code{emacs-major-mode-hydra} for a user-friendly interface.")
+    (license license:gpl3+)))
+
 (define-public emacs-ivy
   (package
     (name "emacs-ivy")
-- 
2.25.1