GNU bug report logs - #15767
24.3; [patch] electric-indent-mode bug

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Dave Abrahams <dave <at> boostpro.com>
Cc: 15767 <at> debbugs.gnu.org
Subject: bug#15767: 24.3; [patch] electric-indent-mode bug
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




This bug report was last modified 11 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.