bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15766: 24.3; [patch] electric-indent-mode-bug


From: Dave Abrahams
Subject: bug#15766: 24.3; [patch] electric-indent-mode-bug
Date: Wed, 30 Oct 2013 16:16:55 -0700

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 -----

Patch is enclosed that fixes the problem.

--
Dave Abrahams

Attachment: electric.el.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]