all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jpkotta <jpkotta@gmail.com>
To: gnu.emacs.help@googlegroups.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: undoing define-key
Date: Wed, 19 Dec 2012 08:05:53 -0800 (PST)	[thread overview]
Message-ID: <ea9e4b44-9dde-4ca6-baf7-10b1a44083ea@googlegroups.com> (raw)
In-Reply-To: <mailman.15643.1355877970.855.help-gnu-emacs@gnu.org>

On Tuesday, December 18, 2012 6:45:49 PM UTC-6, Stefan Monnier wrote:
> > ;; Now M-[ijkl] act like the arrow keys
> 
> > ;; I can do an isearch and they will exit the search just like the arrows
> 
> 
> 
> > (define-key isearch-mode-map (kbd "M-j") nil)
> 
> 
> 
> > ;; Now M-j does not exit isearch, and it behaves like whatever it was
> 
> > ;; bound to outside of foo-mode.  M-j still does left-char outside of
> 
> > ;; isearch-mode.
> 
> 
> 
> And what behavior would you want instead?
> 
> 
> 
> 
> 
>         Stefan

I wanted to reclaim some keys that were set in isearch-mode-map, and I wanted to do it by making sure they were undefined, so that another keymap would override them.  To be clear, these keys were bound by a 3rd party library, not by default.

It appears to be something special in isearch-mode.  I thought M-[ijkl] were unbound, but they're actually bound to isearch-other-meta-char.  If I bind to that, then everything works as intended.



      parent reply	other threads:[~2012-12-19 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 17:46 undoing define-key jpkotta
2012-12-19  0:45 ` Stefan Monnier
     [not found] ` <mailman.15643.1355877970.855.help-gnu-emacs@gnu.org>
2012-12-19 16:05   ` jpkotta [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=ea9e4b44-9dde-4ca6-baf7-10b1a44083ea@googlegroups.com \
    --to=jpkotta@gmail.com \
    --cc=gnu.emacs.help@googlegroups.com \
    --cc=help-gnu-emacs@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.