[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26137: [PATCH 3/6] services: configuration: Rewrite id procedure.
From: |
Mathieu Othacehe |
Subject: |
bug#26137: [PATCH 3/6] services: configuration: Rewrite id procedure. |
Date: |
Fri, 17 Mar 2017 11:34:27 +0100 |
* gnu/services/configuration.scm (id): Replace it using the more concise
version found in messaging.scm.
---
gnu/services/configuration.scm | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index f59920d5a..4ee92e35f 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -87,14 +87,9 @@
(configuration-field-name field) val))))
fields))
-(define (id ctx part . parts)
- (let ((part (syntax->datum part)))
- (datum->syntax
- ctx
- (match parts
- (() part)
- (parts (symbol-append part
- (syntax->datum (apply id ctx 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)
--
2.12.0
- bug#26137: [PATCH 0/6 v2] Add tlp service., Mathieu Othacehe, 2017/03/17
- bug#26137: [PATCH 1/6] gnu: tlp: Read configuration from /etc/tlp., Mathieu Othacehe, 2017/03/17
- bug#26137: [PATCH v3 0/6] Add TLP service., Mathieu Othacehe, 2017/03/24
- bug#26137: [PATCH v3 1/6] gnu: tlp: Read configuration from /etc/tlp., Mathieu Othacehe, 2017/03/24
- bug#26137: [PATCH v3 3/6] services: configuration: Rewrite id procedure., Mathieu Othacehe, 2017/03/24
- bug#26137: [PATCH v3 2/6] services: Factorize define-maybe macro., Mathieu Othacehe, 2017/03/24
- bug#26137: [PATCH v3 5/6] services: openvpn: Fix a typo which was corrected in generated doc., Mathieu Othacehe, 2017/03/24
- bug#26137: [PATCH v3 6/6] doc: Re-generate openvpn service documentation., Mathieu Othacehe, 2017/03/24
- bug#26137: [PATCH v3 4/6] gnu: Add tlp service., Mathieu Othacehe, 2017/03/24