From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Function for deleting a key binding in a sparse keymap Date: Wed, 07 Dec 2005 10:56:39 +0100 Message-ID: <4396B1D7.8010307@student.lu.se> References: <439382B9.7020802@student.lu.se> <439470ED.9010809@student.lu.se> <4395C4BA.4070707@student.lu.se> <43960E3F.1060105@student.lu.se> <4396184A.60606@student.lu.se> <87pso97k0r.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133961157 13763 80.91.229.2 (7 Dec 2005 13:12:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 13:12:37 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 14:12:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ejz4O-00081m-EY for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 14:10:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ejz2U-0006Rs-O1 for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 08:08:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjwDQ-0005ZG-E9 for emacs-devel@gnu.org; Wed, 07 Dec 2005 05:08:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjwDM-0005YH-O4 for emacs-devel@gnu.org; Wed, 07 Dec 2005 05:07:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ejw2n-0004Zf-EO for emacs-devel@gnu.org; Wed, 07 Dec 2005 04:57:03 -0500 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ejw3b-0005Fk-B0; Wed, 07 Dec 2005 04:57:51 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 4394B8720006FC66; Wed, 7 Dec 2005 10:56:40 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: <87pso97k0r.fsf-monnier+emacs@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47106 Archived-At: Stefan Monnier wrote: >>I set the "help keys" to nil so that the help is still available during >>resizing. Those are the keys I want to remove afterwards. The default value >>in the sparse keymap bw-keymap is: >> >> > > > >> (define-key bw-keymap [t] 'bw-exit-resize-mode) >> >> > >I see. Coming from a functional programming background, I'd use anoter >approach based on the idea of reusing the original value rather than using >side-effects to try and coerce it back to the same shape it had originally: > > Thanks for the idea. That seems much more easy.