From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxim Cournoyer Newsgroups: gmane.lisp.guile.devel Subject: [PATCH v5 0/4] Add module depth information to %load-verbosely output Date: Sun, 22 Oct 2023 00:16:52 -0400 Message-ID: <20231022041735.19012-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="36825"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Maxime Devos , Maxim Cournoyer To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Oct 22 06:18:09 2023 Return-path: 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 ) id 1quPuj-0009Lg-4T for guile-devel@m.gmane-mx.org; Sun, 22 Oct 2023 06:18:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quPuR-0002gA-CX; Sun, 22 Oct 2023 00:17:51 -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 ) id 1quPuM-0002fS-Pu for guile-devel@gnu.org; Sun, 22 Oct 2023 00:17:46 -0400 Original-Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quPuK-0005Ee-Rm for guile-devel@gnu.org; Sun, 22 Oct 2023 00:17:46 -0400 Original-Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-66d264e67d8so12661926d6.1 for ; Sat, 21 Oct 2023 21:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697948263; x=1698553063; 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=hP7gYJvaxYrXG3dEzlIXrh+MNVrBmiQFfbuGaEKrq+Q=; b=bupGhQtFsE2eaMqzEzNmFZRaPGpQCtpc4xjauJvreGAvurONz2kdMXz/qagTjtP9Gc DYnKS4N/u6HL8JFRqmdPO5j3OSHKhC+UmolJ1S8R8Vja2hJR4TFqKgH/HTwHGy4erCmO K6XNei31k5zy7/KBaEUa1q3QJzxFnBtErJH3Ng6rIbiuDHqI+GDOmQe8w2l5o9Tfzozx x0yGNP7xbeKrRof6/u1S5koEI8looJxYPgDYYQi/OE4ntHzSbK58Ud9a3nCdde8vlTIo 5hpntx3WtlgS/6PqK/fYm/R1d6TPq+UNu95yscfisrnde2LtFKfh48Mam7fcbOgkRMQf w0rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697948263; x=1698553063; 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=hP7gYJvaxYrXG3dEzlIXrh+MNVrBmiQFfbuGaEKrq+Q=; b=O1SAbtM7jmfcRPZe0IxKE5fkK2PM3gtzOZ9h2/t4cqwMvzk5VDvf4rJU1DT23Zeohe suMjCoZnsJPMo4dNwA4yKxE9wVCOSyzhq0ASVan3CTwMrbTADiN3uRfYBuLcqRXEGRN8 C0uRdDcOqcU7YtVLPsL8X+zJSyFsaLPnOBrxgzOXFX9B8XsSqupWOD8TZdFvxCc5q1v5 i0ZzZpVNUyKU0Mroks4f+bU0BNSBymFbP7BfjNlVvuCp9GvvvVaSZ1KRSEje37yF41g1 BsfxQNvFTQ4+4fENMu020G1gWx/NfMaIqOjDdTxXAI21wLnine2hkqOR3xKH4nwhiOul 3JRA== X-Gm-Message-State: AOJu0YwAmZGRytwF8p7HuBFsm4UatUL8/CcE0LvDGVTxfuaI0xwwmDwx NY6oqVgBnWvmpKTFpr76H1LY//Hc1nk= X-Google-Smtp-Source: AGHT+IHMKl8qjBXjI9qkHCpAZRnHvEdZo8ieYTvgFkAoC7rlAAr9S8ES1hP71vkNZ4N/CZAN1YL8lA== X-Received: by 2002:a05:6214:e46:b0:66d:9104:a334 with SMTP id o6-20020a0562140e4600b0066d9104a334mr6827404qvc.32.1697948263194; Sat, 21 Oct 2023 21:17:43 -0700 (PDT) Original-Received: from localhost.localdomain (dsl-205-236-230-191.b2b2c.ca. [205.236.230.191]) by smtp.gmail.com with ESMTPSA id bt13-20020ad455cd000000b0065af9d1203dsm1910781qvb.121.2023.10.21.21.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 21:17:42 -0700 (PDT) X-Mailer: git-send-email 2.41.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2f.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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:22036 Archived-At: 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: . Changes in v5: - Introduce the usage of keywords for %load-hooks, breaking backward compatibility at the benefit of future stability and extensibility 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 | 13 +++++++ THANKS | 1 + doc/guile-api.alist | 4 +- doc/ref/api-evaluation.texi | 66 ++++++++++++++++++++++++++------- libguile/load.c | 64 +++++++++++++++++++++++++------- libguile/load.h | 4 +- module/ice-9/boot-9.scm | 39 ++++++++++++------- 9 files changed, 149 insertions(+), 46 deletions(-) base-commit: 79e836b8cc601a1259c934000a953a8d739ddd6f -- 2.41.0