l3doc: base form conditional \<name>:<arg spec>TF
is indexed unconditionally
#1216
Labels
\<name>:<arg spec>TF
is indexed unconditionally
#1216
Not all conditionals have a
\<name>:<arg spec>TF
base form, but currently theT
andF
form usages are always indexed as theTF
base form.For example
\file_if_exist_input:nF
has noT
andTF
forms, but\file_if_exist_input:nTF
, an undefined function is the only form listed in the "Index" chapter ofinterface3.pdf
.Here's a possible patch that makes
\__codedoc_key_get_base:nN
aware of\DoNotIndex
records (stored in\l__doc_donotindex_seq
sincedoc
v3). Then one can use\DoNotIndex{\file_if_exist_input:nTF}
to make\file_if_exist_input:nF
indexed as itself.This slows down
l3doc
further more, since\seq_if_in:NnTF
takes linear time. Storing\DoNotIndex
records in al3key
module would reduce the time complexity I think.A full example to test the patch
The text was updated successfully, but these errors were encountered: