Subject: Re: bug#15767: 24.3; [patch] electric-indent-mode bug

From: Stefan Monnier <[email-masked]>
Date: Thu, 31 Oct 2013 13:06:24 -0400

> 1. emacs -Q
> 2. eval the following:

>   (electric-indent-mode)
>   (electric-layout-mode)
>   (setq electric-indent-chars (append "{}" electric-indent-chars))
>   (setq electric-layout-rules '((?\{ . after) (?\} . before)))

> 3. type `f o o {'

> Result expected: a buffer containing
> ----- schnipp -----
> foo {

> ----- schnapp -----

> Result received: a buffer containing
> ----- schnipp -----
> foo{

> ----- schnapp -----

I must be missing something:
- your patch does not seem to make any difference to your test case.
- I don't understand why you'd expect `f o o {' to end up inserting
  a space between foo and the open brace.

        Stefan