unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Howard Yeh!" <hayeah@gmail.com>
Subject: Re: Meta-key Madness (argh!!)
Date: 2 Dec 2006 13:24:46 -0800	[thread overview]
Message-ID: <1165094686.484095.313400@79g2000cws.googlegroups.com> (raw)
In-Reply-To: <85fyc1bden.fsf@lola.goethe.zz>


David Kastrup wrote:
> "Howard Yeh!" <hayeah@gmail.com> writes:
>
> > I can't figure out how to bind "C-["
> >
> > For some reason
> >
> > (global-set-key "\C-[" 'insert-parentheses)
> >
> > unbinds all my meta keys, and pressing "C-[" gives me the ESC key. What
> > gives?
>
> That's how things are on text terminals.  On graphical terminals,
> (local-set-key [C-\[] 'insert-parentheses)
> could conceivably make a difference, but apparently it doesn't.

You mean emacs still can't tell when used under a graphical terminal?

> > I also has trouble binding c-i, m-i, because they are synonyms for
> > <TAB>. Though I have really ugly work around for them. Is there any
> > established way to deal with this sort of problems?
>
> Accept that ESC is the same as C-[.

I remapped c-i to c-> in emacs, and bind the function i want to c->. So
emacs *can* tell apart c-i and <tab>. But simply binding to c-i doesn't
work as advertised.

Strangely, it works to bind C-[ in my lisp-mode.

I am anal retentive about my key bindings...  This is not the first
time I've struggled with bindings to control key synonyms.

I absolutely need C-i because I bind my arrow keys to C-i,j,k,l.
This is so my hand doesn't have to move as much. The default
emacs bindings are not very ergonomic.

  reply	other threads:[~2006-12-02 21:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30  6:12 Meta-key Madness (argh!!) Howard Yeh!
2006-11-30  7:25 ` Eric Hanchrow
2006-11-30  7:29 ` David Kastrup
2006-12-02 21:24   ` Howard Yeh! [this message]
     [not found] ` <mailman.1344.1164872317.2155.help-gnu-emacs@gnu.org>
2006-12-02 21:15   ` Howard Yeh!
2006-12-02 21:26 ` Howard Yeh!
2006-12-02 22:12   ` David Kastrup
2006-12-03  3:06     ` Howard Yeh!
2006-12-04 15:06   ` Johan Bockgård

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=1165094686.484095.313400@79g2000cws.googlegroups.com \
    --to=hayeah@gmail.com \
    /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.
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).