Sven Joachim wrote:
> On 2008-06-04 10:48 +0200, Josh Triplett wrote:
> 
>> c-electric-brace uses self-insert-command to insert the actual brace
>> typed.  As a result, if run by some means other than typing a brace,
>> it does not insert the correct character.
> 
> What do you think the "correct character" should be?  An opening brace?
> A closing brace?  Something else?

Good point.  Perhaps it could take an argument of the correct character to
use?

>>  For instance, if run via
>> M-x c-electric-brace RET, it inserts a Ctrl-M character (the RET) into
>> the buffer.
> 
> Why do you want to call c-electric-brace by other means than by typing a
> brace?

Because with auto-newline on, c-electric-brace will figure out the
appropriate way to place a brace.  That would make it useful in templates
that want to automatically adapt to the current C style.

- Josh Triplett

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to