We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed92b19 commit 7c3778dCopy full SHA for 7c3778d
init.g
@@ -10,12 +10,17 @@
10
# An alternative Info handler which does not print implicit "#I " and "\n"
11
BindGlobal("PlainInfoHandler",
12
function ( infoclass, level, list )
13
- local cl, out, s;
14
- cl := InfoData.LastClass![1];
15
- if IsBound(InfoData.Output[cl]) then
16
- out := InfoData.Output[cl];
+ local cl, out, s, infoOutput;
+ if IsBoundGlobal("InfoOutput") then
+ infoOutput := ValueGlobal("InfoOutput");
+ out := infoOutput(infoclass);
17
else
18
- out := DefaultInfoOutput;
+ cl := InfoData.LastClass![1];
19
+ if IsBound(InfoData.Output[cl]) then
20
+ out := InfoData.Output[cl];
21
+ else
22
+ out := DefaultInfoOutput;
23
+ fi;
24
fi;
25
if out = "*Print*" then
26
for s in list do
0 commit comments