[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15767: 24.3; [patch] electric-indent-mode bug
From: |
Dave Abrahams |
Subject: |
bug#15767: 24.3; [patch] electric-indent-mode bug |
Date: |
Thu, 31 Oct 2013 20:27:55 -0700 |
Sorry, the test case is wrong; you're supposed to type `f o o SPC {'
Sent from my illudium Q-36 explosive space modulator
On Oct 31, 2013, at 10:06 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 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