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 ms8.migadu.com with LMTPS id 8JcMEb0YC2Y3LAAAe85BDQ:P1 (envelope-from ) for ; Mon, 01 Apr 2024 22:27:41 +0200 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 8JcMEb0YC2Y3LAAAe85BDQ (envelope-from ) for ; Mon, 01 Apr 2024 22:27:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WbcFhYRp; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712003261; 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:dkim-signature; bh=ywQloDwUQn6ZdDOQbc27ynvE4p+/omn3dMl9Qc9kC7U=; b=jHUSLswhTKVEw1mKpEFeAwf/U6SKZhB4PahiTIkoXzHq0CExASLplhGTYNUVBaSIr0Oh5V vyi7CZ9eJzFpWwXlnqnjpu75XRnPIMepm/6m4RNrnrbjlABkuEES54wyJD3O7zp9BMR6uz 2K9tq8nZ8t1bh66/Q9mNjI9fFLoJ8ncnnl6dm1D7nJPK1t1BiERYHVsgIS4rLu3gk2UtGV 1uqGOdfuVHipVr2i1OCaHJo9xyEqHQFJmCF1zjvbmWt5mxhF1VvOVdPs6I+dePtg+MQwap 2qMQvRqy+KUJ8oMZzjL7uCAxLPiu6tM3E37YRE4yDVMMsC7AfWGzmtqNfPougQ== 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=WbcFhYRp; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712003261; a=rsa-sha256; cv=none; b=mFfXY6XO0nNB3z5HGXsqKGdNFYzZ4M9rDrCl+jyjkFPuRNMbbqolSnpwuIpwI3ySSY7Hiu 06EQPDTM+vRL26qTn23FbzL7Z7+sr7qSs4ZNU83+ZsXv9Itf8KaEAMfKR6lI4jkLntMP6k pSxoHPyl+g6AhAAAj7wdgcZ8Sxm4Omcy2uHHCkw460MpXTz1NArix4RX0JKJFk4a+LeLwx XnYg78jc28UI9rBQGoRS5NFf/aKlLxovgUvlcxXsoaSMLsmqoAw/d28ar5huUpYRxq4iwK TZ9csSP+E8UPSjaz09/98BmeY6PZuemjHkWYMS9LE+liAvv1gXVIvMRHy2XN6g== 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 25D7C3CEF5 for ; Mon, 1 Apr 2024 22:27:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrOFF-0008UJ-Md; Mon, 01 Apr 2024 16:27:05 -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 1rrOFE-0008TV-1Q for guix-patches@gnu.org; Mon, 01 Apr 2024 16:27:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrOFB-0006wm-W6; Mon, 01 Apr 2024 16:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrOFD-0007LO-9i; Mon, 01 Apr 2024 16:27:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70132] [PATCH 09/11] ui: Delay use of (guix build syscalls). Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 01 Apr 2024 20:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70132 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70132@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 70132-submit@debbugs.gnu.org id=B70132.171200317128141 (code B ref 70132); Mon, 01 Apr 2024 20:27:03 +0000 Received: (at 70132) by debbugs.gnu.org; 1 Apr 2024 20:26:11 +0000 Received: from localhost ([127.0.0.1]:51727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrOEM-0007Jj-Q4 for submit@debbugs.gnu.org; Mon, 01 Apr 2024 16:26:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrOEJ-0007Gi-AE for 70132@debbugs.gnu.org; Mon, 01 Apr 2024 16:26:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrOEA-0006nd-A3; Mon, 01 Apr 2024 16:25:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=ywQloDwUQn6ZdDOQbc27ynvE4p+/omn3dMl9Qc9kC7U=; b=WbcFhYRptyMj7h3u264k fiiIEJ8HD2VQ+IJgDjgk3dXeQuQXZf60+53XYk+xo8aEDCnU8WM/tB4XHW0l004gKKUmGCipPsj2s lsE0ZpK2mNeBJHFf9wCBRt6w6muqNE2s8oEIg0YHqA1UDNU8IeUD/z+su60EdzgmAMYl5tKlKXvNZ vNoTxNDvqfO4EB1ahshXOBLDBbAjp87xz2Ytjfb5Ebvk76mXL+ExFR6IVmZI3WVWbzKYomhoYaNHZ HUKZUPRm7UF/SYQTOejaTvZB2fWSKdiK5sReyTtzUHTNGgbnDny+idcHvnJMH/SYGrkj48nPwV2Ma rEAUvW8NNdfflA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 1 Apr 2024 22:25:21 +0200 Message-ID: <52b532346c5eb27375681127542bf3c8152723db.1712002698.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.55 X-Migadu-Queue-Id: 25D7C3CEF5 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.55 X-TUID: u8ed0CNdrDSQ This ensures (guix build syscalls) is loaded only when needed. * guix/ui.scm (%text-width): Unconditionally alias ‘*line-width*’. Remove initialization. : Remove code for Guile < 2.2.7. (package->recutils): Change default #:width to (terminal-columns). Change-Id: I990a1b5b0f20a6243e47e314d1d3d4f8298b7151 --- guix/ui.scm | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/guix/ui.scm b/guix/ui.scm index 34ff210930..d82fa533cc 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1473,23 +1473,9 @@ (define* (fill-paragraph str width #:optional (column 0)) ;;; (define %text-width - ;; '*line-width*' was introduced in Guile 2.2.7/3.0.1. On older versions of - ;; Guile, monkey-patch 'wrap*' below. - (if (defined? '*line-width*) - (let ((parameter (fluid->parameter *line-width*))) - (parameter (terminal-columns)) - parameter) - (make-parameter (terminal-columns)))) - -(unless (defined? '*line-width*) ;Guile < 2.2.7 - (set! (@@ (texinfo plain-text) wrap*) - ;; XXX: Monkey patch this private procedure to let 'package->recutils' - ;; parameterize the fill of description field correctly. - (lambda strings - (let ((indent (fluid-ref (@@ (texinfo plain-text) *indent*)))) - (fill-string (string-concatenate strings) - #:line-width (%text-width) #:initial-indent indent - #:subsequent-indent indent))))) + ;; '*line-width*' was introduced in Guile 2.2.7/3.0.1. Keep this alias for + ;; backward-compatibility and for convenience. + (fluid->parameter *line-width*)) (define (texi->plain-text str) "Return a plain-text representation of texinfo fragment STR." @@ -1535,7 +1521,7 @@ (define (string->recutils str) '() str))) -(define* (package->recutils p port #:optional (width (%text-width)) +(define* (package->recutils p port #:optional (width (terminal-columns)) #:key (hyperlinks? (supports-hyperlinks? port)) (extra-fields '()) -- 2.41.0