From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Sparse key maps garbage? Date: Sun, 31 Aug 2008 22:09:54 +0200 Message-ID: <48BAFA92.5040201@gmail.com> References: <48B9DB4A.5010203@gmail.com> <48BA8BE1.7010006@gmail.com> <48BA9700.9080401@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220213422 20873 80.91.229.12 (31 Aug 2008 20:10:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Aug 2008 20:10:22 +0000 (UTC) Cc: Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 31 22:11:16 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZtGV-00048z-Sa for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 22:11:16 +0200 Original-Received: from localhost ([127.0.0.1]:36137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZtFX-0006Sx-2Y for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 16:10:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZtFP-0006SM-Ti for emacs-devel@gnu.org; Sun, 31 Aug 2008 16:10:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZtFO-0006Rw-3B for emacs-devel@gnu.org; Sun, 31 Aug 2008 16:10:07 -0400 Original-Received: from [199.232.76.173] (port=49292 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZtFN-0006Rt-Qo for emacs-devel@gnu.org; Sun, 31 Aug 2008 16:10:05 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:49265) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZtFN-0006wW-E8 for emacs-devel@gnu.org; Sun, 31 Aug 2008 16:10:05 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:61855 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KZtFK-00049x-7d; Sun, 31 Aug 2008 22:10:02 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080831-0, 2008-08-31), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KZtFK-00049x-7d. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KZtFK-00049x-7d 5935f5c86daa389c7d979c354f856a7c X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:103335 Archived-At: Stefan Monnier wrote: >>> Depends how you define "un define a key". Binding it to nil is such >>> a way. Binding it to `undefined' is another. Removing the binding from >>> the keymap is yet another (one that does not come with a ready-to-use >>> function for it). > >> I am thinking of the last case. Shouldn't there be one for this case? >> Using exactly the same parameters as define-key (minus the binding)? > > What do you need it for? I have no need for it now. It just came to my mind because Xah asked how to undow a (define-key map [remap ...] ...) binding. You can do that of course, but having an undefine-key make the data abstraction (is it called so?) better.