|
From: | Stefan Monnier |
Subject: | bug#15767: 24.3; [patch] electric-indent-mode bug |
Date: | Thu, 31 Oct 2013 13:06:24 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> 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
[Prev in Thread] | Current Thread | [Next in Thread] |