I find the question and accepted answer to Allowing line break at , in inline math mode? very useful, BUT I would like to make an environment (e.g. "allowbreaks") out of it. The problem is that I'm not able to. Let me explain the idea:
\begin{allowbreaks}
Commas are modified in such a way that they allow breaks in
inline mathmode $(a,b,c)$ only within this environment.
\end{allowbreaks}
Is it possible somehow, please?
edit: I renamed the environment to allowbreaks, because of naming conflicts with the command allowbreak.

\mathlistoption is surely very interesting and I'll probably end up using it some other time, but at the moment possibly breaking at every comma is exactly what I want to achieve, since the variables I'm listing are quite long tuples. – Riccardo T. Jun 11 '12 at 13:35