From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpkotta Newsgroups: gmane.emacs.help Subject: Re: undoing define-key Date: Wed, 19 Dec 2012 08:05:53 -0800 (PST) Message-ID: References: <6461229b-84bb-4d42-a075-5ab5ffe11e4a@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1355933174 24041 80.91.229.3 (19 Dec 2012 16:06:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 16:06:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 17:06:29 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TlMA7-0004z8-Vn for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 17:06:28 +0100 Original-Received: from localhost ([::1]:53073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlM9u-0007JJ-CQ for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 11:06:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlM9i-0007FZ-Tw for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:06:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlM9c-0001Vv-57 for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:06:02 -0500 Original-Received: from mail-da0-f61.google.com ([209.85.210.61]:43153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlM9b-0001Vq-Ue for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:05:56 -0500 Original-Received: by mail-da0-f61.google.com with SMTP id z8so1247988dad.6 for ; Wed, 19 Dec 2012 08:05:54 -0800 (PST) Original-Received: by 10.50.47.228 with SMTP id g4mr557474ign.12.1355933154344; Wed, 19 Dec 2012 08:05:54 -0800 (PST) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.97.12.233; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE Original-NNTP-Posting-Host: 70.97.12.233 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 70.97.12.233 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88220 Archived-At: 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.