From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Function for deleting a key binding in a sparse keymap Date: Tue, 06 Dec 2005 16:26:49 -0500 Message-ID: References: <439382B9.7020802@student.lu.se> <439470ED.9010809@student.lu.se> <4395C4BA.4070707@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133905428 29548 80.91.229.2 (6 Dec 2005 21:43:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2005 21:43:48 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 06 22:43:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjkYh-0004h3-FC for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 22:41:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjkYt-00085t-WF for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 16:41:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjkNk-0001ik-Qq for emacs-devel@gnu.org; Tue, 06 Dec 2005 16:29:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjkML-0000YD-8k for emacs-devel@gnu.org; Tue, 06 Dec 2005 16:28:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjkLI-00084o-7M for emacs-devel@gnu.org; Tue, 06 Dec 2005 16:27:20 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjkLw-0006oo-KQ; Tue, 06 Dec 2005 16:28:00 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 2938B2CF6D7; Tue, 6 Dec 2005 16:26:54 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 191424AC00A; Tue, 6 Dec 2005 16:26:49 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 16356F69C4; Tue, 6 Dec 2005 16:26:49 -0500 (EST) Original-To: Lennart Borgman In-Reply-To: <4395C4BA.4070707@student.lu.se> (Lennart Borgman's message of "Tue, 06 Dec 2005 18:04:58 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.852, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:47074 Archived-At: >> >This function makes sense; I see how it could be used. Do we really >> >need it now? >> I just wanted to use it ;-) >> Why did you want to use it? > When starting a minor mode I read some key definitions outside that mode. If > they have a certain value I define new values for those keys in that > minor mode. > The next time I enter that minor mode the key definitions outside may > however be different so I want to remove the key bindings I added when > exiting the minor mode. Why not set them to nil? Stefan