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: Best practice for overriding keybinding of a minor mode? Date: Thu, 1 Oct 2009 08:45:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: <158114b4-d8c9-4258-a2a9-5ed6dcd62624@v25g2000yqk.googlegroups.com> References: <87bpkz78xs.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254418019 20389 80.91.229.12 (1 Oct 2009 17:26:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 17:26:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 19:26:52 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MtPQS-00018q-6A for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2009 19:26:44 +0200 Original-Received: from localhost ([127.0.0.1]:50256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtPQP-0007cD-EM for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2009 13:26:41 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!v25g2000yqk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 64.122.73.112 Original-X-Trace: posting.google.com 1254411951 27146 127.0.0.1 (1 Oct 2009 15:45:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 1 Oct 2009 15:45:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v25g2000yqk.googlegroups.com; posting-host=64.122.73.112; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173491 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68605 Archived-At: On Sep 30, 4:42=A0pm, Andreas Politz wrote: > jpkotta writes: > > On Sep 28, 4:54=A0pm, Samuel Wales wrote: > >> local-unset-key > > >> -- > >> Myalgic encephalomyelitis causes death (Jason et al. 2006) > >> and severe suffering. =A0Conflicts of interest are destroying > >> research. =A0What people "know" is wrong. =A0Silence =3D death.http://= www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm > [...] > > After reading the manual, it seems like there is > > no way to recover a remapped command. =A0Is this true or am I > > overlooking something? =A0Is ido being heavy-handed here, and should no= t > > be using remap? > > (define-key keymap [remap command-name] nil) > > or > > (define-key keymap [remap command-name] command-name) > > Both seem to do the trick. > Thanks, I needed to remap to nil _and_ redefine the key.