From 2eb466c791ea1c8d7a51cc929bc1d0dd93df6a1d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 20 Jun 2024 15:49:25 +0200 Subject: [PATCH] Stop using InfoData, always use InfoOutput InfoOutput was added in GAP 4.9, and InfoData did not do anything since GAP 4.10 --- init.g | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/init.g b/init.g index 51d0ae8..0dc783e 100644 --- a/init.g +++ b/init.g @@ -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);