From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YDWpFl6/wWNMBQAAbAwnHQ (envelope-from ) for ; Fri, 13 Jan 2023 21:30:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8CK9Fl6/wWNHRQAA9RJhRA (envelope-from ) for ; Fri, 13 Jan 2023 21:30:22 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DB7122E1DF for ; Fri, 13 Jan 2023 21:30:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGQgf-0005Yt-6h; Fri, 13 Jan 2023 15:30:05 -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 1pGQgc-0005Xo-TX for guix-patches@gnu.org; Fri, 13 Jan 2023 15:30: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 1pGQgc-0003et-Kr for guix-patches@gnu.org; Fri, 13 Jan 2023 15:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGQgc-0001MD-0D for guix-patches@gnu.org; Fri, 13 Jan 2023 15:30:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60582] [PATCH] Properly format list of packages & sync lightdm documentation. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Jan 2023 20:30:01 +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: Bruno Victal Cc: 60582@debbugs.gnu.org Received: via spool by 60582-submit@debbugs.gnu.org id=B60582.16736417795167 (code B ref 60582); Fri, 13 Jan 2023 20:30:01 +0000 Received: (at 60582) by debbugs.gnu.org; 13 Jan 2023 20:29:39 +0000 Received: from localhost ([127.0.0.1]:52496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGQgE-0001LH-VZ for submit@debbugs.gnu.org; Fri, 13 Jan 2023 15:29:39 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:41777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGQgD-0001Ky-Ow for 60582@debbugs.gnu.org; Fri, 13 Jan 2023 15:29:38 -0500 Received: by mail-qt1-f172.google.com with SMTP id d16so7074322qtw.8 for <60582@debbugs.gnu.org>; Fri, 13 Jan 2023 12:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=LjyYAedbBVdP2JfYGVXx3juNYScgWYVzmvFxuXxjc2E=; b=c56ovdKKOfsyLSXtm6/AIF9t4glQXCj0JX0NziQaRwq3n15Y98TNAfmAPny8txJbjT Pl5VLcH26tGhY9rSpXF7M3hBCZQ3TrThLT496n7Mddu1MpoVQLV6GL2t1TQJ90cOB0mY R004Qfk+JDFPrPLiqhenkcczho6y3NDTeiuuEXfo0qwh6s3feuuOAMmuKUhLO1ojwMVL +EX+4Ly/tr4FeFQeYuyCaLwt4xfL/YQVbxkBO3vm4NQ8uznE4oKZtq0g7Sn6ZTtdKxQJ r5TAuQ3TrQNOC6Lv661CyKY3St3PPulI3HrwRj8XRTopF00XNEkNnhWJ2wMG1Jmp2xVk kFgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LjyYAedbBVdP2JfYGVXx3juNYScgWYVzmvFxuXxjc2E=; b=fqZ9daVfC88S4rwP84G1OBHfty0Pgmt2/sk9qUo+4jONA0S3/SCfKNUQIYHWkLYrE4 OVqdlbJGK87hLCNtFyKdldfbSmH2wXtO3ztB+u8JA+uuG0eBcO8sqWnpyW7oQIK6Bsuc B0h1y3Ae0OdCsIfztKWwN+D+p0jfE+/6fl9gaLRocxp2HSwbIpg/chSBKx2EacxY5qQy SvUrqSuvv2ES39b+fdmUaz349xmzuGpG87lwf29mPGdXl+ShYWUUh6Qx2nL8cWAAnsTr tTBjcAOydzDBDWE4bkpPcJ1DBlMAbrTbdcZ1MvvhdCppmmixCpiyst1BCzPHsM3cgZmg LPvg== X-Gm-Message-State: AFqh2krbzVFJyHUCPRVGeNsa/rfBGKE0jA7jWIN1J4Y9HyQCzCwKp9MS 123wFOPjcvh3Vu0p7yskzSWQO+Mr6NwWOczy X-Google-Smtp-Source: AMrXdXtMZp5dBc6rYPsE0gi2CJ/tdC7NiOCxcU9cJ9qmLQMjcL8IIMN1rrU8SEqjqK3pOFxpVjve9Q== X-Received: by 2002:ac8:4e44:0:b0:3a9:8842:5854 with SMTP id e4-20020ac84e44000000b003a988425854mr149979113qtw.52.1673641772115; Fri, 13 Jan 2023 12:29:32 -0800 (PST) Received: from hurd (dsl-10-149-10.b2b2c.ca. [72.10.149.10]) by smtp.gmail.com with ESMTPSA id x14-20020a05620a258e00b006e07228ed53sm13173242qko.18.2023.01.13.12.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 12:29:31 -0800 (PST) From: Maxim Cournoyer References: <11414ae2650cde429b82aa168041e3989cf7d84c.1672951913.git.mirai@makinata.eu> Date: Fri, 13 Jan 2023 15:29:30 -0500 In-Reply-To: <11414ae2650cde429b82aa168041e3989cf7d84c.1672951913.git.mirai@makinata.eu> (Bruno Victal's message of "Thu, 5 Jan 2023 21:06:10 +0000") Message-ID: <87cz7ifaad.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c56ovdKK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673641822; a=rsa-sha256; cv=none; b=rWgNEEtlRnE5ZqLRkUsYCwQ6/83XB/5OwMHARmSenolXQJD4Z0uL21ENCPu5skZsl6yw0h cvAKdVIGQluue/AuMQqIbvSD3Vu0JElHdPXlGj5s8/PqRWQ2gLojByJArLTLpQf4+GZEiL /wc38H8tJDX7kKKygEVQjRoAjTju/SL9HYksH9gquQkOFsYbl4IlrwypP4tePbZugGesBB hBz4V4W9Ys7QjTPiHJ6QQf+a40uwdg7iHIMYBdyJSn1CgM+BIjEDePHX5VlDVwBxJuEraH ybsrEKRyl5HbFnZWNrhxf/nu9WAOFWN6MXsfm5hTSTtl59ln0Fav9HGIv0dXpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673641822; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=LjyYAedbBVdP2JfYGVXx3juNYScgWYVzmvFxuXxjc2E=; b=gUi0sXK7/+e3WJ5jmZl3UjZzx6BC/gP0BKm7TDoj0pKJKZnoiljoUKzqp3WPAs3IKtWopx 5r9w4u/kRtRB0SbDz1ll2MwCWrC63j7y0NME35GzXKl2E/7YhC1OOFEQfw/kAol1xBeP/B 9iudiSVp91KpP30LSoVpVBZ6MYwWvPpiZyEenY1DTDpKyEG0XcZmlbpVo9ivSe8THKKcXV QE/VpmFrta/8ll/szGjHByMIWjBTUGkxFuuja4VI6NMBT1sYev4T/e55ANfytRnqpx2hBS iSTlZwyvotKXuvYgRExuEg/uhRUsiuiqbPtfoZBdvjNQaOlDvl212fNREm/Imw== X-Migadu-Queue-Id: DB7122E1DF X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c56ovdKK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Spam-Score: -1.60 X-Spam-Score: -1.60 X-TUID: Y79p8SpHXTLz Hi, Bruno Victal writes: > * gnu/services/configuration.scm > (generate-documentation): Format a list of packages by their names. > --- > gnu/services/configuration.scm | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm > index 6b0291dc00..16e2380709 100644 > --- a/gnu/services/configuration.scm > +++ b/gnu/services/configuration.scm > @@ -370,6 +370,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))) The 'and' and (not (null? val)) don't seem to be necessary as in the empty list of packages, it'd produce the same as the else clause below: --8<---------------cut here---------------start------------->8--- scheme@(gnu services configuration)> (format #f "(~{~a~^ ~})" '()) $1 = "()" scheme@(gnu services configuration)> (str '()) $2 = "()" --8<---------------cut here---------------end--------------->8--- > (else (str val)))) > > `(entry (% (heading -- Thanks, Maxim