From patchwork Fri Jan 6 14:10:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 45881 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1947F27BBEB; Fri, 6 Jan 2023 14:11:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 421FE27BBE9 for ; Fri, 6 Jan 2023 14:11:44 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDnR4-0001t2-C1; Fri, 06 Jan 2023 09:11:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDnR0-0001sg-NH for guix-patches@gnu.org; Fri, 06 Jan 2023 09:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDnR0-0008RI-7n for guix-patches@gnu.org; Fri, 06 Jan 2023 09:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDnR0-0004Ae-3U for guix-patches@gnu.org; Fri, 06 Jan 2023 09:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60582] [PATCH v2 1/2] services: configuration: Format a list of packages by their names. References: In-Reply-To: Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Jan 2023 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60582 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60582@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 60582-submit@debbugs.gnu.org id=B60582.167301425116003 (code B ref 60582); Fri, 06 Jan 2023 14:11:02 +0000 Received: (at 60582) by debbugs.gnu.org; 6 Jan 2023 14:10:51 +0000 Received: from localhost ([127.0.0.1]:54124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDnQo-00049y-SL for submit@debbugs.gnu.org; Fri, 06 Jan 2023 09:10:51 -0500 Received: from smtpm5.myservices.hosting ([185.26.105.236]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDnQn-00049h-2P for 60582@debbugs.gnu.org; Fri, 06 Jan 2023 09:10:49 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm5.myservices.hosting (Postfix) with ESMTP id 8F9A320C04 for <60582@debbugs.gnu.org>; Fri, 6 Jan 2023 15:10:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 43CC8800A2; Fri, 6 Jan 2023 15:10:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id H-hRcKOv_ZN6; Fri, 6 Jan 2023 15:10:44 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-118-236.dsl.telepac.pt [85.242.118.236]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id C66318009A; Fri, 6 Jan 2023 15:10:43 +0100 (CET) From: Bruno Victal Date: Fri, 6 Jan 2023 14:10:34 +0000 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/services/configuration.scm (generate-documentation): Format a list of packages by their names. --- gnu/services/configuration.scm | 4 ++++ 1 file changed, 4 insertions(+) base-commit: a768b0433e0b79c5a32910ce5515086b92725e84 diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm index 6b0291dc00..482b49aae4 100644 --- a/gnu/services/configuration.scm +++ b/gnu/services/configuration.scm @@ -35,6 +35,7 @@ (define-module (gnu services configuration) #:autoload (texinfo serialize) (stexi->texi) #:use-module (ice-9 curried-definitions) #:use-module (ice-9 match) + #:use-module (ice-9 format) #:use-module (srfi srfi-1) #:use-module (srfi srfi-34) #:use-module (srfi srfi-35) @@ -370,6 +371,9 @@ (define (show-default val) (cond ((package? val) (symbol->string (package->symbol val))) + ((and ((list-of package?) val) (not (null? val))) + (format #f "(~{~a~^ ~})" + (map package->symbol val))) (else (str val)))) `(entry (% (heading