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: Adding a default binding to a keymap Date: Sat, 30 Jul 2005 11:55:50 +0200 Message-ID: <42EB4EA6.7020703@student.lu.se> 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 1122717850 12022 80.91.229.2 (30 Jul 2005 10:04:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2005 10:04:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 30 12:04:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyoCH-0001Hv-TH for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2005 12:04:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyoEp-0005dT-82 for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2005 06:06:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DyoBF-00056c-UD for emacs-devel@gnu.org; Sat, 30 Jul 2005 06:02:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DyoBC-00055U-F3 for emacs-devel@gnu.org; Sat, 30 Jul 2005 06:02:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyoBA-00051I-Fy for emacs-devel@gnu.org; Sat, 30 Jul 2005 06:02:52 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DyoG1-0005uT-D8 for emacs-devel@gnu.org; Sat, 30 Jul 2005 06:07:53 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E29005EDA3D for emacs-devel@gnu.org; Sat, 30 Jul 2005 11:55:50 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Emacs Devel 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:41333 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41333 You can add a default binding to a keymap if you know the structure for a keymap. For example to add 'ignore you can do something like this: (setcdr (cdr my-keymap) (cons (cons t 'ignore ) (cdr (cdr my-keymap)) )) However it does not feel quite right. Is there another way to do this?