summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/advice/t-advice.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/third/advice/t-advice.tex')
-rw-r--r--Master/texmf-dist/tex/context/third/advice/t-advice.tex9
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/third/advice/t-advice.tex b/Master/texmf-dist/tex/context/third/advice/t-advice.tex
index dcffe7205e3..e30bed0869a 100644
--- a/Master/texmf-dist/tex/context/third/advice/t-advice.tex
+++ b/Master/texmf-dist/tex/context/third/advice/t-advice.tex
@@ -23,20 +23,22 @@
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Saso Zivanovic.
%%
-%% The files belonging to this work and covered by LPPL are listed in `FILES`.
+%% The files belonging to this work and covered by LPPL are listed in
+%% (<texmf>/doc/generic/advice/)FILES.
%D \module[
%D file=t-advice.tex,
%D version=1.0.1,
%D title=Advice,
%D subtitle=Extend commands and environments,
%D author=Saso Zivanovic,
-%D date=2023-09-10,
+%D date=2023-10-24,
%D copyright=Saso Zivanovic,
%D license=LPPL,
%D ]
\writestatus{loading}{ConTeXt User Module / advice}
\unprotect
\startmodule[advice]
+\input miniltx
\input t-collargs
\pgfkeys{
/handlers/.install advice/.code={%
@@ -410,7 +412,8 @@
\let\advice@init@i\advice@setup@init@i
\let\advice@init@I\advice@setup@init@I
}
-\def\advice@trace#1{\immediate\write16{[tracing advice] #1}}
+ \long\def\advice@typeout#1{\directlua{texio.write_nl("\luaescapestring{#1}")}}
+\def\advice@trace#1{\advice@typeout{[tracing advice] #1}}
\def\advice@trace@init@i#1#2{%
\advice@trace{Advising \detokenize\expandafter{\string#2} (\detokenize{#1})}%
\advice@setup@init@i{#1}{#2}%