From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 OZy8LcJUZmOHSwAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 13:19:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8CDgLMJUZmPTNAEA9RJhRA (envelope-from ) for ; Sat, 05 Nov 2022 13:19:14 +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 92FD923D8C for ; Sat, 5 Nov 2022 13:19:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orI8e-0001yE-JC; Sat, 05 Nov 2022 08:19:04 -0400 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 1orI8c-0001y2-7t for guix-patches@gnu.org; Sat, 05 Nov 2022 08:19:02 -0400 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 1orI8b-0003k6-Vo for guix-patches@gnu.org; Sat, 05 Nov 2022 08:19:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orI8b-00055j-RA for guix-patches@gnu.org; Sat, 05 Nov 2022 08:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58660] [PATCH 1/4] etc: teams: Improve scope display. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Nov 2022 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58660 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "zimoun" , <58660@debbugs.gnu.org> Received: via spool by 58660-submit@debbugs.gnu.org id=B58660.166765070319526 (code B ref 58660); Sat, 05 Nov 2022 12:19:01 +0000 Received: (at 58660) by debbugs.gnu.org; 5 Nov 2022 12:18:23 +0000 Received: from localhost ([127.0.0.1]:55867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orI7y-00054s-Nf for submit@debbugs.gnu.org; Sat, 05 Nov 2022 08:18:22 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orI7v-00054h-Dd for 58660@debbugs.gnu.org; Sat, 05 Nov 2022 08:18:20 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0CEE04122A; Sat, 5 Nov 2022 13:18:18 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FoOo-39yYiCk; Sat, 5 Nov 2022 13:18:13 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667650693; bh=rvcbsz+WMuX1uwc3weYb4R64CoeEPo+rvi0wGIkbF70=; h=Date:To:Subject:From:References:In-Reply-To:From; b=AWV+AggU4WnTsT2+d0uHm829kIzb8Vhu4/DvMnVn0qOzctLa51K472PZLUHLDHFk7 Jrw0jt3KtwFWt1DJSBZQvhhLZ+ByLdPRQJT0X24uHxdl56NxXq43s1Pg3+/I5H/H2H fRDQOxCIk3qccV9qQkmVH0ZAN4/8y17w+dleHK0lJ6ec2gK64HrEJk1Qp7rBnv3yqP LtWUJHUhPQB5+9kH0LjPmeQIRWPNxNN1olumyDrrl26ZxyQ3Tr8lNiSUVwwR7Gir78 RUQfCGiJcOQfU4p9TSw5rgThq4f5L3TjHNhK0NDU1jIJDtGg0zss/8zoaMOtziciGW qolyHAGQwoW1w== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 05 Nov 2022 12:18:12 +0000 Message-Id: References: <20221020132140.1546684-1-zimon.toutoune@gmail.com> <20221020132814.1549436-1-zimon.toutoune@gmail.com> In-Reply-To: <20221020132814.1549436-1-zimon.toutoune@gmail.com> 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: , Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org 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=1667650754; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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:dkim-signature; bh=RiTNSFKqyeT8dYUYIEyaX5aHpIGhPxusBHEy9IaytQs=; b=AXOY8+4tSLyo8tXPyQTHEfz0mIy3NUbvu0ZxsZKCjOzvcTvYcY8R8CKGKahStyRegGsztG hhqiRi+Z9SCOElppT5ZEG0NCaj2t3iIBI8/CXybhASbOMcM3xkhsg+gXuWDD537Zp7ltsX cdxHaSGd1ShUmNienCQWKdx9fuavvt36GVbOqxV9TUceajDcKuwvd2Ug2g1p1PHDoa/rvm nkrKSJeonvhROe82CBCGI4vzU5I2hHw4DQZF+1+9P17geL4qpo8NHlQE2os128z0E0D7gb zn6bpa8MCNoyEEQfDFtkXMv9+27PhRYaYZDPCGNGbTHAVja5pbaQt6/AeXQwSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667650754; a=rsa-sha256; cv=none; b=fd0AyPIWxwWzhg1IPns853ShP8eO/8lONgBbfFC/x+QLOfv3GKIwPyUqi4WT41x9lx01Uz aTop69O+CMkifaN3QwcRa4lQYpEovbJ7GFHolaJsToLYS7CS59xVxKB2EsKBxNWc3jsj0k 6D7HxP88Ei3w/HLItHmFqM7mXRUDgA4hh8zzBL6jFHtmCTJZVOAIHzmvY3cJARbV751p3E PPiIiBdGAWcna92/0GiP4pGzjbKSX8ULsotOR+hVmnJYOZK1XpmhpjgjkpXC5qzfF7nfpU QCRmoIRXGfozZjWQJvI5CVb5+RQ1eBD3yt4mZARtz6lEziTB285pdykbmrMnzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=AWV+AggU; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=AWV+AggU; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 92FD923D8C X-Spam-Score: -1.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: dZECaZMVeFyA Heya, On Thu Oct 20, 2022 at 2:28 PM BST, zimoun wrote: > * etc/teams.scm.in (): New record type. > (make-regexp*, regexp-exec*): New procedures. > (python, haskell, julia, java, emacs, rust, core, translations, installer= , > home): Use it. > (find-team-by-scope): Use it. > (list-teams): Use it and sort scope files. > @@ -553,7 +573,13 @@ (define width* (%text-width)) > + (scope (format #f "scope: ~{~s ~}~%" > + (sort > + (map (match-lambda > + ((? regexp*? rx*) (regexp-pattern*= rx*)) > + ((? string? str) str)) > + scope) > + string<=3D?))))) Would it not be better to, instead of displaying the actual regex itself, display the files that match the regex, and separate the files onto separate lines? Eg, rather than, scope: "^gnu/packages/julia(-.+|).scm$" "guix/build/julia-build-system.sc= m" "guix/build-system/julia.scm" we could display, scope: + gnu/packages/julia.scm + gnu/packages/julia-jll.scm + gnu/packages/julia-xyz.scm + guix/build/julia-build-system.scm + guix/build-system/julia.scm I find this to be much clearer. -- (