From: Rupert S. <rsw...@gm...> - 2014-03-30 21:30:22
|
velten <kai...@hs...> writes: > 2. there are nevertheless exceptional situations where it makes sense to > switch off these messages, e.g. if you want to print out a short > documentation of your programming session, including output, but not > including 10 pages of warnings which you might want to analyze later. > > I'd be still interested in a preamble such as > ratprint:false;... > which could be used to temporarily switch off all warnings and error > messages; this would be useful for other users as well. If your use case is something like scripted_input.mac ==> maxima_output.txt ==> documentation.something then why not just grep for errors between the second and third stages and strip them out? I can definitely see myself wanting to do things like this, but I'm also pretty certain that each time I'll have different requirements about what stays in and what gets stripped out, so it's probably easiest just to use sed or grep on the text in an ad-hoc way. For example, do I want to keep warnings about inverse trig functions? rat conversion? invalid numbers in range of plots? ...??? Frankly, I'd rather make each decision when I come to it and, if a warning/error message doesn't come up for my example, I don't have to think about it at all. Awesome! Rupert |