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 17:28:58 -0500 Message-ID: References: <439382B9.7020802@student.lu.se> <439470ED.9010809@student.lu.se> <4395C4BA.4070707@student.lu.se> <43960E3F.1060105@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 1133909906 12506 80.91.229.2 (6 Dec 2005 22:58:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2005 22:58:26 +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 23:58:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjljJ-0005QE-Hc for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 23:56:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjlhM-0000Ia-KJ for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 17:54:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjlKM-0000Ri-Ik for emacs-devel@gnu.org; Tue, 06 Dec 2005 17:30:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjlKL-0000P0-Es for emacs-devel@gnu.org; Tue, 06 Dec 2005 17:30:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjlJN-0007E9-JL for emacs-devel@gnu.org; Tue, 06 Dec 2005 17:29:25 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjlK6-00053r-2r; Tue, 06 Dec 2005 17:30:10 -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 E60F12CF703; Tue, 6 Dec 2005 17:29:09 -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 7D44D4AC010; Tue, 6 Dec 2005 17:28:58 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 67C84F69C4; Tue, 6 Dec 2005 17:28:58 -0500 (EST) Original-To: Lennart Borgman In-Reply-To: <43960E3F.1060105@student.lu.se> (Lennart Borgman's message of "Tue, 06 Dec 2005 23:18:39 +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.853, 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:47080 Archived-At: >>> 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? > They should have the default value in those cases. A workaround is of > course to set them to the default value. What default value? Please, make your concrete example concrete. Stefan