GNU bug report logs -
#15767
24.3; [patch] electric-indent-mode bug
Previous Next
Reported by: Dave Abrahams <dave <at> boostpro.com>
Date: Wed, 30 Oct 2013 23:43:02 UTC
Severity: minor
Tags: patch
Found in version 24.3
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 15767 <at> debbugs.gnu.org (full text, mbox):
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 <at> 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
This bug report was last modified 11 years and 199 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.