[latex3-commits] [git/LaTeX3-latex3-latex3] master: Drop a few refs to xparse (2db38aeaf)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Feb 5 21:07:17 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/2db38aeaff0cf2e6858152978f9271cf5ebb1499

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

commit 2db38aeaff0cf2e6858152978f9271cf5ebb1499
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Feb 4 13:03:04 2021 +0000

    Drop a few refs to xparse


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

2db38aeaff0cf2e6858152978f9271cf5ebb1499
 l3kernel/l3doc.dtx     |  6 +++---
 l3trial/xfont/xfss.dtx | 14 +++++++-------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index e38112b24..c75d338d8 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -168,7 +168,7 @@ and all files in that bundle must be distributed together.
 % Furthermore, we need another \enquote{layer} of documentation commands
 % to account for \enquote{user-macro} as opposed to
 % \enquote{code-functions}; the \pkg{expl3} functions should be
-% documented differently, probably, to the \pkg{xparse} user macros (at
+% documented differently, probably, to the \pkg{ltcmd} user macros (at
 % least in terms of indexing).
 %
 % In no particular order, a list of things to do:
@@ -1590,7 +1590,7 @@ and all files in that bundle must be distributed together.
 % \begin{macro}{\@@_pdfstring_newline:w}
 %   We avoid some hyperref warnings by making |\\| (almost) trivial in
 %   bookmarks: more precisely it might be used with a star and an
-%   optional argument, which we thus remove using an \pkg{xparse}
+%   optional argument, which we thus remove using an \pkg{ltcmd}
 %   expandable command.  Since there cannot be trailing optional
 %   arguments, pick up an extra mandatory one and put it back.
 %    \begin{macrocode}
@@ -2932,7 +2932,7 @@ and all files in that bundle must be distributed together.
 %
 % \begin{macro}{\@@_macro:nnw}
 %   The arguments are a key--value list of \meta{options} and a
-%   comma-list of \meta{names}, read verbatim by \pkg{xparse}.  First
+%   comma-list of \meta{names}, read verbatim by \pkg{ltcmd}.  First
 %   initialize some variables before applying the \meta{options}, then
 %   parse the \meta{names} to get a sequence of macro names, then apply
 %   \cs{@@_macro_single:nNN} to each (this step is more subtle than
diff --git a/l3trial/xfont/xfss.dtx b/l3trial/xfont/xfss.dtx
index 5673d8fbf..272e19643 100644
--- a/l3trial/xfont/xfss.dtx
+++ b/l3trial/xfont/xfss.dtx
@@ -102,7 +102,7 @@
 %   The optional argument can either follow the style of \cs{newcommand}
 %   (two optional arguments: the number of arguments, and the default
 %   argument in case the defined command should have an argument), or
-%   the style of \pkg{xparse} (a braced argument specification).
+%   the style of \pkg{ltcmd} (a braced argument specification).
 % \end{function}
 %
 % \begin{function}{\DeclareTextCommandDefault,\ProvideTextCommandDefault}
@@ -2111,7 +2111,7 @@
 %   and use the definition relevant for the current encoding.
 %   The \cs{xfss_declare_text_command:NNn} function defines the text
 %   command |#2| in the encoding |#3| using the declaration command
-%   |#1|, either \cs{DeclareRobustCommand}, xparse's
+%   |#1|, either \cs{DeclareRobustCommand}, ltcmd's
 %   \cs{DeclareDocumentCommand}, or the \cs{tex_chardef:D}, \emph{etc.}
 %   The \cs{xfss_\meta{enc.}_cmd:NN} function at the start of the definition
 %   of |#2| is responsible for either using \cs{\meta{enc.}\#2} if
@@ -2351,13 +2351,13 @@
 % \begin{macro}{\DeclareTextCommand,\ProvideTextCommand}
 % \begin{macro}[aux]{\xfss_args_old_or_new_style:TFnnnn}
 %   These two commands accept either \cs{newcommand}-style optional
-%   arguments, or an \pkg{xparse}-style argument specification.
+%   arguments, or an \pkg{ltcmd}-style argument specification.
 %   The only difference between \cs{DeclareTextCommand} and
-%   \cs{ProvideTextCommand} is what function they use in the \pkg{xparse}
+%   \cs{ProvideTextCommand} is what function they use in the \pkg{ltcmd}
 %   case.
 %   The \cs{xfss_old_or_new_style:TFnnnn} function analyses its last
 %   four arguments to decide whether they are in the old
-%   (\cs{newcommand}) style, or the new xparse style.
+%   (\cs{newcommand}) style, or the new ltcmd style.
 %    \begin{macrocode}
 \DeclareDocumentCommand \DeclareTextCommand {mmoomg}
   {
@@ -2380,11 +2380,11 @@
         \IfValueTF {#4}
           { #1 [{#3}] [{#4}] {#5} } % with default arg
           { #1 [{#3}]        {#5} } % no default arg
-        \IfValueTF {#6} { \ERROR {#6} } % don't mix xparse with old-style!
+        \IfValueTF {#6} { \ERROR {#6} } % don't mix ltcmd with old-style!
       }
       {
         \IfValueTF {#6}
-          { #2 {#5} {#6} } % xparse argument
+          { #2 {#5} {#6} } % ltcmd argument
           { #2 {  } {#5} } % no argument
       }
   }





More information about the latex3-commits mailing list.