Is there a way to inquire whether a given message is switched
OnorOffwithout modifying the$Messagesvariable? The documentation is completely mum about it, it seems.Conversely, if such inquiry is not recommended by design intent, is it at least possible to "push" the current message status, modify it e.g. by turning a message on or off, and then "popping" it?
I know that a list of message types can be temporarily quieted while evaluating an expression with Quiet[expr, {message1, ...}].
Off, On, and Message are compiled kernel functions, so snooping around the available source is of no help.