unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: FW: why are M-( and M-) bound in esc-map?
Date: Sun, 30 Mar 2008 11:17:59 -0700	[thread overview]
Message-ID: <000901c89292$6286a190$0200a8c0@us.oracle.com> (raw)

Resending -

----
From: Drew Adams Sent: Friday, March 21, 2008 3:04 PM
I was surprised to find by accident that M-( and M-) are bound in `esc-map',
which means they are in effect pretty much everywhere, including the minibuffer.

Is this a good idea? Shouldn't `insert-parentheses' and
`move-past-close-and-reindent' be bound only for programming modes for which
they actually make sense?  It can be surprising to get an error "Unbalanced
parentheses" 18, 5795" or some such if you accidentally hit M-) in the
minibuffer or a text file.

This seems like a bug to me, but it is apparently of long date.

Now, someone will surely reply that these can be useful in text mode too, for
parenthetical remarks. Maybe. Does anyone really write that way?

I'm thinking that a scan-error such as "Containing expression ends prematurely"
or "Unbalanced parentheses" will be more trouble to many users than this feature
is worth, except in programming buffers. This is the kind of thing that can
frighten users unnecessarily.








                 reply	other threads:[~2008-03-30 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000901c89292$6286a190$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.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 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).