all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Yevgeniy Makarov" <emakarov@gmail.com>
Subject: Re: Making ESC not a prefix key while keeping Alt = Meta
Date: 11 Sep 2006 19:36:30 -0700	[thread overview]
Message-ID: <1158028590.059775.95820@h48g2000cwc.googlegroups.com> (raw)
In-Reply-To: mailman.6777.1157988085.9609.help-gnu-emacs@gnu.org

> Apparently some modes bind ESC locally e.g. lisp-interaction-mode
> (*scratch) and help-mode (*Help*).  So you'd need to put
> (local-unset-key "\e") in each such mode's hook.

You are right. The local keymap for *scratch* buffer defined ESC. After
I unset it, I ran

(key-binding "\e")

and the answer was nil.

After that, I entered

> (let ((input-mode (current-input-mode)))
>    (setcar (nthcdr 3 input-mode) ?\e)	; QUIT = ESC
>    (set-input-mode input-mode))

replacing (set-input-mode input-mode) with (apply 'set-input-mode
input-mode), but pressing ESC when the minibuffer is active (e.g.,
during entering a filename) still has no effect. After I said

(global-set-key "\e" 'keyboard-quit)

pressing ESC in the scratch buffer causes the word "Quit" to appear in
the minibuffer, but pressing ESC in the minibuffer still has no effect.

Yevgeniy

      parent reply	other threads:[~2006-09-12  2:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08 20:49 Making ESC not a prefix key while keeping Alt = Meta Yevgeniy Makarov
2006-09-09 14:49 ` Kevin Rodgers
     [not found] ` <mailman.6687.1157813407.9609.help-gnu-emacs@gnu.org>
2006-09-10  1:24   ` Yevgeniy Makarov
2006-09-11 15:20     ` Kevin Rodgers
     [not found]     ` <mailman.6777.1157988085.9609.help-gnu-emacs@gnu.org>
2006-09-12  2:36       ` Yevgeniy Makarov [this message]

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=1158028590.059775.95820@h48g2000cwc.googlegroups.com \
    --to=emakarov@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.
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.