I'm currently extending the tempo.el template insertion system to be sensitive to C styles. Specifically, I want to insert braces using c-electric-brace. How programmatically insertion of braces as either (c-electric-brace "{")) or (c-electric-brace "}")) only results in insertion of a newline but not the brace character itself.
I've also tried (self-insert-command 1 "{") and (progn (self-insert-command 1) (insert "{")) but no one does what I want.
What am I missing?
I have activated the electric behavior via c-toggle-auto-newline otherwise I wouldn't have gotten the newline inserted.