Well, in that case, I am flattered that my opinion is given much weight in this. What I will say is that it seems like the first order of business is to disambiguate what has which responsibilities in this case, and where the line falls between major modes, electric-layout, and electric-pair. It seems like this area of the electric modes is suffering from a bit of fragmentation as well as differing perspectives on what constitutes “electric” behavior. Things such as c-toggle-auto-newline, for example, almost seem in this case that they might be better delegated to electric-layout-mode, with cc-mode specifying different electric-layout constraints for its different formatting styles. It seems this is close to what João was suggesting? And I suspect what Alan disagrees with? I apologize for any misunderstanding.