would the following still work?
")lisp (setf |$ioHook|"
" (lambda (x &optional args)"
" (when (member x '(|startAlgebraOutput|
|endOfAlgebraOutput|"
" |startKeyedMsg| |endOfKeyedMsg|))"
" (prin1 x)"
" (princ #\\Newline))))")
On Tuesday, 2 June 2026 at 16:52:26 UTC+2 [email protected] wrote:
> Quick question...
>
> Is there a real need for ioHook("symbol", args), i.e. for more arguments
> than just "symbol"?
>
> Code like
>
> https://github.com/fricas/fricas/blob/r1.3.13/src/interp/setvars.boot#L98
>
> set l ==
> ioHook("startSysCmd", "set")
> UNWIND_-PROTECT(set1(l, $setOptions), ioHook("endSysCmd", "set"))
>
> we can easily rewrite to
>
> ioHook("startSysCmd!set")
>
> In fact, I doubt that we need to distinguish between "set", "abbrev",
> "display" etc. Wouldn't it be enough to just have
>
> ioHook("startSysCmd")
>
> ?
>
> In case we switch to a one-argument-ioHook, the only external client I
> know of that would be in trouble is frimacs.
>
> https://github.com/pdo/frimacs/blob/master/frimacs-process-mode.el#L54
>
> Opinions?
>
> Ralf
>
--
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 view this discussion visit
https://groups.google.com/d/msgid/fricas-devel/c94ebd7c-0b06-47b6-9dd9-f068df6aa297n%40googlegroups.com.