Skip to content

Commit

Permalink
Stop using InfoData, always use InfoOutput
Browse files Browse the repository at this point in the history
InfoOutput was added in GAP 4.9, and InfoData did not do anything since GAP 4.10
  • Loading branch information
fingolfin committed Jun 20, 2024
1 parent 03971e9 commit 2eb466c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions init.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,8 @@
# An alternative Info handler which does not print implicit "#I " and "\n"
BindGlobal("PlainInfoHandler",
function ( infoclass, level, list )
local cl, out, s, infoOutput;
if IsBoundGlobal("InfoOutput") then
infoOutput := ValueGlobal("InfoOutput");
out := infoOutput(infoclass);
else
cl := InfoData.LastClass![1];
if IsBound(InfoData.Output[cl]) then
out := InfoData.Output[cl];
else
out := DefaultInfoOutput;
fi;
fi;
local cl, out, s;
out := InfoOutput(infoclass);
if out = "*Print*" then
for s in list do
Print(s);
Expand Down

0 comments on commit 2eb466c

Please sign in to comment.