From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2BkIOBLTNWfr9AAAe85BDQ:P1 (envelope-from ) for ; Thu, 14 Nov 2024 10:38:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2BkIOBLTNWfr9AAAe85BDQ (envelope-from ) for ; Thu, 14 Nov 2024 11:38:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Gws2mqVR; 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"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731580690; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tyDaTseAt3e/9l9v9u6oIxvbq/4PzoZm4FU3SAlUHUU=; b=MM0RIm1tSeWERFY6AvH3P5tgs8oTO8QC+X7p8MosCVLIdVFAXGvDyNXOhViBrTZoqw5MKE kx3VHwMmFPxSbJGlPgBKjkW4rJeoE+ltIlF6T25JAD562y60z0Q+76AzuzDQxS3nxAqW+m Ow4nHOiptpd+oL9mBZAcb9vnsjUU6jGBM3Xth8FR8goRuSNrOFO70JfBDZimr7mZoyndlD M8Zf/GxceMd9ih83Ai6kfDcqWUvTCCPWInAH0y4fHOQ2XnNiU0C35Onw2qFiP1PXg6MWiE yS7cMSjrp+w/3hlLjZUg/11xjZTRcWaU3rjIMUf8IosOS/lVYYrmuqQ4YZ49UQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1731580690; a=rsa-sha256; cv=pass; b=j4QBdFo9uFZ4zxeAwI/2zLZSCF/4vKohxWR3gVyoTfu0rtMW4gdOYFzpxnkB+HVfKT9AHl IrSriMvTjFsKqX+93ACm9NSarsfnksbcPH+ch67tMinDIz8Zqe1yYNi9fkHhcHIowfczwA A04qWLWU1Q0rRpMLkrjbPVJCxdQDHnd+HoYxbqPqlWLflkjpLygIwP2wMiTl3chqny0hQb D/RFLIBG54tSwjSkmKgECmr68mzByHn14pbdOMjV9YDrulq+KG7/aIpj7N8Bd14uyLp/cO 8sdVlC8L1e3cml8XSvP/RCB+zcJ8Rsl8UBLvj8xkUGC/qRWWr0UmVuwwQOZXvQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Gws2mqVR; 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"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none 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 B4D3C77FE for ; Thu, 14 Nov 2024 11:38:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBXEA-0004tV-ES; Thu, 14 Nov 2024 05:37:30 -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 1tBXE8-0004t4-QZ for guix-devel@gnu.org; Thu, 14 Nov 2024 05:37:28 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBXE7-0007IR-1Q for guix-devel@gnu.org; Thu, 14 Nov 2024 05:37:28 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1731580640; cv=none; d=zohomail.com; s=zohoarc; b=FI3EIkutBwr9c+XQzy24yiw0dTyMJM8JggS4yyiXYbCg2YQDiOoACBED6PLI1t1Clza4V2TX72MAYz6Db2DwiqCuiOhabk6a0Xn+vYgWm8917Ga9ZHijmwhO3OMq1u0Q3kiRRFtaHez/q3K4uuxd4PaelkE6giEa3+8Xtwd7fQg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731580640; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=tyDaTseAt3e/9l9v9u6oIxvbq/4PzoZm4FU3SAlUHUU=; b=TKtztqx60+SLB3yMAF48DpO1AcrQA3mCvZEvCmEAZ5jH39oaKhJopUiep7+fN1rhXL+9t561JG3/die87FVMT4Ion9pBhyWgOzkk+4rWY/PY+XZP8wMhjJrm3+XGNKnDWAJU95B4jCGcQAWL46nMyWJpp3cCccUSnsY/HosXuAc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1731580640; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=tyDaTseAt3e/9l9v9u6oIxvbq/4PzoZm4FU3SAlUHUU=; b=Gws2mqVRE9jGpp4p/dVX/WGpt2nJ4LJ/wTmht2iPnHF7HWz/ASf4DBnYUnFuna0v +FJcEHbj6qmfk96dC0zAlKTA9XK4T7SBX7J+CjkgmzwGnSB55Qy39p4n+0IlLOrdvCO RYyvpFqWQpnFkQlyPj0G1Ve2Z77zFrEpompTsaZY= Received: by mx.zohomail.com with SMTPS id 173158063944263.03307866045543; Thu, 14 Nov 2024 02:37:19 -0800 (PST) From: Ricardo Wurmus To: Christopher Howard Cc: Luis Felipe , guix-devel@gnu.org Subject: Re: Unhelpful "--help" output In-Reply-To: <87frnuwym8.fsf@librehacker.com> (Christopher Howard's message of "Wed, 13 Nov 2024 13:35:43 -0900") References: <87o72kqv40.fsf@librehacker.com> <87ttcbc828.fsf@elephly.net> <87frnuwym8.fsf@librehacker.com> Date: Thu, 14 Nov 2024 11:37:15 +0100 Message-ID: <874j4acd9g.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.57 X-Spam-Score: -4.57 X-Migadu-Queue-Id: B4D3C77FE X-Migadu-Scanner: mx13.migadu.com X-TUID: 3zulZPSnSZZT Christopher Howard writes: > Ricardo Wurmus writes: > >>> I'm trying to >>> fix the bitrot in the emacs-guix "shell commands" code, which actually >>> parses the --help output using regexs, and and generates magit-popup >>> menus based on that. So little things like the number of spaces on the >>> line before the command name actually matter. >> >> Perhaps emacs-guix could instead fetch the list of items as an >> S-expression. > > You mean through guix guile API, or...? Yes. The (guix scripts *) modules all define %options, a list of options. They are not exported, but they could be. (Alternatively, an accessor could be exported that returns the options as plain data.) This structural data could be used in emacs-guix instead of parsing its textual representation for presentation in the shell. -- Ricardo