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.
This commit is contained in:
Ludovic Courtès 2017-03-08 13:23:57 +01:00
parent beb1e8067d
commit 5d1ee4d7bc
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 2 deletions

View File

@ -49,8 +49,9 @@
;;; ;;;
;;; Code: ;;; Code:
(define (id ctx . parts) (define-syntax-rule (id ctx parts ...)
(datum->syntax ctx (apply symbol-append (map syntax->datum parts)))) "Assemble PARTS into a raw (unhygienic) identifier."
(datum->syntax ctx (symbol-append (syntax->datum parts) ...)))
(define-syntax define-maybe (define-syntax define-maybe
(lambda (x) (lambda (x)