From: "Ludovic Courtès" <ludo@gnu.org>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 33836@debbugs.gnu.org
Subject: [bug#33836] [PATCH 1/2] services: configuration: Add location.
Date: Wed, 26 Dec 2018 18:30:09 +0100 [thread overview]
Message-ID: <87d0poci1q.fsf@gnu.org> (raw)
In-Reply-To: <20181223154021.14287-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Sun, 23 Dec 2018 18:40:20 +0300")
Hello,
Oleg Pykhalov <go.wigust@gmail.com> skribis:
> * gnu/services/configuration.scm (define-configuration): Add location.
> * gnu/services/mail.scm (namespace-configuration)[location]: Rename to
> 'mailbox-location'.
> (uglify-field-name): Handle this.
> * doc/guix.texi (Mail Services): Document this.
Nice!
> --- a/gnu/services/configuration.scm
> +++ b/gnu/services/configuration.scm
> @@ -22,6 +22,7 @@
> #:use-module (guix packages)
> #:use-module (guix records)
> #:use-module (guix gexp)
> + #:use-module ((guix utils) #:select (source-properties->location))
> #:autoload (texinfo) (texi-fragment->stexi)
> #:autoload (texinfo serialize) (stexi->texi)
> #:use-module (ice-9 match)
> @@ -129,6 +130,10 @@
> #,(id #'stem #'% #'stem)
> #,(id #'stem #'make- #'stem)
> #,(id #'stem #'stem #'?)
> + (location configuration-location
> + (default (and=> (current-source-location)
> + source-properties->location))
> + (innate))
What about calling the field ‘%location’ instead? That would avoid the
collision with the other ‘location’ field and it should be fine because
it’s not a field we manually set anyway.
Also, instead of ‘configuration-location’, shouldn’t it be
(id #'stem #'-location)
? That will avoid ending up with one ‘configuration-location’ binding
for each record type.
Thanks,
Ludo’.
next prev parent reply other threads:[~2018-12-26 17:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-22 20:38 [bug#33836] [PATCH 0/2] location in define-configuration Oleg Pykhalov
2018-12-22 20:42 ` [bug#33836] [PATCH 1/2] services: configuration: Add location Oleg Pykhalov
2018-12-22 20:42 ` [bug#33836] [PATCH 2/2] services: zabbix-front-end: Show location in messages Oleg Pykhalov
2018-12-23 14:21 ` [bug#33836] [PATCH 1/2] services: configuration: Add location Oleg Pykhalov
2018-12-23 15:36 ` [bug#33836] [PATCH] services: zabbix-front-end: Show location in messages Oleg Pykhalov
2018-12-26 17:31 ` Ludovic Courtès
2018-12-23 15:40 ` [bug#33836] [PATCH 1/2] services: configuration: Add location Oleg Pykhalov
2018-12-26 17:30 ` Ludovic Courtès [this message]
2019-02-15 22:24 ` Ludovic Courtès
2019-02-28 22:39 ` [bug#33836] [PATCH 0/2] Apply suggestions Oleg Pykhalov
2019-02-28 22:40 ` [bug#33836] [PATCH 1/2] services: configuration: Add '%location' Oleg Pykhalov
2019-02-28 22:40 ` [bug#33836] [PATCH 2/2] services: zabbix-front-end: Show location in messages Oleg Pykhalov
2019-03-10 17:21 ` [bug#33836] [PATCH 0/2] Apply suggestions Ludovic Courtès
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=87d0poci1q.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=33836@debbugs.gnu.org \
--cc=go.wigust@gmail.com \
/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).