From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EGT9JEFCB2SGFAAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 14:55:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QBHLJEFCB2TD9QAAauVa8A (envelope-from ) for ; Tue, 07 Mar 2023 14:55:13 +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 5360F2CEDE for ; Tue, 7 Mar 2023 14:55:13 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678197313; 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-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; bh=LGzBEk2sSezdEGm2E+rJRupNqV63Nk0iYrS9xVyoRg8=; b=cRGssTSkpCOCjNLYAvv1ScKAhAVY5sj1a5iFz5QyyZ+HUjNuvRo0M5fWiMAzhIP2fp64gT okhkuEeIELOSWqC1GSBeaJSqo0FdCNeYYZLd4yD0OtNf6xK4musMh7OOeSnMbSTbZyWs4y IMVGEeWmKD1s9Njy94jwS+aX0XfGhYnYlU70IxU1LN4VgGtUGH3zbrVw0lyNGRxu8Rwhgu 4eVWohD0Gu79tkxhJ1gjKoPPE+bs8Vm0wVEeMAEteNRMZjWT5KSPS+1/NFSAkCHo8O7YT/ puvWuUDx4J9fX2BnlnQDYFpKPEDKBnlBRpKiWmTt3o68dozqXb8dCu06JITx0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678197313; a=rsa-sha256; cv=none; b=dfngdxZ7YDHkF1VQgyYNKRcR2pUcRfTEpU+a5IzfHUJ3Nk/hpBIfoqIuSB4Exn8Xph8x46 nf7Zm8f46SVA0mt4tHq4C232omT2iyc+uy57X/mOqihq2nuGnIigkKf775YR9UFHs1k032 NaMS2P72F6w9Law6oQy5/JcASnhiod9fWFGDLgCj/A1zMwUGaJfjEsRk0ekfpDlgkxCB0V 4xO4oXt36mloXBMDm3Kz9uX78biQdYjNRw5L1kKnpJLrQw6eOE2c7PWQ6yxwJ6JUTa84wB R4gCuV0ddnDhLCrPYOhEVLkqPqSzxVkRjklA4wkJWeE+miYNAEvGlngTB2gheg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZXmS-0001ac-4s; Tue, 07 Mar 2023 08:55:04 -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 1pZXmR-0001a6-3B for bug-guix@gnu.org; Tue, 07 Mar 2023 08:55:03 -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 1pZXmQ-0008Sj-K5 for bug-guix@gnu.org; Tue, 07 Mar 2023 08:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZXmQ-00048M-El for bug-guix@gnu.org; Tue, 07 Mar 2023 08:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#62000: Inconsistent indentation rules for define-configuration Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 07 Mar 2023 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62000 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: 62000@debbugs.gnu.org Received: via spool by 62000-submit@debbugs.gnu.org id=B62000.167819729915873 (code B ref 62000); Tue, 07 Mar 2023 13:55:02 +0000 Received: (at 62000) by debbugs.gnu.org; 7 Mar 2023 13:54:59 +0000 Received: from localhost ([127.0.0.1]:44878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZXmN-00047x-0n for submit@debbugs.gnu.org; Tue, 07 Mar 2023 08:54:59 -0500 Received: from smtpm5.myservices.hosting ([185.26.105.236]:60806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZXmL-00047m-14 for 62000@debbugs.gnu.org; Tue, 07 Mar 2023 08:54:57 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm5.myservices.hosting (Postfix) with ESMTP id F07F220D19; Tue, 7 Mar 2023 14:54:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id AEC528009B; Tue, 7 Mar 2023 14:54:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id K3qKYzTz9ZgR; Tue, 7 Mar 2023 14:54:50 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 4FE3A80097; Tue, 7 Mar 2023 14:54:50 +0100 (CET) Message-ID: Date: Tue, 7 Mar 2023 13:54:41 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US References: <372a5f84-018c-9cee-ba2c-2b564a3d9e31@makinata.eu> <86ilfcbt12.fsf@gmail.com> From: Bruno Victal In-Reply-To: <86ilfcbt12.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 5360F2CEDE X-Spam-Score: -2.51 X-Migadu-Spam-Score: -2.51 List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: PnFuCDpBj3TF Hi Simon, On 2023-03-07 13:16, Simon Tournier wrote: > Hi, > > Cool you had the number 62000. ;-) > > On Mon, 06 Mar 2023 at 12:48, Bruno Victal wrote: >> Suspected file: .dir-locals.el >> >> Using 'package' as a field in define-configuration results in >> inconsistent indentation: >> >> --8<---------------cut here---------------start------------->8--- >> (define-configuration/no-serialization mympd-configuration >> (package >> (file-like mympd) ;;;; <<<<<<<<<<<<<<<<<<<<< notice how it's indented with 2 spaces >> "The package object of the myMPD server." >> empty-serializer) >> >> (shepherd-requirement >> (list-of-symbol '()) ;;;; <<<<<<<<<<<<<<<<<<<<< vs 1 space >> "This is a list of symbols naming Shepherd services that this service >> will depend on." >> empty-serializer) >> >> ;; ... >> ) >> --8<---------------cut here---------------end--------------->8--- > > What do you mean by inconsistent? Do you think that > ’sheperd-requirement’ should be management by .dir-locals.el? It's not 'shepherd-requirement' that should be managed by .dir-locals.el, it could have been named something else. Compare with 'mympd-ip-acl': --8<---------------cut here---------------start------------->8--- (define-configuration/no-serialization mympd-ip-acl (allow (list-of-string '()) "Allowed IP addresses.") (deny (list-of-string '()) "Disallowed IP addresses.")) --8<---------------cut here---------------end--------------->8--- It's uniformly indented. > Well, since ’sheperd-requirement’ is not in .dir-locals.el, the > indentation seems expected. What do you consider as a bug? Having a field named 'package' within define-configuration causes incorrect indentation. Cheers, Bruno.