[latex3-commits] [latex3/latex3] main: Fix `\fp_clear_function:n` acting globally (47c885a5c)
github at latex-project.org
github at latex-project.org
Thu Oct 26 18:05:45 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/47c885a5cc965d02bff5e9d96cf7bcd876ffa763
>---------------------------------------------------------------
commit 47c885a5cc965d02bff5e9d96cf7bcd876ffa763
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Thu Oct 26 07:02:04 2023 +0800
Fix `\fp_clear_function:n` acting globally
>---------------------------------------------------------------
47c885a5cc965d02bff5e9d96cf7bcd876ffa763
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3fp-functions.dtx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 6429d8856..f4cb775a7 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -17,6 +17,7 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed
- `\fp_clear_variable:n` should act locally (issue \#1298)
+- `\fp_clear_function:n` should act locally and correctly
## [2023-10-23]
diff --git a/l3kernel/l3fp-functions.dtx b/l3kernel/l3fp-functions.dtx
index a899f3493..bb81fa67e 100644
--- a/l3kernel/l3fp-functions.dtx
+++ b/l3kernel/l3fp-functions.dtx
@@ -264,7 +264,7 @@
{ \exp_args:No \@@_clear_function:n { \tl_to_str:n {#1} } }
\cs_new_protected:Npn \@@_clear_function:n #1
{
- \cs_undefine:c { @@_parse_word_ #1 :N }
+ \cs_set_eq:cN { @@_#1_o:w } \tex_undefine:D
\@@_function_set_parsing:Nn \cs_set_eq:NN {#1}
}
% \end{macrocode}
More information about the latex3-commits
mailing list.