[latex3-commits] [latex3/latex3] main: Support bools for opts "log-functions" and "check-declarations" (419f31e38)
github at latex-project.org
github at latex-project.org
Wed May 24 11:19:12 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/419f31e386a2dc9a4ed66fbcc782308075b9ff24
>---------------------------------------------------------------
commit 419f31e386a2dc9a4ed66fbcc782308075b9ff24
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed May 24 10:12:49 2023 +0100
Support bools for opts "log-functions" and "check-declarations"
This fixes #978.
>---------------------------------------------------------------
419f31e386a2dc9a4ed66fbcc782308075b9ff24
l3kernel/CHANGELOG.md | 2 ++
l3kernel/expl3.dtx | 20 ++++++++++++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 41106fe97..0eb809ae4 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -13,6 +13,8 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed
- Set `\l_keys_value_tl` in `.initial:n` (issue \#1013)
+- Support for boolean values in `expl3` package options
+ `check-declarations` and `log-functions` (issue \#978)
## [2023-05-22]
diff --git a/l3kernel/expl3.dtx b/l3kernel/expl3.dtx
index b62a44cfc..4597e2de9 100644
--- a/l3kernel/expl3.dtx
+++ b/l3kernel/expl3.dtx
@@ -1384,12 +1384,28 @@
backend .choices:nn =
{ dvipdfmx , dvips , dvisvgm , luatex , pdftex , pdfmode , xdvipdfmx , xetex }
{ \sys_load_backend:n {#1} } ,
- check-declarations .code:n =
+ check-declarations .choice: ,
+ check-declarations / true .code:n =
{ \debug_on:n { check-declarations } } ,
+ check-declarations / false .code:n =
+ {
+ \__kernel_if_debug:TF
+ { \debug_off:n { check-declarations } }
+ { }
+ } ,
+ check-declarations .default:n = true ,
driver .meta:n = { backend = #1 } ,
enable-debug .code:n = {} , % A stub
- log-functions .code:n =
+ log-functions .choice: ,
+ log-functions / true .code:n =
{ \debug_on:n { log-functions } } ,
+ log-functions / false .code:n =
+ {
+ \__kernel_if_debug:TF
+ { \debug_off:n { log-functions } }
+ { }
+ } ,
+ log-functions .default:n = true ,
suppress-backend-headers .bool_gset_inverse:N
= \g__kernel_backend_header_bool ,
suppress-backend-headers .initial:n = false ,
More information about the latex3-commits
mailing list.