[Guile-Lib PATCH v3 3/7] tests: guile-library.api: Re-generate.

2024-02-08 Thread Maxim Cournoyer
The file was regenerated by running 'make -C unit-tests guile-library.api.update'. * unit-tests/guile-library.api: Regenerate. --- (no changes since v1) unit-tests/guile-library.api | 239 +-- 1 file changed, 5 insertions(+), 234 deletions(-) diff --git

[Guile-Lib PATCH v3 0/7] Make log-msg accept source properties for displaying source location

2024-02-08 Thread Maxim Cournoyer
The main change of this series is adding the ability to pass source properties (such as can be obtained via syntax-source in macros) to the `log-msg' call, and have the default log formatter use it to display the source location of the corresponding call. The procedure name where the log-msg call

[Guile-Lib PATCH v3 2/7] Use /bin/sh in update-api script shebang.

2024-02-08 Thread Maxim Cournoyer
* unit-tests/update-api: Replace /bin/bash with /bin/sh. --- (no changes since v1) unit-tests/update-api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit-tests/update-api b/unit-tests/update-api index 8824c3f..392ce8b 100755 --- a/unit-tests/update-api +++

[Guile-Lib PATCH v3 4/7] logging: Allow passing source properties to `log-msg'.

2024-02-08 Thread Maxim Cournoyer
Note: this changes the API of the `accept-log' method by adding a new positional argument to it. `accept-log' is a "weak" public interface (mostly intended for internal uses or logging handler implementors), so this is deemed acceptable. * src/logging/logger.scm (log-helper) [source-properties]:

[Guile-Lib PATCH v3 6/7] logging: Make procedure name available to the log formatter.

2024-02-08 Thread Maxim Cournoyer
* src/logging/logger.scm (log-helper): Retrieve procedure name and pass it to `accept-log'. (default-log-formatter): Register new proc-name keyword argument, and include it in formatted message. (accept-log): New proc-name positional argument; pass it to log-formatter. *

[Guile-Lib PATCH v3 5/7] logging: Adjust default log-formatter output.

2024-02-08 Thread Maxim Cournoyer
The log level is always in uppercase, and its surrounding parentheses are dropped. * src/logging/logger.scm (default-log-formatter): Uppercase level and strip its surrounding parens. * unit-tests/logging.logger.scm: Adjust expected output accordingly. --- (no changes since v1)

[Guile-Lib PATCH v3 1/7] configure.ac: Fix typo in message.

2024-02-08 Thread Maxim Cournoyer
--- (no changes since v1) configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7171296..e8f1bba 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,7 @@ dnl distcheck' are aware it is a wip version. AC_INIT( [guile-lib],

[Guile-Lib PATCH v3 7/7] logging: Call flush-log at the end of accept-log.

2024-02-08 Thread Maxim Cournoyer
This is to avoid long block buffering of log messages, which would causes the log messages to be delayed, which is likely to confuse users attempting to follow the logs in real time (see: https://lists.gnu.org/archive/html/guile-devel/2024-01/msg0.html). * src/logging/logger.scm (accept-log):

Re: [PATCH] Fixes for custom-ports

2024-02-08 Thread Maxim Cournoyer
Hi Ludo, Ludovic Courtès writes: > Jonas Hahnfeld via "Developers list for Guile, the GNU extensibility > library" skribis: > >> From b5f1013ad969b6e4e35b36dc63798375ffbecda3 Mon Sep 17 00:00:00 2001 >> From: Jonas Hahnfeld >> Date: Tue, 24 Oct 2023 12:47:21 +0200 >> Subject: [PATCH 1/2] Fix