From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: how to use "gud-def" Date: Mon, 20 Aug 2007 17:42:12 +1200 Message-ID: <18121.10676.492278.702997@kahikatea.snap.net.nz> References: <1187518560.873186.280250@o80g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187588561 30704 80.91.229.12 (20 Aug 2007 05:42:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2007 05:42:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rafal Kurcz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 20 07:42:40 2007 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 1IN02B-0000a5-KE for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2007 07:42:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IN02B-0005Id-HJ for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2007 01:42:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IN01r-0005EF-QJ for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:42:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IN01q-0005Bw-Uk for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:42:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IN01q-0005Bl-Kj for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:42:18 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IN01q-0006Dn-B2 for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:42:18 -0400 Original-Received: from kahikatea.snap.net.nz (80.41.255.123.static.snap.net.nz [123.255.41.80]) by viper.snap.net.nz (Postfix) with ESMTP id 26D2C3DAA2D; Mon, 20 Aug 2007 17:42:15 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 7E8D88FC6D; Mon, 20 Aug 2007 17:42:13 +1200 (NZST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1187518560.873186.280250@o80g2000hse.googlegroups.com> X-Mailer: VM 7.19 under Emacs 22.1.50.11 X-Detected-Kernel: Linux 2.4-2.6 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:46694 Archived-At: > I found in "GUD Customization" section the description of "gud-def". > In fact I don't know where to place those definitions. > > I tried to specify the example definition: > (gud-def gud-run "run" nil "Run the program.") > > in ~/.emacs config file - it did not not work On further reflection, perhaps you didn't do: (add-hook 'gdb-mode-hook '(lambda () (gud-def gud-run "run" nil "Run the program."))) -- Nick http://www.inet.net.nz/~nickrob