[latex3-commits] [git/LaTeX3-latex3-latex2e] gh932b: restrict detokenize to within csname #932 (f970508e)

David Carlisle d.p.carlisle at gmail.com
Sat Oct 22 16:13:20 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh932b
Link       : https://github.com/latex3/latex2e/commit/f970508e1e71f484061db2089993dfd1f50406b9

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

commit f970508e1e71f484061db2089993dfd1f50406b9
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Oct 22 15:13:20 2022 +0100

    restrict detokenize to within csname #932


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

f970508e1e71f484061db2089993dfd1f50406b9
 base/ltclass.dtx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 7b1ca077..8d946a32 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -1521,8 +1521,7 @@
    \ifx\@classoptionslist\relax\else
     \@for\CurrentOption:=\@classoptionslist\do{%
       \ifx\CurrentOption\@empty\else
-        \edef\CurrentOption{\detokenize\expandafter{\CurrentOption}}%
-        \@ifundefined{ds@\CurrentOption}{}{%
+        \@ifundefined{ds@\detokenize\expandafter{\CurrentOption}}{}{%
           \@use at ption
           \expandafter\let\csname ds@\CurrentOption\endcsname\@empty
         }%
@@ -1567,8 +1566,7 @@
 %<latexrelease>                 {\@process at pti@ns}{Unused options issue}%
 \def\@process at pti@ns{%
   \@for\CurrentOption:=\@curroptions\do{%
-   \edef\CurrentOption{\detokenize\expandafter{\CurrentOption}}%
-    \@ifundefined{ds@\CurrentOption}%
+    \@ifundefined{ds@\detokenize\expandafter{\CurrentOption}}%
       {\@use at ption
        \default at ds}%
 %    \end{macrocode}
@@ -1636,6 +1634,7 @@
 % \changes{v1.0e}{1994/05/17}
 %         {Execute option after removing from list, not before}
 % \changes{v1.3x}{2021/02/18}{filter out =value from unused option list (gh/85)}
+% \changes{v1.5e}{2022/10/22}{Use \cs{detokenize}}
 %    \begin{macrocode}
 %</2ekernel>
 %<latexrelease>\IncludeInRelease{2021/06/01}%
@@ -1645,7 +1644,7 @@
   \@expandtwoargs\@removeelement
      {\expandafter\@remove at eq@value\CurrentOption=\@nil}%
   \@unusedoptionlist\@unusedoptionlist
-  \csname ds@\CurrentOption\endcsname}
+  \csname ds@\detokenize\expandafter{\CurrentOption}\endcsname}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %<latexrelease>\IncludeInRelease{0000/00/00}%





More information about the latex3-commits mailing list.