all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 20915@debbugs.gnu.org, Rasmus <rasmus@gmx.us>
Subject: bug#20915: 25.0.50; [js-mode] electric annoyances
Date: Tue, 30 Jun 2015 10:07:59 -0400	[thread overview]
Message-ID: <jwvioa5pa0r.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <559150C1.7080504@yandex.ru> (Dmitry Gutov's message of "Mon, 29 Jun 2015 17:05:53 +0300")

>> FWIW, given the first two lines, the third line's indentation is wrong.
>> Whether the first two lines where auto-indented or manually indented
>> does not matter in this regard (IMNSHO).
> Not according to the current algorithm (which is based on (nth
> 1 parse-status)).

I'm not talking about the current code, but about the behavior we should
strive for.

> Fixing that might require a rewrite on top of e.g. SMIE. Although that might
> be the point you're making.

Kind of: I haven't actually looked at the code, so I have no idea how
easy/hard it would be to make it behave like we want (and AFAIK, using
SMIE for C-style syntaxes is still an open problem, the first hurdle
being the choice of using either "{...}" or "...;" for the branches of
"if").


        Stefan





      reply	other threads:[~2015-06-30 14:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 11:46 bug#20915: 25.0.50; [js-mode] electric annoyances Rasmus
2015-06-28 14:41 ` Eli Zaretskii
2015-06-28 14:50   ` Rasmus
2015-06-28 14:56     ` Eli Zaretskii
2015-06-28 17:50   ` Dmitry Gutov
2015-06-28 17:59     ` Eli Zaretskii
2015-06-28 18:12       ` Dmitry Gutov
2015-06-28 18:24         ` Eli Zaretskii
2015-06-28 18:54           ` Dmitry Gutov
2015-06-28 20:16             ` Eli Zaretskii
2015-06-29  1:12 ` Stefan Monnier
2015-06-29  1:26   ` Rasmus
2015-06-29  8:49     ` Dmitry Gutov
2015-06-29 11:02       ` Rasmus
2015-06-29  8:33   ` Dmitry Gutov
2015-06-29 13:18     ` Stefan Monnier
2015-06-29 14:05       ` Dmitry Gutov
2015-06-30 14:07         ` Stefan Monnier [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvioa5pa0r.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=20915@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=rasmus@gmx.us \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.