unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Add emacs-emms-player-mpv.
@ 2016-06-29  5:45 Ricardo Wurmus
  2016-06-29  5:45 ` [PATCH 1/2] gnu: emms: Rename package to "emacs-emms" Ricardo Wurmus
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ricardo Wurmus @ 2016-06-29  5:45 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

I think we need to rename the “emms” package to “emacs-emms”.  (This is what
the first patch does.)  Currently, the emacs-build-system will only add to the
Emacs “load-path” the “site-lisp” directories of packages that start with
“emacs-”.  I think it may be necessary to relax this requirement for cases in
which a non-Emacs package provides an Emacs mode.  In the case of “emms”,
however, I think renaming it is justified.

The second patch adds an EMMS player.  The byte-compilation phase only
succeeds after renaming “emms”, because otherwise it wouldn’t find the lisp
files provides by that package.

Ricardo Wurmus (2):
  gnu: emms: Rename package to "emacs-emms".
  gnu: Add emacs-emms-player-mpv.

 gnu/packages/emacs.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

-- 
2.8.4

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

* [PATCH 1/2] gnu: emms: Rename package to "emacs-emms".
  2016-06-29  5:45 [PATCH 0/2] Add emacs-emms-player-mpv Ricardo Wurmus
@ 2016-06-29  5:45 ` Ricardo Wurmus
  2016-06-29  5:45 ` [PATCH 2/2] gnu: Add emacs-emms-player-mpv Ricardo Wurmus
  2016-06-29  9:02 ` [PATCH 0/2] " Alex Kost
  2 siblings, 0 replies; 8+ messages in thread
