From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oCiXNvYMOmO9CwEAbAwnHQ (envelope-from ) for ; Mon, 03 Oct 2022 00:13:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +J2ONfYMOmOZugAAG6o9tA (envelope-from ) for ; Mon, 03 Oct 2022 00:13:10 +0200 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 82C2422430 for ; Mon, 3 Oct 2022 00:13:10 +0200 (CEST) Received: from localhost ([::1]:41402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of7Cv-0004uT-GM for larch@yhetil.org; Sun, 02 Oct 2022 18:13:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of7Co-0004rZ-Tr for bug-guix@gnu.org; Sun, 02 Oct 2022 18:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of7Co-0002vo-LV for bug-guix@gnu.org; Sun, 02 Oct 2022 18:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of7Co-0001bu-7h for bug-guix@gnu.org; Sun, 02 Oct 2022 18:13:02 -0400 Subject: bug#58040: "guix style" puts closing parentheses on the wrong line Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sun, 02 Oct 2022 22:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58040 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: 58040-done@debbugs.gnu.org Mail-Followup-To: 58040@debbugs.gnu.org, ludo@gnu.org, maximedevos@telenet.be Received: via spool by 58040-done@debbugs.gnu.org id=D58040.16647487716169 (code D ref 58040); Sun, 02 Oct 2022 22:13:01 +0000 Received: (at 58040-done) by debbugs.gnu.org; 2 Oct 2022 22:12:51 +0000 Received: from localhost ([127.0.0.1]:48249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of7Cd-0001bR-F3 for submit@debbugs.gnu.org; Sun, 02 Oct 2022 18:12:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of7Cb-0001bE-8h for 58040-done@debbugs.gnu.org; Sun, 02 Oct 2022 18:12:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of7CV-0002u0-3m; Sun, 02 Oct 2022 18:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=BVSKylG642aRSD6eNnFC2rZEyccu91pPhaB9yoyGh3I=; b=H8QDKYGwYlJXsHfr4Puz 8ykgnGqefvoRF+oQ3hF71DbOEpyG0xYAymGkfpdrz1mM+qHZa1OmEkORx55NVbxv3DiOW5rKgTAJf zw28t2CqIqNjs1zev2P4jEBrCqH8Wwj+Md5jNpe8mK4gnkW++u5C/ICJS0EEXvgHDH9I+5QRXijKR LpNjCfA/igYQ3YS9nBv/rBTx/4RIlLwQEUGU/bdDM4aAcRc7QNZjAU3lGQ/qVmpbf3keCE6aNvycg Y+IrkD7UliW1K1HkfFtkHAQ7cvya0fJa6L2svpSX8v26oPIsOEklMad+0aBHtNfG9psNhoQphQBu/ Rmyko0A1gh/gOw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52988 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of7CU-0001zO-70; Sun, 02 Oct 2022 18:12:42 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <71826703-ee1d-b353-7b3f-f5a5d37c3125@telenet.be> Date: Mon, 03 Oct 2022 00:12:40 +0200 In-Reply-To: <71826703-ee1d-b353-7b3f-f5a5d37c3125@telenet.be> (Maxime Devos's message of "Sat, 24 Sep 2022 12:18:32 +0200") Message-ID: <871qrpan8n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664748790; 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: content-transfer-encoding:content-transfer-encoding:resent-to: 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=BVSKylG642aRSD6eNnFC2rZEyccu91pPhaB9yoyGh3I=; b=lJpPTWgBNz0k3AyKuB+s7iBQpM0gtTam/9NL8jMz9rI2vOUP23Wz9jKC2P+WUfxWE9YxUH QumJtzeyeXQ3DhO2yGfRQbv31scCWKTKEn0tEgJ7CXX+MwA0UXeBFXe3NcZQHAiGz4QySA otCs2PLw5+QbMFV5YVG3vOslhHO7+oV4sGPszmiazrFh4fpwR2Ids9qz6rp4PM02f4HcGq YA7Lk/qGPjBY09FepohBdqiOOMGxOSoegBqZLU0pik0MiTPChO732PkVWBkOn1lwem9yaa NOcW07VtnLvGw57sAoiNZbur74BDkguvqhlhznbAc7Umtqp3vFlLC79xs6HC1Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664748790; a=rsa-sha256; cv=none; b=YhN3lAA6j5a0L9IU5naaLipLquaPrZQt976lJ5fvc3N8SmCtU74KjiiGHQ5/V+TKXVoiMt 4Bw1R4mihBdfpbmVTeG53YhDSr24QVct7jb++JpVqM+aUCp5e+J3oIzQa34gFGL73oE9OS hZJiD5eLPKpYlZzWF3CJcDSjbjxJ0WCE9fiOzNlArcdw+z3H15FwhepMRoaeV2Mr352C0k NjkbCzdFm9+vhgQy8PUh1ttBWaZarYyqvc3RvSBaWaVFhOGYEMgXaBoZZppmTQX4Pfoeai r98rrl4CiUszZfLtXyMrhgy3v/bn2hUsnGGR/wGHK48AxUySz1wZRL6hirTAgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=H8QDKYGw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.74 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=H8QDKYGw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 82C2422430 X-Spam-Score: -3.74 X-Migadu-Scanner: scn1.migadu.com X-TUID: ViqC4FunZOcl Hi, Maxime Devos skribis: > and running "guix style -f a.scm" on it, it becomes > > (define (find-latest-release releases) > (fold (match-lambda* (((key . value) result) > (cond > ((even-minor-version? key) > (match result > (#f (cons key value)) > ((newest . _) (if (version>? key newest) > (cons key value) result)))) > (else result))) > ) #f releases)). > > In particular, note the ") #f releases" -- IMO ) should be on the > previous line, after (else result))), to avoid lonely parentheses and > to align the arguments of 'fold'. Fixed in 4bd75d79e5ad8bb0f6cdcc0d15b9afb25f54afbd: =E2=80=98match-lambda*= =E2=80=99 had an incorrect special form declaration. Thanks, Ludo=E2=80=99.