[latex3-commits] [l3svn] branch master updated: l3doc provides \saved at indexname.

noreply at latex-project.org noreply at latex-project.org
Mon Apr 11 21:04:09 CEST 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  3ccd1aa   l3doc provides \saved at indexname.
3ccd1aa is described below

commit 3ccd1aaf0ec3a7182e3f8a4f7d7543af799d17aa
Author: Qing Lee <sobenlee at gmail.com>
Date:   Tue Apr 12 02:09:21 2016 +0800

    l3doc provides \saved at indexname.
    
    \saved at indexname is introduced by doc 2016/02/15 v2.1g.
---
 l3kernel/l3doc.dtx |   23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index 72bc603..dfe3a5f 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -2252,13 +2252,12 @@ Do not distribute a modified version of this file.
 %     \item Macro/function/whatever name; input has already been
 %       sanitised.
 %   \end{arguments}
-%   The assignment to \cs{saved at macroname} is used by \pkg{doc}'s
-%   \cs{changes} mechanism.
+%   The assignments to \cs{saved at macroname} and \cs{saved at indexname}
+%   are used by \pkg{doc}'s \cs{changes} mechanism.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_macro_single:n #1
   {
     \tl_set:Nn \saved at macroname {#1}
-
     \@@_macro_typeset_one:n {#1}
     \exp_args:Nx \@@_macro_index:n
       {
@@ -2270,15 +2269,15 @@ Do not distribute a modified version of this file.
   {
     \bool_if:NF \l_@@_macro_aux_bool
       { \seq_gput_right:Nn \g_doc_macros_seq {#1} }
-    \hbox_set:Nn \l_@@_macro_index_box
-      {
-        % This box only contains targets... it seems inefficient.
-        \hbox_unpack_clear:N \l_@@_macro_index_box
-        \int_gincr:N \c at CodelineNo
-        \@@_special_index:nn {#1} { main }
-        \DoNotIndex {#1}
-        \int_gdecr:N \c at CodelineNo
-      }
+    \hbox_set:Nw \l_@@_macro_index_box
+      % This box only contains targets... it seems inefficient.
+      \hbox_unpack_clear:N \l_@@_macro_index_box
+      \int_gincr:N \c at CodelineNo
+      \@@_special_index:nn {#1} { main }
+      \DoNotIndex {#1}
+      \int_gdecr:N \c at CodelineNo
+    \exp_args:NNNo \hbox_set_end:
+      \tl_set:Nn \saved at indexname { \l_@@_index_key_tl }
   }
 %    \end{macrocode}
 % \end{macro}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list