all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#34865] [PATCH] Add emacs-zones.
@ 2019-03-15  0:24 Brian Leung
  2019-03-16 10:56 ` Oleg Pykhalov
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Leung @ 2019-03-15  0:24 UTC (permalink / raw)
  To: 34865


[-- Attachment #1.1: Type: text/plain, Size: 14 bytes --]

See attached.

[-- Attachment #1.2: Type: text/html, Size: 39 bytes --]

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

From 1d32be2a74fe747a6b52d6aae580e79969e960ff Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Fri, 15 Mar 2019 01:20:28 +0100
Subject: [PATCH] gnu: Add emacs-zones.

---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9fdb00efb9..51a647608f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5710,6 +5710,32 @@ interface and multiple, selectable \"styles\", whose use is fully
 customizable by the user.")
     (license license:gpl2+)))
 
+(define-public emacs-zones
+  (let ((commit "353fc38a6544eb59887bee045e373406f1d038a5")
+        (revision "1"))
+    (package
+      (name "emacs-zones")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/emacsmirror/zones.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0gwnw2giii2a14nlh62xp45f47cw6ikqphhzpmcw6c7mn9x5z2ar"))))
+      (build-system emacs-build-system)
+      (home-page "https://www.emacswiki.org/emacs/Zones")
+      (synopsis "Define and act on multiple zones of buffer text")
+      (description "Library @file{zones.el} lets you easily define and
+subsequently act on multiple zones of buffer text.  You can think of this as
+enlarging the notion of region.  In effect, it can remove the requirement of
+target text being a contiguous sequence of characters.  A set of buffer zones
+is, in effect, a (typically) noncontiguous set of text.")
+      (license license:gpl3+))))
+
 (define-public emacs-mu4e-alert
   (package
     (name "emacs-mu4e-alert")
-- 
2.21.0


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

* [bug#34865] [PATCH] Add emacs-zones.
  2019-03-15  0:24 [bug#34865] [PATCH] Add emacs-zones Brian Leung
@ 2019-03-16 10:56 ` Oleg Pykhalov
  2019-03-22 21:37   ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Oleg Pykhalov @ 2019-03-16 10:56 UTC (permalink / raw)
  To: Brian Leung; +Cc: 34865

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

Hello Brian,

Could we use emacs-zones from Elpa? See
https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
emacs-zones’ will produce a decent ‘origin’ record to pull a source.

Please, don't forget to add a changelog entry to commit message:

* gnu/packages/emacs-xyz.scm (emacs-zones): New variable.

If you use Magit you could type ‘add’ to paste a yasnippet from
‘etc/snippets/’ Guix Git repository.  Add this directory to
‘yas-snippet-dirs’, see
https://www.gnu.org/software/guix/manual/en/html_node/The-Perfect-Setup.html

