From: "Drew Adams" <drew.adams@oracle.com>
To: "'Carsten Bormann'" <cabo@tzi.org>,
"'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 14000@debbugs.gnu.org
Subject: bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nestedparentheses
Date: Tue, 26 Mar 2013 06:18:43 -0700 [thread overview]
Message-ID: <C26D78E18B8543D092D51F89A2A67E51@us.oracle.com> (raw)
In-Reply-To: <EF5CEB5C-B604-487F-B776-2D2386C9042C@tzi.org>
> But if you live in a world of paired parentheses (and I
> thought Emacs-Lispers were!)
Mostly, yes.
> you want to add them in pairs, always.
No, not at all. Some people do, but my guess would be that they are a minority.
Probably most if not all who live in a world of paired parens have tried
behavior such as electric pairing, but I'd guess that relatively few who tried
it have stayed with it.
Perhaps it's a bit like the use of the so-called "structured" editors that were
pushed by some in the 1980s: they pretty much forced you to only perform actions
that kept things well-formed, always - like filling out forms.
Real users hated them, for the most part. What they wanted was instead the
typical best-of-both-worlds behavior that Emacs offered: you can do anything at
all, but you can also easily ask the editor to check text for well-formedness
etc. IOW, check on-demand, not preformed or forced form.
Not that electric pairing prevents you from deleting parens, so they are no
longer necessarily paired (that would really be like those structured editors),
but the analogy is not too off-base.
Personally, I use `show-paren-mode' (and `blink-matching-paren'). But I don't
program in C etc., and I suppose that the language used might make some
difference wrt preference.
Wrt right parens, some Lisp dialects (e.g. Franz Lisp) have allowed you to use
`]' to act as a sufficient number of `)' to reach an even number (balance). For
quick interactive evaluation it could sometimes be handy.
E.g. (setq foo '((a) (((b (c d].
next prev parent reply other threads:[~2013-03-26 13:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 17:59 bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses Carsten Bormann
2013-03-26 2:41 ` Stefan Monnier
2013-03-26 7:27 ` Carsten Bormann
2013-03-26 13:18 ` Drew Adams [this message]
2013-03-26 13:32 ` bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nestedparentheses Carsten Bormann
2013-03-26 14:20 ` Drew Adams
2013-03-26 16:48 ` bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses Stefan Monnier
2013-04-01 13:28 ` Stefan Monnier
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=C26D78E18B8543D092D51F89A2A67E51@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=14000@debbugs.gnu.org \
--cc=cabo@tzi.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).