From: Dave Abrahams <dave@boostpro.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "15767@debbugs.gnu.org" <15767@debbugs.gnu.org>
Subject: bug#15767: 24.3; [patch] electric-indent-mode bug
Date: Thu, 31 Oct 2013 20:27:55 -0700 [thread overview]
Message-ID: <5F6E093A-E25D-4A4B-82E6-D4AD99616CE7@boostpro.com> (raw)
In-Reply-To: <jwvmwlptlwd.fsf-monnier+emacsbugs@gnu.org>
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
next prev parent reply other threads:[~2013-11-01 3:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 23:03 bug#15767: 24.3; [patch] electric-indent-mode bug Dave Abrahams
2013-10-31 17:06 ` Stefan Monnier
2013-11-01 3:27 ` Dave Abrahams [this message]
2013-11-04 20:04 ` Stefan Monnier
[not found] ` <handler.15767.D15767.138359548417885.notifdone@debbugs.gnu.org>
2013-11-05 5:06 ` bug#15767: closed (Re: bug#15767: 24.3; [patch] electric-indent-mode bug) Dave Abrahams
2013-11-05 15:44 ` Stefan Monnier
2013-11-05 15:54 ` Dave Abrahams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5F6E093A-E25D-4A4B-82E6-D4AD99616CE7@boostpro.com \
--to=dave@boostpro.com \
--cc=15767@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).