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 ms9.migadu.com with LMTPS id AJeINXnlCWR7gQEASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 14:56:09 +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 ABdKNXnlCWS+IQAA9RJhRA (envelope-from ) for ; Thu, 09 Mar 2023 14:56:09 +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 6124E641F for ; Thu, 9 Mar 2023 14:56:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paGk8-0002qR-2l; Thu, 09 Mar 2023 08:55:40 -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 1paGk6-0002qI-Im for guix-devel@gnu.org; Thu, 09 Mar 2023 08:55:38 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paGk0-0000FQ-Pz; Thu, 09 Mar 2023 08:55:34 -0500 Received: by mail-qt1-x835.google.com with SMTP id c3so1948871qtc.8; Thu, 09 Mar 2023 05:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678370130; h=content-transfer-encoding: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=UO1NF9pBZWUN367j5HluYYogNlItWCLKOYAF6vgw8rU=; b=c6ijHDz+ON+GquZiP6WgytGAnm/rqpSZvKOPDzmIDLM6uQBpXIdsc/S3ou3WX25Ut+ Lc5jIAlTK1df88ILBumvs9NXe7fL+Z9k5e2ih4ikWZL8GebereYLBeXrR2rtidgUvALS dfAHxUgg6k+1ayTXAiIW0Eph+2+KF0xO64gLoIYuWufy1BN9tgAQww5ubdl+6CgXPnTI D6xOTsqPLblC0C9/Y0hYadvdroc4JzILNqiluRtASQTIlajlqdegZlHwZeyYGBfmEtIN hHE9LpPEJ6fhKSU7S0BAmAEcqGmcc+42Itadsq1lTUH2rBWv6mXA4GWRlVibZWOxGMwL QwdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678370130; h=content-transfer-encoding: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=UO1NF9pBZWUN367j5HluYYogNlItWCLKOYAF6vgw8rU=; b=SEdPRDexQDRbDKFZoiDxW5mTm1Hi4JQAT9v1anccZidMrvoT/MlJvjh46FPNa7RcRw lm1DNw1cnicLJU++2+d7GkEijgc1SfYI/8c9SLiHzC183m1N75FIbQWW3jTD7pI1zig6 w171Q7LSXcAICcHwmL8Rdj4W3CWCiJWsJM3yReNVU7o2P+H1K9P9nMPWhaqGquofCKuZ pTZvYSwlYuTVyVCLYEOueS6YGOhixcFohD3yBLUZK1MP8T5NI71IORtRWuGMkbuwi0pl kELM/zq83MB9od0/YRNJcDs26Iom07prk9BTyN7pEflERwhThsfo6py16XIKMZZQPMKS b4fA== X-Gm-Message-State: AO0yUKVlNlGTdJnD4H5EG2j/OD6sfVE8Hv0LqYi4kSYonQ+79TYz3o+R MgVPvyz0Mk8ebJ0u55Mxuf8oyKPx/C9duc4v X-Google-Smtp-Source: AK7set8BiVuuPuyiEsh0hyigoDqRH/Qf0sMhE8XwJ1By7MDLJ7qB8bW4uciWDVMwtZniOTopc3gCRw== X-Received: by 2002:ac8:7f87:0:b0:3bf:daae:7ee6 with SMTP id z7-20020ac87f87000000b003bfdaae7ee6mr35716148qtj.18.1678370130350; Thu, 09 Mar 2023 05:55:30 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id u24-20020a37ab18000000b006fa16fe93bbsm13477795qke.15.2023.03.09.05.55.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 05:55:29 -0800 (PST) From: Maxim Cournoyer To: Simon Tournier Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , efraim@flashner.co.il, guix-devel Subject: Re: Feedback on indentation rules References: <20230203221409.15886-2-maxim.cournoyer@gmail.com> <20230203221409.15886-5-maxim.cournoyer@gmail.com> <87357alp9n.fsf_-_@gnu.org> <878rgxws6l.fsf@gmail.com> <871qmg5qpj.fsf@gnu.org> <877cw8hvlk.fsf_-_@gmail.com> <87356oijrf.fsf@gmail.com> <87cz5l95ts.fsf@gnu.org> <861qm0broc.fsf@gmail.com> <87356gy00x.fsf@gmail.com> <86wn3sa2rt.fsf@gmail.com> Date: Thu, 09 Mar 2023 08:55:28 -0500 In-Reply-To: <86wn3sa2rt.fsf@gmail.com> (Simon Tournier's message of "Tue, 07 Mar 2023 18:29:26 +0100") Message-ID: <87fsaet4fj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x835.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678370169; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=UO1NF9pBZWUN367j5HluYYogNlItWCLKOYAF6vgw8rU=; b=BgDDjPXW3pqQQhnsoJ0LtBJywWzjE9A84ZR+QVq01I7EYb5Iix5Cfzs/9tWTj4Sz58QXuM Ky2LOFuSKFIFSjtaQT1BJFqbNRIBg+F0AZOVHJ31F5S4N/MGLooQRBKb0+17u75Xt+FMH4 d6vtl3G97nydoKaYxvQuhIAiZUnXviykwkgcrKImoQDzY1lu/rGqDGMXBpe1CWMXgxItrT UZAHt35NDMzdB9KR/ENj5XiZ+lHHDt+y6HqIDc0w441vJWmlXq6nUS8EyQa4hyzzmpDGwh BTCAEjQnqoKpr8GdlobASDAQqnex5paIOZwPskh4WovNlI05fZMLoN9E3FwkUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c6ijHDz+; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678370169; a=rsa-sha256; cv=none; b=ltJOWMwDa/8KPwP9MvVfB9+V2ZbRikaZ+R/3+YIRhpjuh8Ad0EcenAOx0FIrsM8h8ZU6my QDOFH7YhQWuKClbdeYGv5V8Jv/TVXGQ9YnCf115DbfEe/095sp20upfnh2mb6tP9LaPPNo sSuXNZmKhBydxKdYM63JyoKqz3V73rBcEcg8R7fSAEBw8IcOeeEjSieEwzZ0mLiA6srBc2 sEAwX4+FHCpZnw5N7uaWq5OxIxBYHY0GGg0eIhKKEoxMQQvhCFAIHlmo52Z5gGt98JXCHA oTb/KpvO6itaLGR3bC48dmFncsq5+9B6R4lZzbEyVnwsHkGJXCcw2A+kS2gM6g== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c6ijHDz+; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -3.43 X-Spam-Score: -3.43 X-Migadu-Queue-Id: 6124E641F X-Migadu-Scanner: scn1.migadu.com X-TUID: gDgE3pKGEww7 Hi Simon, Simon Tournier writes: > Hi Maxim, > > On Tue, 07 Mar 2023 at 11:54, Maxim Cournoyer = wrote: > >>> For what it is worth, I do not see an high difference between the both >>> indentations. So, my opinion would to keep the current practise. >> >> Please take a look at my original message in this thread, >> https://lists.gnu.org/archive/html/guix-devel/2023-02/msg00297.html, >> where I gave examples of gexp->derivation indentations that should >> explain the rationale allow nesting arguments more naturally, as if >> gexp->derivation was a special form (although it's a simple procedure). > > Yeah, I have read this rationale before. :-) > > My question was somehow directed to Ludo: > > > Yes, that=E2=80=99s my take and current practice so far: specia= l rules for > > special forms (macros), not for procedures. > > What is the rationale? Being able to know directly at the locati= on when > it is a plain function or a special form? > > Sorry for having been unclear. > > And I do not see a big difference between, > > (gexp->derivation "check-deb-pack" > (with-imported-modules '((guix build utils)) > > or > > (gexp->derivation "check-deb-pack" > (with-imported-modules '((guix build utils)) > > It is somehow personal cosmetic and I am sometimes poor person about > cosmetic. ;-) In the second case, we end up busting the 80 chars limit easily, so it usually ends up formatted as: --8<---------------cut here---------------start------------->8--- (gexp->derivation "check-deb-pack" (with-imported-modules '((guix build utils)) [...] or (define builder #~(the builder code)) (gexp->derivation "name" builder) --8<---------------cut here---------------end--------------->8--- Which is not very natural (in fact, I had found already used indentation like 1) in tests/pack.scm before I adjusted the .dir-locals.el file to match it, otherwise Emacs was re-indenting them differently). --=20 Thanks, Maxim