From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Newsgroups: gmane.emacs.help Subject: Re: Key binding in local keymap problem Date: Tue, 9 Sep 2008 23:02:44 +0200 Message-ID: <200809092302.44216.juanma_bellon@yahoo.es> References: <0811e68c-504a-4a57-971c-7681d433528b@x35g2000hsb.googlegroups.com> <000701c912bc$f033ad80$0200a8c0@us.oracle.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 1220995806 31560 80.91.229.12 (9 Sep 2008 21:30:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2008 21:30:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 23:31:00 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdAna-0008N0-Kh for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2008 23:30:59 +0200 Original-Received: from localhost ([127.0.0.1]:54132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdAmZ-0006RH-NJ for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2008 17:29:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdAmE-0006Qn-UC for help-gnu-emacs@gnu.org; Tue, 09 Sep 2008 17:29:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdAm9-0006OC-Pv for help-gnu-emacs@gnu.org; Tue, 09 Sep 2008 17:29:34 -0400 Original-Received: from [199.232.76.173] (port=47832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdAm9-0006O1-Lj for help-gnu-emacs@gnu.org; Tue, 09 Sep 2008 17:29:29 -0400 Original-Received: from n59.bullet.mail.sp1.yahoo.com ([98.136.44.43]:24682) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KdAm8-0001TM-Tw for help-gnu-emacs@gnu.org; Tue, 09 Sep 2008 17:29:29 -0400 Original-Received: from [216.252.122.216] by n59.bullet.mail.sp1.yahoo.com with NNFMP; 09 Sep 2008 21:29:24 -0000 Original-Received: from [68.142.237.89] by t1.bullet.sp1.yahoo.com with NNFMP; 09 Sep 2008 21:29:24 -0000 Original-Received: from [66.196.97.134] by t5.bullet.re3.yahoo.com with NNFMP; 09 Sep 2008 21:29:24 -0000 Original-Received: from [127.0.0.1] by omp107.mail.re3.yahoo.com with NNFMP; 09 Sep 2008 21:29:24 -0000 X-Yahoo-Newman-Id: 454941.76308.bm@omp107.mail.re3.yahoo.com Original-Received: (qmail 99028 invoked from network); 9 Sep 2008 21:02:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=BaLVQnn7dOERJzH1oeZH9/B79bEcRO9r2Y8wNIH9J6MjoO+ZCjPbYUbzOSSjJ9rtNIQ92qe1+NW3vYnsc8YbIP81YKLJr+ZxDNPmadrzqHK1fFPGf/tLyw2785HvWffEjEegkxh/VfR4zTz5xSUERFI11qAGdYjXCeikrYBkAL4= ; Original-Received: from unknown (HELO 084202170075.customer.alfanett.no) (juanma_bellon@84.202.170.75 with plain) by smtp114.plus.mail.re1.yahoo.com with SMTP; 9 Sep 2008 21:02:42 -0000 X-YMail-OSG: 3gOdqLAVM1kFgaJuM2GwPPUAn8r4xT6FkIl60drjc4JUhisAr8mR.St5dolHffDDQEQgAAp0bMDGoqxLD3bx6msmML0VzTNd8yQW9x_SGnBiZiAjTOC9Vk2WiIM.DdtwWwM- X-Yahoo-Newman-Property: ymail-3 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) In-Reply-To: <000701c912bc$f033ad80$0200a8c0@us.oracle.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57370 Archived-At: On Tuesday 09 September 2008, Drew Adams wrote: > > I have the following line in my .emacs: > > (define-key gud-mode-map [f9] 'gud-break) > > and I get an error that the value of gud-mode-map is void. > > You need to load library `gud' before you do that. > It defines variable `gud-mode-map' and gives it a value. So, if you don't want to load `gud' on Emacs start-up, use `add-hook': (add-hook 'gud-mode-hook (lambda () (define-key gud-mode-map [f9] 'gud-break))) -- Juanma "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr