From: Lennart Borgman <lennart.borgman@gmail.com>
To: Daniel Colascione <dan.colascione@gmail.com>
Cc: Chong Yidong <cyd@stupidchicken.com>,
5586@debbugs.gnu.org, Paul Pogonyshev <pogonyshev@gmx.net>
Subject: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode)
Date: Mon, 29 Mar 2010 00:37:24 +0200 [thread overview]
Message-ID: <e01d8a51003281537o6777dc25k3f49c7ac4dc0235@mail.gmail.com> (raw)
In-Reply-To: <4BAFC309.70701@gmail.com>
On Sun, Mar 28, 2010 at 10:58 PM, Daniel Colascione
<dan.colascione@gmail.com> wrote:
>
> The chief difficulty I see is that in some modes, indentation isn't
> idempotent: if you ran indent-line-function from some generic electric
> code, it might change the indentation of the current line in unwanted
> ways. (Imagine python-mode, where indent-line-function cycles through
> feasible indentation levels for a given line.)
>
> At best, modes would have to opt-in, and if each mode needs some glue
> anyway, why not just let each mode handle electric characters itself?
Because without something like indent-line-function you can not handle
it in a more generic way.
The absense of this in some major modes has for example costed me a
lot of burden in mumamo (the framework in nXhtml for mult major modes
in a buffer). Actually indent-line-function is not generic enough. One
more level is needed: one that computes the desirable indentation.
next prev parent reply other threads:[~2010-03-28 22:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-16 22:31 bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) Paul Pogonyshev
2010-03-26 5:03 ` Daniel Colascione
2010-03-28 20:46 ` Chong Yidong
2010-03-28 20:58 ` Daniel Colascione
2010-03-28 22:37 ` Lennart Borgman [this message]
2010-03-29 1:49 ` Stefan Monnier
2010-03-28 20:59 ` Daniel Colascione
2010-03-29 1:47 ` Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode)) Stefan Monnier
2017-08-07 0:25 ` bug#5586: is this bug still valid? Tom Tromey
2022-01-31 17:08 ` bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) Lars Ingebrigtsen
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=e01d8a51003281537o6777dc25k3f49c7ac4dc0235@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=5586@debbugs.gnu.org \
--cc=cyd@stupidchicken.com \
--cc=dan.colascione@gmail.com \
--cc=pogonyshev@gmx.net \
/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.