[latex3-commits] [git/LaTeX3-latex3-latex3] master: Correct naming (46eba34)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Feb 15 08:36:17 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/46eba348e8b54e88d04369e1aedba57439ed437d

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

commit 46eba348e8b54e88d04369e1aedba57439ed437d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Feb 15 07:33:47 2018 +0000

    Correct naming


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

46eba348e8b54e88d04369e1aedba57439ed437d
 l3trial/l3draw/l3draw-paths.dtx        |    8 ++++----
 l3trial/l3draw/testfiles/m3draw000.tlg |   30 ------------------------------
 2 files changed, 4 insertions(+), 34 deletions(-)

diff --git a/l3trial/l3draw/l3draw-paths.dtx b/l3trial/l3draw/l3draw-paths.dtx
index 95c6ca1..f9ebca1 100644
--- a/l3trial/l3draw/l3draw-paths.dtx
+++ b/l3trial/l3draw/l3draw-paths.dtx
@@ -158,14 +158,14 @@
 % \end{variable}
 %
 % \begin{macro}{\draw_path_corner_arc:n}
-% \begin{macro}{\@@_path_mark_corner:nn}
+% \begin{macro}{\@@_path_corner_arc:nn}
 %   Calculate the arcs, check they are non-zero.
 %    \begin{macrocode}
-\cs_new_protected:Npn \@@_path_mark_corner:nn
+\cs_new_protected:Npn \draw_path_corner_arc:n #1
   {
-    \@@_point_process:nn { \@@_path_moveto:nn } {#1}
+    \@@_point_process:nn { \@@_path_corner_arc:nn } {#1}
   }
-\cs_new_protected:Npn \@@_path_mark_corner:nn #1#2
+\cs_new_protected:Npn \@@_path_corner_arc:nn #1#2
   {
     \dim_set:Nn \l_@@_corner_xarc_dim {#1}
     \dim_set:Nn \l_@@_corner_yarc_dim {#2}
diff --git a/l3trial/l3draw/testfiles/m3draw000.tlg b/l3trial/l3draw/testfiles/m3draw000.tlg
index 2d230e2..4153648 100644
--- a/l3trial/l3draw/testfiles/m3draw000.tlg
+++ b/l3trial/l3draw/testfiles/m3draw000.tlg
@@ -10,36 +10,6 @@ Author: Joseph Wright
 \g__draw_path_ymin_dim=\dimen...
 \l__draw_corner_xarc_dim=\dimen...
 \l__draw_corner_yarc_dim=\dimen...
-! Illegal parameter number in definition of \__draw_path_mark_corner:nn.
-<to be read again> 
-                   1
-l. ......_process:nn { \__draw_path_moveto:nn } {#1
-                                                  }
-You meant to type ## instead of #, right?
-Or maybe a } was forgotten somewhere earlier, and things
-are all screwed up? I'm going to assume that you meant ##.
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!
-! LaTeX error: "kernel/command-already-defined"
-! 
-! Control sequence \__draw_path_mark_corner:nn already defined.
-! 
-! See the LaTeX3 documentation for further information.
-! 
-! For immediate help type H <return>.
-!...............................................  
-l. ......_protected:Npn \__draw_path_mark_corner:nn
-                                                   #1#2
-|'''''''''''''''''''''''''''''''''''''''''''''''
-| This is a coding error.
-| 
-| LaTeX has been asked to create a new control sequence
-| '\__draw_path_mark_corner:nn' but this name has already been used elsewhere.
-| 
-| The current meaning is:
-|   \protected\long macro:->\__draw_point_process:nn {\__draw_path_moveto:nn
-| }{##1}
-|...............................................
 \l__draw_xvec_x_dim=\dimen...
 \l__draw_xvec_y_dim=\dimen...
 \l__draw_yvec_x_dim=\dimen...





More information about the latex3-commits mailing list