From: Ricardo Wurmus @ 2016-06-29  5:45 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/emacs.scm (emms): Rename to "emacs-emms".
---
 gnu/packages/emacs.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 0c0182d..bdfa027 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -829,7 +829,7 @@ provides an optional IDE-like error list.")
 
 (define-public emms
   (package
-    (name "emms")
+    (name "emacs-emms")
     (version "4.1")
     (source (origin
               (method url-fetch)
-- 
2.8.4

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

* [PATCH 2/2] gnu: Add emacs-emms-player-mpv.
  2016-06-29  5:45 [PATCH 0/2] Add emacs-emms-player-mpv Ricardo Wurmus
  2016-06-29  5:45 ` [PATCH 1/2] gnu: emms: Rename package to "emacs-emms" Ricardo Wurmus
@ 2016-06-29  5:45 ` Ricardo Wurmus
  2016-06-29  9:02 ` [PATCH 0/2] " Alex Kost
  2 siblings, 0 replies; 8+ messages in thread
From: Ricardo Wurmus @ 2016-06-29  5:45 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/emacs.scm (emacs-emms-player-mpv): New variable.
---
 gnu/packages/emacs.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index bdfa027..b0f1eb2 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -941,6 +941,29 @@ light user interface.")
     (home-page "http://www.gnu.org/software/emms/")
     (license license:gpl3+)))
 
+(define-public emacs-emms-player-mpv
+  (package
+    (name "emacs-emms-player-mpv")
+    (version "0.0.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/dochang/emms-player-mpv/archive/"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "01wj410dpx25b3i8781i2j9c6nlvzvvphy9qgh7zfpmyz6a3wsm4"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emms" ,emms)))
+    (home-page "https://github.com/dochang/emms-player-mpv/")
+    (synopsis "Mpv support for EMMS")
+    (description
+     "This package provides an EMMS player that uses mpv.  It supports pause
+and seeking.")
+    (license license:gpl3+)))
+
 \f
 ;;;
 ;;; Miscellaneous.
-- 
2.8.4

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

* Re: [PATCH 0/2] Add emacs-emms-player-mpv.
  2016-06-29  5:45 [PATCH 0/2] Add emacs-emms-player-mpv Ricardo Wurmus
  2016-06-29  5:45 ` [PATCH 1/2] gnu: emms: Rename package to "emacs-emms" Ricardo Wurmus
  2016-06-29  5:45 ` [PATCH 2/2] gnu: Add emacs-emms-player-mpv Ricardo Wurmus
@ 2016-06-29  9:02 ` Alex Kost
  2016-06-29 13:09   ` Ludovic Courtès
  2 siblings, 1 reply; 8+ messages in thread
From: Alex Kost @ 2016-06-29  9:02 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus (2016-06-29 08:45 +0300) wrote:

> Hi Guix,
>
> I think we need to rename the “emms” package to “emacs-emms”.  (This is what
> the first patch does.)  Currently, the emacs-build-system will only add to the
> Emacs “load-path” the “site-lisp” directories of packages that start with
> “emacs-”.  I think it may be necessary to relax this requirement for cases in
> which a non-Emacs package provides an Emacs mode.

I agree!  I also think this check for "emacs-" is not needed.

> In the case of “emms”,
> however, I think renaming it is justified.

I agree, but note that there was a discussion about renaming all emacs
packages (geiser, magit, etc.) and making alisases for the old names:
<http://lists.gnu.org/archive/html/guix-devel/2015-08/msg00316.html>

> The second patch adds an EMMS player.  The byte-compilation phase only
> succeeds after renaming “emms”, because otherwise it wouldn’t find the lisp
> files provides by that package.
>
> Ricardo Wurmus (2):
>   gnu: emms: Rename package to "emacs-emms".
>   gnu: Add emacs-emms-player-mpv.

Both patches look good to me, but I would wait for other comments about
renaming as it is not very backward compatible :-)

-- 
Alex

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

* Re: [PATCH 0/2] Add emacs-emms-player-mpv.
  2016-06-29  9:02 ` [PATCH 0/2] " Alex Kost
@ 2016-06-29 13:09   ` Ludovic Courtès
  2016-06-29 20:07     ` Ricardo Wurmus
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2016-06-29 13:09 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

Alex Kost <alezost@gmail.com> skribis:

> Ricardo Wurmus (2016-06-29 08:45 +0300) wrote:
>
>> Hi Guix,
>>
>> I think we need to rename the “emms” package to “emacs-emms”.  (This is what
>> the first patch does.)  Currently, the emacs-build-system will only add to the
>> Emacs “load-path” the “site-lisp” directories of packages that start with
>> “emacs-”.  I think it may be necessary to relax this requirement for cases in
>> which a non-Emacs package provides an Emacs mode.
>
> I agree!  I also think this check for "emacs-" is not needed.
>
>> In the case of “emms”,
>> however, I think renaming it is justified.
>
> I agree, but note that there was a discussion about renaming all emacs
> packages (geiser, magit, etc.) and making alisases for the old names:
> <http://lists.gnu.org/archive/html/guix-devel/2015-08/msg00316.html>

A year later, it still looks like a good idea.  :-)

Damn it, we should do something about it.

>> The second patch adds an EMMS player.  The byte-compilation phase only
>> succeeds after renaming “emms”, because otherwise it wouldn’t find the lisp
>> files provides by that package.
>>
>> Ricardo Wurmus (2):
>>   gnu: emms: Rename package to "emacs-emms".
>>   gnu: Add emacs-emms-player-mpv.
>
> Both patches look good to me, but I would wait for other comments about
> renaming as it is not very backward compatible :-)

A mass rename would cause users a lot of pain, but a single package is
OK, IMO.  (Don’t tell me you want to do a mass rename at a one
rename/week rate!  ;-))

Thoughts?

Ludo’.

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

* Re: [PATCH 0/2] Add emacs-emms-player-mpv.
  2016-06-29 13:09   ` Ludovic Courtès
@ 2016-06-29 20:07     ` Ricardo Wurmus
  2016-06-30 12:39       ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2016-06-29 20:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Alex Kost


Ludovic Courtès <ludo@gnu.org> writes:

> Alex Kost <alezost@gmail.com> skribis:
>
>> Ricardo Wurmus (2016-06-29 08:45 +0300) wrote:
>>
>>> Hi Guix,
>>>
>>> I think we need to rename the “emms” package to “emacs-emms”.  (This is what
>>> the first patch does.)  Currently, the emacs-build-system will only add to the
>>> Emacs “load-path” the “site-lisp” directories of packages that start with
>>> “emacs-”.  I think it may be necessary to relax this requirement for cases in
>>> which a non-Emacs package provides an Emacs mode.
>>
>> I agree!  I also think this check for "emacs-" is not needed.
>>
>>> In the case of “emms”,
>>> however, I think renaming it is justified.
>>
>> I agree, but note that there was a discussion about renaming all emacs
>> packages (geiser, magit, etc.) and making alisases for the old names:
>> <http://lists.gnu.org/archive/html/guix-devel/2015-08/msg00316.html>
>
> A year later, it still looks like a good idea.  :-)
>
> Damn it, we should do something about it.

