[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Clear option data in \AtEndOfPackage hook (9322212d)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Jan 15 09:41:44 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/9322212df9553dfa6d985ef744625b59747bfac0

>---------------------------------------------------------------

commit 9322212df9553dfa6d985ef744625b59747bfac0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Jan 15 08:41:44 2022 +0000

    Clear option data in \AtEndOfPackage hook


>---------------------------------------------------------------

9322212df9553dfa6d985ef744625b59747bfac0
 base/changes.txt | 5 +++++
 base/ltkeys.dtx  | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index f73c8c50..eaffe9f8 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -5,6 +5,11 @@ It is provided for convenience only.  It therefore makes no claims to
 completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
+2022-01-15  Joseph Wright  <Joseph.Wright-project.org>
+
+	* ltkeys.dtx:
+        Clear option data in \AtEndOfPackage hook
+
 2022-01-06  Joseph Wright  <Joseph.Wright-project.org>
 
 	* ltexpl.dtx (section{Document-level command names for expl3 functions}):
diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index 3c58585d..a77d587c 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -170,6 +170,8 @@
 % \end{variable}
 %
 % \begin{macro}{\@@_options:Nn, \@@_options:NV}
+% \changes{v1.0b}{2022/01/15}
+%         {Clear option list in end-of-package hook}
 % \begin{macro}{\@@_options_end:}
 %   The main function calls functions to collect up the global and local
 %   options into \cs{l_@@_options_clist} before calling the
@@ -204,7 +206,7 @@
     \bool_set_true:N \l_@@_options_loading_bool
     \keys_set:nV {#2} \l_@@_options_clist
     \bool_set_false:N \l_@@_options_loading_bool
-    \cs_set_eq:NN \@unprocessedoptions \scan_stop:
+    \AtEndOfPackage { \cs_set_eq:NN \@unprocessedoptions \scan_stop: }
     \@@_option_end:
     \@@_options_loaded:n {#2}
   }





More information about the latex3-commits mailing list.