Re: Temporarily suppress all error messages
Michel Talon <[email protected]> Tue, 19 May 2026 13:05:57 +0200
| Newsgroups | gmane.comp.mathematics.maxima.general |
|---|---|
| Message-ID | <[email protected]> |
Le 19/05/2026 à 04:52, Astrea Drifter a écrit : > > While searching for solutions, I found a thread where the following > commands were recommended to turn off error and warning messages > respectively, and these seemed well suited for the use case of that > thread's op: > :lisp (defun merror(&rest foo) nil) > :lisp (defun mtell (&rest foo) nil) > > Unfortunately, while I have some experience with Maxima, I know > nothing at all about Lisp. A little pedagogy: a lot of errors in maxima trigger the function merror, which outputs the appropriate error message. In lisp you can redefine any function, so when doing (defun merror(&rest foo) nil) you are just redefining merror to produce nil, for whatever arguments you feed merror with (&rest foo). Idem for mtell which is triggered by less severe problems. But this does not work for your use case because the error is produced at the level of the parser (nparse.lisp) in which errors do not call merror or mtell, but just use the lisp function format to output a message. (format t (intl:gettext "incorrect syntax: ")) line 122 of nparse.lisp followed by some more complex stuff to output the cause of the error, here ~ is not an infix operator ... Since you probably don't want to redefine lisp functions, i don't see how to mute this error message. -- Michel Talon _______________________________________________ Maxima-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maxima-discuss