Add log analogues of all show functions (fixes #185)

Functions which write the contents/meaning of various things in
the log file instead of the terminal.  This commit adds

    (bool|clist|dim|fp|int|muskip|skip|tl)_log:(N|c|n)
    (cs|prop|seq)_log:(N|c)
    coffin_log_structure:(N|c)
    io(r|w)_log_streams:
    keys_log:nn

but not "\char_log_(cat|lc|uc|math|sf)code:n", as this seemed too much.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5340 de43f980-851b-0410-b2f7-c40aca1f87e0
Set newlinechar=10 before crashing in case of internal LaTeX3 error (see #190)

Plain TeX does not define a new line character, hence ^^J does not produce a
new line in messages (see #190).  The fix for the particular scenario here is
easy: since we are stopping TeX anyways, we can set newlinechar with no worry.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5341 de43f980-851b-0410-b2f7-c40aca1f87e0
Tweak of last commit: use `\^^J instead of 10


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5342 de43f980-851b-0410-b2f7-c40aca1f87e0
Typos: spaces (and a small comment)


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5343 de43f980-851b-0410-b2f7-c40aca1f87e0
Move a setting of newlinechar, to also apply to package mode

This applies to versions of LuaTeX older than 0.36, with the
plain format.  Also, small tweak removing a \begingroup ...
\endgroup pair that is not useful (code already in a group).


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5344 de43f980-851b-0410-b2f7-c40aca1f87e0
Add tests for \char_show_value_...code:n functions


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5345 de43f980-851b-0410-b2f7-c40aca1f87e0
Use \int_show:n instead of primitive in \char_show_value_...code:n

This improves the test output a bit.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5346 de43f980-851b-0410-b2f7-c40aca1f87e0
Typo in documented internal function name


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5347 de43f980-851b-0410-b2f7-c40aca1f87e0
Resolve a "multiply defined label" issue

I had to chose whether to point to the section discussing \exp_args
or the one discussing \cs_generate_variant.  I chose the second one.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5348 de43f980-851b-0410-b2f7-c40aca1f87e0
Typo in label name


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5349 de43f980-851b-0410-b2f7-c40aca1f87e0
Provide "no-label" option for the function environment

source3body.tex gives some examples of function documentations,
and comments them.  This is nice, but leads to multiply defined
labels.  The no-label option omits the label and avoids issues.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5350 de43f980-851b-0410-b2f7-c40aca1f87e0
Avoid multiply-defined label by removing one of the docs

The function "\or:" is documented with "\if_case:w" as it should,
and the documentation with "\if_false:w", "\if_true:w", "\else:",
"\fi:" didn't really make sense.

Now there should only remain two multiply-defined labels:
"doc//function/+" and "doc//function/-" (binary and unary).
I don't know what to do: it would make sense for them to appear as
"+ (unary)" versus "+ (binary)" in the index, but that's not easy.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5351 de43f980-851b-0410-b2f7-c40aca1f87e0
Forgot to update a testfile for char_show_value_ functions


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5352 de43f980-851b-0410-b2f7-c40aca1f87e0
Make underscore breakable in end-macro text

Right now this is done by replacing _ by \_ by hand, but it
would be best to keep track of catcodes a bit better and leave
the underscore active throughout most of the processing.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5353 de43f980-851b-0410-b2f7-c40aca1f87e0
Get rid of many Overfull hbox warnings by wrapping lines


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5354 de43f980-851b-0410-b2f7-c40aca1f87e0
Missing \end{macro}


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5355 de43f980-851b-0410-b2f7-c40aca1f87e0
Pick up list of reserved read/write streams dynamically (fixes #191)

This is slightly more tricky than it might appear for a couple of reasons.
First, ConTeXt uses different registers from plain/LaTeX2e to store the
tracking data. Secondly, the etex package/etex.src alters the use of
registers in plain/LaTeX2e meaning that the register is 'one ahead' for
our purposes here.


git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5356 de43f980-851b-0410-b2f7-c40aca1f87e0
Load expl3.sty properly when using expl3-generic in LaTeX

The construction "\endinput\RequirePackage{expl3}\relax" did not work,
as the "\endinput" applies at the next end-line, wherever it occurs.  It
meant that TeX stopped reading "expl3.sty" after its first line, and
continued reading "expl3-generic.tex".  This does not make a huge
difference, as "expl3-code.tex" ended up loaded anyways, but for
instance one could not load xparse afterwards.



git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5357 de43f980-851b-0410-b2f7-c40aca1f87e0
Set newlinechar/errorcontextlines locally for messages in Plain (fixes #190)

Plain TeX has different default values for some parameters than LaTeX,
and this shows up in error messages and when writing to the
terminal/log/files.  This is now fixed by setting the value of
newlinechar and errorcontextlines before each such operation, and
restoring Plain's default values afterwards.



git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5358 de43f980-851b-0410-b2f7-c40aca1f87e0
Avoid string comparison for \tl_if_head_is_N_type:nTF

String comparison is slow with LuaTeX.  This new method combines ideas
from the \tl_if_head_is_group:nTF and \tl_if_head_is_space:nTF
conditionals.  3x speedup in LuaTeX.  No slow down in pdfTeX.



git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@5359 de43f980-851b-0410-b2f7-c40aca1f87e0