> what I am asking for now is something much simpler: could we have an ioHook
> for these messages?
I support an additional ioHook, but your patch does not seem right.
Doesn't
msg is ['mathprint, mathexpr] => ...
exit this function before the ending hook?
Ralf
> diff --git a/src/interp/g-error.boot b/src/interp/g-error.boot
> index e816e096..ce7c5175 100644
> --- a/src/interp/g-error.boot
> +++ b/src/interp/g-error.boot
> @@ -151,6 +151,7 @@ sayErrorly(errorLabel, msg) ==
> sayErrorly1(errorLabel, msg)
>
> sayErrorly1(errorLabel, msg) ==
> + ioHook("startKeyedMsg", errorLabel, msg)
> sayBrightly '" "
> if $testingSystem then sayMSG $testingErrorPrefix
> sayBrightly ['" >> ",errorLabel,'":"]
> @@ -158,6 +159,7 @@ sayErrorly1(errorLabel, msg) ==
> msg is ['mathprint, mathexpr] =>
> mathprint mathexpr
> sayBrightly msg
> + ioHook("endOfKeyedMsg", errorLabel)
>
>
>
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/a6c19c4c-2af0-63b6-beb8-7411497252e1%40hemmecke.org.
For more options, visit https://groups.google.com/d/optout.