I’ll add it to my list in the hope that I can mark it DONE without
having to implement it myself :)  This is how things often go as far as
Guix is concerned.

>>> The second patch adds an EMMS player.  The byte-compilation phase only
>>> succeeds after renaming “emms”, because otherwise it wouldn’t find the lisp
>>> files provides by that package.
>>>
>>> Ricardo Wurmus (2):
>>>   gnu: emms: Rename package to "emacs-emms".
>>>   gnu: Add emacs-emms-player-mpv.
>>
>> Both patches look good to me, but I would wait for other comments about
>> renaming as it is not very backward compatible :-)
>
> A mass rename would cause users a lot of pain, but a single package is
> OK, IMO.

Do you want me to define an alias for “emms” now in the manner you
suggested in your email from 2015?  Or should this be done once the UI
supports dealing with deprecated packages?

~~ Ricardo

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

* Re: [PATCH 0/2] Add emacs-emms-player-mpv.
  2016-06-29 20:07     ` Ricardo Wurmus
@ 2016-06-30 12:39       ` Ludovic Courtès
  2016-07-03 16:38         ` Ricardo Wurmus
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2016-06-30 12:39 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel, Alex Kost

Ricardo Wurmus <rekado@elephly.net> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Alex Kost <alezost@gmail.com> skribis:
>>
>>> Ricardo Wurmus (2016-06-29 08:45 +0300) wrote:
>>>
>>>> Hi Guix,
>>>>
>>>> I think we need to rename the “emms” package to “emacs-emms”.  (This is what
>>>> the first patch does.)  Currently, the emacs-build-system will only add to the
>>>> Emacs “load-path” the “site-lisp” directories of packages that start with
>>>> “emacs-”.  I think it may be necessary to relax this requirement for cases in
>>>> which a non-Emacs package provides an Emacs mode.
>>>
>>> I agree!  I also think this check for "emacs-" is not needed.
>>>
>>>> In the case of “emms”,
>>>> however, I think renaming it is justified.
>>>
>>> I agree, but note that there was a discussion about renaming all emacs
>>> packages (geiser, magit, etc.) and making alisases for the old names:
>>> <http://lists.gnu.org/archive/html/guix-devel/2015-08/msg00316.html>
>>
>> A year later, it still looks like a good idea.  :-)
>>
>> Damn it, we should do something about it.
>
> I’ll add it to my list in the hope that I can mark it DONE without
> having to implement it myself :)  This is how things often go as far as
> Guix is concerned.

:-)

> Do you want me to define an alias for “emms” now in the manner you
> suggested in your email from 2015?  Or should this be done once the UI
> supports dealing with deprecated packages?

Once the UI is done.  Currently this would have no effect.

Ludo’.

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

* Re: [PATCH 0/2] Add emacs-emms-player-mpv.
  2016-06-30 12:39       ` Ludovic Courtès
@ 2016-07-03 16:38         ` Ricardo Wurmus
  0 siblings, 0 replies; 8+ messages in thread
From: Ricardo Wurmus @ 2016-07-03 16:38 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Alex Kost


Ludovic Courtès <ludo@gnu.org> writes:

>> Do you want me to define an alias for “emms” now in the manner you
>> suggested in your email from 2015?  Or should this be done once the UI
>> supports dealing with deprecated packages?
>
> Once the UI is done.  Currently this would have no effect.

Okay, pushed to master.  Thank you for the review.

~~ Ricardo

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

end of thread, other threads:[~2016-07-03 16:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-29  5:45 [PATCH 0/2] Add emacs-emms-player-mpv Ricardo Wurmus
2016-06-29  5:45 ` [PATCH 1/2] gnu: emms: Rename package to "emacs-emms" Ricardo Wurmus
2016-06-29  5:45 ` [PATCH 2/2] gnu: Add emacs-emms-player-mpv Ricardo Wurmus
2016-06-29  9:02 ` [PATCH 0/2] " Alex Kost
2016-06-29 13:09   ` Ludovic Courtès
2016-06-29 20:07     ` Ricardo Wurmus
2016-06-30 12:39       ` Ludovic Courtès
2016-07-03 16:38         ` Ricardo Wurmus

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).