Thanks,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* [bug#34865] [PATCH] Add emacs-zones.
  2019-03-16 10:56 ` Oleg Pykhalov
@ 2019-03-22 21:37   ` Ludovic Courtès
  2019-03-24 20:01     ` Oleg Pykhalov
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-03-22 21:37 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: Brian Leung, 34865

Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> Could we use emacs-zones from Elpa? See
> https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
> emacs-zones’ will produce a decent ‘origin’ record to pull a source.

My understanding is that ELPA and MELPA tarballs are not necessarily
persistent and immutable, and that we generally prefer referring
directly to the upstream repo.

Or am I confusing things?

Ludo’.

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

* [bug#34865] [PATCH] Add emacs-zones.
  2019-03-22 21:37   ` Ludovic Courtès
@ 2019-03-24 20:01     ` Oleg Pykhalov
  2019-03-26  9:39       ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Oleg Pykhalov @ 2019-03-24 20:01 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Brian Leung, 34865

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

Hi Ludovic,

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

[…]

>> Could we use emacs-zones from Elpa? See
>> https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
>> emacs-zones’ will produce a decent ‘origin’ record to pull a source.
>
> My understanding is that ELPA and MELPA tarballs are not necessarily
> persistent and immutable, and that we generally prefer referring
> directly to the upstream repo.

Ouch, I thought ELPA is persistent.  That's a significant argument to
not use ELPA for our purposes :-( .

> Or am I confusing things?

We preferred ELPA over GitHub's Git repositories in emacs-xys.scm
(emacs.scm in past), didn't we?

Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* [bug#34865] [PATCH] Add emacs-zones.
  2019-03-24 20:01     ` Oleg Pykhalov
@ 2019-03-26  9:39       ` Ludovic Courtès
  2019-03-26 10:55         ` Ricardo Wurmus
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-03-26  9:39 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: Brian Leung, 34865

Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
> […]
>
>>> Could we use emacs-zones from Elpa? See
>>> https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
>>> emacs-zones’ will produce a decent ‘origin’ record to pull a source.
>>
>> My understanding is that ELPA and MELPA tarballs are not necessarily
>> persistent and immutable, and that we generally prefer referring
>> directly to the upstream repo.
>
> Ouch, I thought ELPA is persistent.  That's a significant argument to
> not use ELPA for our purposes :-( .
>
>> Or am I confusing things?
>
> We preferred ELPA over GitHub's Git repositories in emacs-xys.scm
> (emacs.scm in past), didn't we?

Hmmm, not sure, Ricardo, what’s the story?  :-)

Ludo’.

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

* [bug#34865] [PATCH] Add emacs-zones.
  2019-03-26  9:39       ` Ludovic Courtès
@ 2019-03-26 10:55         ` Ricardo Wurmus
  2019-03-27 10:57           ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2019-03-26 10:55 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 34865, Brian Leung


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

> Hi Oleg,
>
> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>
>> Ludovic Courtès <ludo@gnu.org> writes:
>>
>> […]
>>
>>>> Could we use emacs-zones from Elpa? See
>>>> https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
>>>> emacs-zones’ will produce a decent ‘origin’ record to pull a source.
>>>
>>> My understanding is that ELPA and MELPA tarballs are not necessarily
>>> persistent and immutable, and that we generally prefer referring
>>> directly to the upstream repo.
>>
>> Ouch, I thought ELPA is persistent.  That's a significant argument to
>> not use ELPA for our purposes :-( .

I only know that MELPA isn’t immutable.  I assumed that ELPA is fine.

>> We preferred ELPA over GitHub's Git repositories in emacs-xys.scm
>> (emacs.scm in past), didn't we?
>
> Hmmm, not sure, Ricardo, what’s the story?  :-)

I don’t think we did.  I can’t think of even one case where we switched
from git-fetch from GitHub to url-fetch from ELPA.

git-fetch is the preferred way when there are no stable tarballs.

--
Ricardo

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

* [bug#34865] [PATCH] Add emacs-zones.
  2019-03-26 10:55         ` Ricardo Wurmus
@ 2019-03-27 10:57           ` Ludovic Courtès
  2019-03-27 19:27             ` bug#34865: " Oleg Pykhalov
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-03-27 10:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34865, Brian Leung

Hello,

Ricardo Wurmus <rekado@elephly.net> skribis:

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

[...]

>>>>> Could we use emacs-zones from Elpa? See
>>>>> https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
>>>>> emacs-zones’ will produce a decent ‘origin’ record to pull a source.
>>>>
>>>> My understanding is that ELPA and MELPA tarballs are not necessarily
>>>> persistent and immutable, and that we generally prefer referring
>>>> directly to the upstream repo.
>>>
>>> Ouch, I thought ELPA is persistent.  That's a significant argument to
>>> not use ELPA for our purposes :-( .
>
> I only know that MELPA isn’t immutable.  I assumed that ELPA is fine.

[...]

> git-fetch is the preferred way when there are no stable tarballs.

So, Oleg, I think you can go either way, but fetching over Git is
probably safer.

Can you apply the patch?

Thanks,
Ludo’.

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

* bug#34865: [PATCH] Add emacs-zones.
  2019-03-27 10:57           ` Ludovic Courtès
@ 2019-03-27 19:27             ` Oleg Pykhalov
  0 siblings, 0 replies; 8+ messages in thread
From: Oleg Pykhalov @ 2019-03-27 19:27 UTC (permalink / raw)
  To: 34865-done; +Cc: Brian Leung

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

Hello,

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

[…]

>>>>>> Could we use emacs-zones from Elpa? See
>>>>>> https://elpa.gnu.org/packages/zones.html . ‘guix import elpa
>>>>>> emacs-zones’ will produce a decent ‘origin’ record to pull a source.
>>>>>
>>>>> My understanding is that ELPA and MELPA tarballs are not necessarily
>>>>> persistent and immutable, and that we generally prefer referring
>>>>> directly to the upstream repo.
>>>>
>>>> Ouch, I thought ELPA is persistent.  That's a significant argument to
>>>> not use ELPA for our purposes :-( .
>>
>> I only know that MELPA isn’t immutable.  I assumed that ELPA is fine.
>
> [...]
>
>> git-fetch is the preferred way when there are no stable tarballs.
>
> So, Oleg, I think you can go either way, but fetching over Git is
> probably safer.
>
> Can you apply the patch?

OK, pushed as c881ed8698517a2c2007c2fdc3a7aeec52ff109c with a source
fetching over Git.

Thanks,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2019-03-27 19:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-15  0:24 [bug#34865] [PATCH] Add emacs-zones Brian Leung
2019-03-16 10:56 ` Oleg Pykhalov
2019-03-22 21:37   ` Ludovic Courtès
2019-03-24 20:01     ` Oleg Pykhalov
2019-03-26  9:39       ` Ludovic Courtès
2019-03-26 10:55         ` Ricardo Wurmus
2019-03-27 10:57           ` Ludovic Courtès
2019-03-27 19:27             ` bug#34865: " Oleg Pykhalov

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.