[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/16: services: prosody: Make sure 'id' is available at expansion time.
From: |
Ludovic Courtès |
Subject: |
03/16: services: prosody: Make sure 'id' is available at expansion time. |
Date: |
Wed, 8 Mar 2017 17:44:33 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 5d1ee4d7bc8fa3953c498057da3220029ba7c69d
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 8 13:23:57 2017 +0100
services: prosody: Make sure 'id' is available at expansion time.
* gnu/services/messaging.scm (id): Use 'define-syntax-rule' instead of
'define' to make sure 'id' is available at expansion time.
---
gnu/services/messaging.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/services/messaging.scm b/gnu/services/messaging.scm
index 9f59d6e..cd740c7 100644
--- a/gnu/services/messaging.scm
+++ b/gnu/services/messaging.scm
@@ -49,8 +49,9 @@
;;;
;;; Code:
-(define (id ctx . parts)
- (datum->syntax ctx (apply symbol-append (map syntax->datum parts))))
+(define-syntax-rule (id ctx parts ...)
+ "Assemble PARTS into a raw (unhygienic) identifier."
+ (datum->syntax ctx (symbol-append (syntax->datum parts) ...)))
(define-syntax define-maybe
(lambda (x)
- branch master updated (6f5d28f -> 7447aa3), Ludovic Courtès, 2017/03/08
- 03/16: services: prosody: Make sure 'id' is available at expansion time.,
Ludovic Courtès <=
- 02/16: gnu: Remove unneeded imports., Ludovic Courtès, 2017/03/08
- 04/16: services: prosody: Use 'id' to introduce unhygienic top-level identifiers., Ludovic Courtès, 2017/03/08
- 05/16: build: Unset 'NIX_BUILD_HOOK' when offloading support is missing., Ludovic Courtès, 2017/03/08
- 09/16: gnu: Add guile2.2-reader., Ludovic Courtès, 2017/03/08
- 01/16: guix archive: Allow compilation with Guile 2.2., Ludovic Courtès, 2017/03/08
- 06/16: hash: Close or flush sha256 output ports before calling their 'get' procedure., Ludovic Courtès, 2017/03/08
- 11/16: download: Update the Savannah mirror list., Ludovic Courtès, 2017/03/08
- 12/16: ui: Avoid '_' as a pattern variable in 'match'., Ludovic Courtès, 2017/03/08
- 15/16: packages: Use address@hidden syntax when reporting ambiguities., Ludovic Courtès, 2017/03/08
- 13/16: ui: Don't use '%default-port-encoding' to set the encoding of string ports., Ludovic Courtès, 2017/03/08