unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 54578@debbugs.gnu.org
Subject: [bug#54578] [PATCH 1/2] guix: Add define-deprecated/public-alias.
Date: Tue, 29 Mar 2022 21:16:35 +0200	[thread overview]
Message-ID: <06c24c012347d2148f26a79e71213e7edb122f42.camel@gmail.com> (raw)
In-Reply-To: <5d9c4baf3301eee833fa575f0639760046200a6b.camel@gmail.com>

* guix/deprecation.scm (define-deprecated/public-alias): New variable.
---
 guix/deprecation.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/guix/deprecation.scm b/guix/deprecation.scm
index 09a27789c9..8147a01e24 100644
--- a/guix/deprecation.scm
+++ b/guix/deprecation.scm
@@ -25,6 +25,7 @@ (define-module (guix deprecation)
 
             define-deprecated/public
             define-deprecated/alias
+            define-deprecated/public-alias
 
             warn-about-old-daemon
             warn-about-deprecation))
@@ -124,3 +125,10 @@ (define-syntax deprecated
         (id
          (identifier? #'id)
          #'replacement)))))
+
+(define-syntax-rule (define-deprecated/public-alias deprecated replacement)
+  "Like define-deprecated/alias, but exporting DEPRECATED.
+It is assumed, that REPLACEMENT is already public."
+  (begin
+    (define-deprecated/alias deprecated replacement)
+    (export deprecated)))
-- 
2.34.0





  parent reply	other threads:[~2022-03-29 19:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-26  8:57 [bug#54578] [PATCH] services: Replace murmur-service-type with mumble-server-service-type Liliana Marie Prikler
2022-03-26  8:57 ` [bug#54578] [PATCH 2/2] " Liliana Marie Prikler
2022-03-29  9:40 ` [bug#54578] [PATCH] " Ludovic Courtès
2022-03-29 19:16 ` Liliana Marie Prikler [this message]
2022-03-30 19:59   ` [bug#54578] [PATCH 1/2] guix: Add define-deprecated/public-alias Ludovic Courtès
2022-04-12 18:42     ` bug#54578: " 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=06c24c012347d2148f26a79e71213e7edb122f42.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=54578@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /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).