unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 65841@debbugs.gnu.org
Cc: andrew@trop.in, liliana.prikler@gmail.com
Subject: [bug#65841] [PATCH emacs-team 2/5] gnu: Add emacs-next.
Date: Sat, 9 Sep 2023 16:29:07 +0200	[thread overview]
Message-ID: <f65a727cb3f67970a9403f91a15c9b47da0796d8.1694270165.git.liliana.prikler@gmail.com> (raw)
In-Reply-To: <cover.1694270165.git.liliana.prikler@gmail.com>

* gnu/packages/emacs.scm (emacs->emacs-next, emacs-next): New variable.
---
 gnu/packages/emacs.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 469c5e36f2..1be58bd5c1 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -86,7 +86,8 @@ (define-module (gnu packages emacs)
   #:use-module (gnu packages xorg)
   #:use-module (guix utils)
   #:use-module (ice-9 match)
-  #:use-module (srfi srfi-1))
+  #:use-module (srfi srfi-1)
+  #:export (emacs->emacs-next))
 
 (define (%emacs-modules build-system)
   (let ((which (build-system-name build-system)))
@@ -499,6 +500,21 @@ (define-public emacs-next-minimal
        (sha256
         (base32 "00mwpq1msr3jij281w5piqmbwq968xr8dn9hqbf4r947ck754kn9")))))))
 
+(define* (emacs->emacs-next emacs #:optional name
+                            #:key (version (package-version emacs-next-minimal))
+                            (source (package-source emacs-next-minimal)))
+  (package
+    (inherit emacs)
+    (name (or name
+              (and (string-prefix? "emacs" (package-name emacs))
+                   (string-append "emacs-next"
+                                  (string-drop (package-name emacs)
+                                               (string-length "emacs"))))))
+    (version version)
+    (source source)))
+
+(define-public emacs-next (emacs->emacs-next emacs))
+
 (define-public guile-emacs
   (let ((commit "41120e0f595b16387eebfbf731fff70481de1b4b")
         (revision "0"))
-- 
2.41.0





  parent reply	other threads:[~2023-09-09 15:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-09 14:36 [bug#65841] [PATCH emacs-team 0/5] Add emacs-next (generalized) Liliana Marie Prikler
2023-09-09 10:40 ` [bug#65841] [PATCH emacs-team 1/5] gnu: Add emacs-next-minimal Liliana Marie Prikler
2023-09-11  9:54   ` Andrew Tropin
2023-09-16 16:10     ` Liliana Marie Prikler
2023-09-09 14:29 ` Liliana Marie Prikler [this message]
2023-09-09 14:30 ` [bug#65841] [PATCH emacs-team 3/5] gnu: Add emacs-next-pgtk Liliana Marie Prikler
2023-09-09 14:32 ` [bug#65841] [PATCH emacs-team 4/5] gnu: Add emacs-next-pgtk-xwidgets Liliana Marie Prikler
2023-09-09 14:33 ` [bug#65841] [PATCH emacs-team 5/5] gnu: Add emacs-next-tree-sitter Liliana Marie Prikler
2023-09-11  9:57   ` Andrew Tropin
2023-09-11  9:59 ` [bug#65841] [PATCH emacs-team 0/5] Add emacs-next (generalized) Andrew Tropin
2023-09-16 16:11   ` bug#65841: " Liliana Marie Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f65a727cb3f67970a9403f91a15c9b47da0796d8.1694270165.git.liliana.prikler@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=65841@debbugs.gnu.org \
    --cc=andrew@trop.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).