From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Newsgroups: gmane.lisp.guile.devel
Subject: [PATCH v4 0/4] Add module depth information to %load-verbosely output
Date: Mon, 25 Sep 2023 10:28:57 -0400
Message-ID: <20230925142945.14153-1-maxim.cournoyer@gmail.com>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="21863"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Maxime Devos <maximedevos@telenet.be>,
 Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: guile-devel@gnu.org
Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Sep 25 16:30:55 2023
Return-path: <guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org>
Envelope-to: guile-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org>)
	id 1qkmbv-0005a0-64
	for guile-devel@m.gmane-mx.org; Mon, 25 Sep 2023 16:30:55 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guile-devel-bounces@gnu.org>)
	id 1qkmb4-00030d-20; Mon, 25 Sep 2023 10:30:02 -0400
Original-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 <maxim.cournoyer@gmail.com>)
 id 1qkmb2-0002zJ-JS
 for guile-devel@gnu.org; Mon, 25 Sep 2023 10:30:00 -0400
Original-Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>)
 id 1qkmb0-0004g2-A2
 for guile-devel@gnu.org; Mon, 25 Sep 2023 10:30:00 -0400
Original-Received: by mail-qt1-x830.google.com with SMTP id
 d75a77b69052e-418201cb9e9so4525771cf.0
 for <guile-devel@gnu.org>; Mon, 25 Sep 2023 07:29:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695652196; x=1696256996; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=BHY7OgOY6F6focQwEzBU6uZaDtM/iTPURSoopkUooE0=;
 b=dDKXZBm0g6FVdRIDN37gOSwGpycRtOsmf+KZww/PefYJE07+1HjCv8XkqourD0BlGT
 5GpwzCZXSVZyGLnfHdeMcHzaOQAlocAjP6/GBJHJOgZTJACARyuazTXpeTtNQScopuCV
 sg6PrU6TT6YS8Hb7Pz6OLD5jb4UxTsqFktOYiZgo3q0IpS2IitJGN0lIpZw7mWpTS/8V
 Y0I5o6NIRVc3SHG4d+AEy1BMc6CnADQKbTLg4XxNvUNrcJrXvUl4Ry7Qn+qECVJ1Yw7e
 ZFoY42VYGscLrTz0Sk2vQYUnufTh508l/zGEODZ5/Q1F6WzVmB4rGhDgO/+ZCcfL5xfL
 8Sgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695652196; x=1696256996;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=BHY7OgOY6F6focQwEzBU6uZaDtM/iTPURSoopkUooE0=;
 b=BCAOTC++fMqkmJRS2Pq4wZypvjzetbldl5mombwGFYxC/C2sLa1dSZm7cU30AwHvZH
 ruUM7nDPlChYpDQFOWfLIJQj+qaHoKew3sWun9m4LpzZprBIitBAL4wEOhM9dBKJZQs4
 8/Z9pV+puI7GK4IIJNCjoSUeVs9OkFCZYjOTOi4L2WJmj8PPTAqQ4ECwYH8k6eUrM9oW
 +lXR49QoXkhQo4PCZeP37Y9VOynoOyA866XPk/O2+2kwlZCm1l+eyJcAUkkHN30tK85A
 +K+T2PWxALabjvg4u9aAhjaIU6dZBR1Nv8R845h1UyWKsvOZ+SxVTIO+PuJrb9bLf1M5
 VgKA==
X-Gm-Message-State: AOJu0YyST/Ir6niFKgNsIxiZbM1y+530iHK2dvIBu0o4zlhwT/y9VrIJ
 UDvoG3L2lBqcCMDtdyE7ODwVl/3s6Ug=
X-Google-Smtp-Source: AGHT+IELRoE4af2KENmRnuQxWSWQdKeZPmu5nnGxbh43vL3MJkDTxc/VywKWdm8DZtW5q7PbbznRWA==
X-Received: by 2002:ac8:7dc3:0:b0:415:15bd:94d2 with SMTP id
 c3-20020ac87dc3000000b0041515bd94d2mr6966673qte.43.1695652196580; 
 Mon, 25 Sep 2023 07:29:56 -0700 (PDT)
Original-Received: from localhost.localdomain (dsl-10-130-229.b2b2c.ca. [72.10.130.229])
 by smtp.gmail.com with ESMTPSA id
 t16-20020ac85310000000b00405553305casm3810571qtn.86.2023.09.25.07.29.55
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 25 Sep 2023 07:29:56 -0700 (PDT)
X-Mailer: git-send-email 2.41.0
Received-SPF: pass client-ip=2607:f8b0:4864:20::830;
 envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x830.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: guile-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Developers list for Guile,
 the GNU extensibility library" <guile-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guile-devel>,
 <mailto:guile-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guile-devel>
List-Post: <mailto:guile-devel@gnu.org>
List-Help: <mailto:guile-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guile-devel>,
 <mailto:guile-devel-request@gnu.org?subject=subscribe>
Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org
Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.lisp.guile.devel:21987
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.devel/21987>

This change was made to support investigating cyclic module dependencies
that sometimes happen in GNU Guix and are difficult to
comprehend/debug.  For more context, see:
<https://issues.guix.gnu.org/65716>.

Changes in v4:
- Remove with-output-to-port in %load-announce and adjust doc

Changes in v3:
- Replace PAD-COUNT with DEPTH in VISUAL-DEPTH guard.

Changes in v2:
- Guard against negative pad count when computing 'visual-depth'

Maxim Cournoyer (4):
  (ice-9 boot-9): Fix typo.
  .dir-locals: Set c-basic-offset to 2 for c-mode.
  guix.scm: Update guile package native inputs.
  load: Display modules depth in output when using %load-verbosely.

 .dir-locals.el                  |  1 +
 .guix/modules/guile-package.scm |  3 +-
 NEWS                            |  8 +++
 THANKS                          |  1 +
 doc/guile-api.alist             |  4 +-
 doc/ref/api-evaluation.texi     | 62 ++++++++++++++++++-----
 libguile/load.c                 | 89 +++++++++++++++++++++++++++------
 libguile/load.h                 |  4 +-
 module/ice-9/boot-9.scm         | 38 ++++++++------
 9 files changed, 164 insertions(+), 46 deletions(-)


base-commit: 8441d8ff5671db690eb239cfea4dcfdee6d6dcdb
-- 
2.41.0