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:30:40 +1200 Message-ID: <18121.9984.666964.732529@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 1187587893 29431 80.91.229.12 (20 Aug 2007 05:31:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2007 05:31:33 +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:31:28 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 1IMzrM-0006hQ-Jl for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2007 07:31:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMzrM-00019C-GC for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2007 01:31:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IMzqx-00018z-CN for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:31:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IMzqw-00018j-2P for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:31:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMzqv-00018g-So for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:31:01 -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 1IMzqv-0004Vp-DN for help-gnu-emacs@gnu.org; Mon, 20 Aug 2007 01:31:01 -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 C61313DAB9D; Mon, 20 Aug 2007 17:30:43 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id E306D8FC6D; Mon, 20 Aug 2007 17:30:41 +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:46693 Archived-At: Rafal Kurcz writes: > Hello > 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 This is the right place for it. What do you mean by "it did not not work"? This definition (which looks like it's taken from Emacs 22.1 - why not just use that version as it's current?) doesn't provide a keybinding. With Emacs 21.4, you need to do M-x gud-run. With 22.1 there's a tool bar icon you can click on or you can use the menu-bar. -- Nick http://www.inet.net.nz/~nickrob