From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode))
Date: Sun, 28 Mar 2010 21:47:07 -0400 [thread overview]
Message-ID: <jwv39zjkj2l.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87aatsuqbu.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 28 Mar 2010 16:46:45 -0400")
> I am still not happy about the way it's implemented in either mode---I
> think Emacs needs some kind of centralized mechanism for this---but that
> is a longer-term project.
Agreed. If someone could try to survey the different kinds of
"electricity" we have in Emacs packages, and the different ways they can
be configured, it would be a good first step.
Obvious one kind of electricity is when some keys (like ; } and such)
cause reindentation of the current line additionally to self-insert.
Other forms I would consider as potentially connected include:
- SPC in auto-fill-mode
- inserting () when you press just (
- do abbrev expansion when you hit SPC
- newline-and-indent as an electric form of newline
- insert `` or " or '' when you press " in LaTeX
Stefan
next prev parent reply other threads:[~2010-03-29 1:47 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
2010-03-29 1:49 ` Stefan Monnier
2010-03-28 20:59 ` Daniel Colascione
2010-03-29 1:47 ` Stefan Monnier [this message]
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=jwv39zjkj2l.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/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.