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: Mode for files visited by GUD Date: Thu, 17 Jul 2008 12:13:34 +1200 Message-ID: <18558.36526.630474.990664@kahikatea.snap.net.nz> References: <200807170135.53892.juanma_bellon@yahoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216253658 19821 80.91.229.12 (17 Jul 2008 00:14:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 00:14:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Juanma Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 17 02:15: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 1KJH97-0004YD-Bl for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2008 02:14:57 +0200 Original-Received: from localhost ([127.0.0.1]:47644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJH8E-0002Tl-HN for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 20:14:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJH7t-0002TH-Bf for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 20:13:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJH7r-0002R1-5i for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 20:13:40 -0400 Original-Received: from [199.232.76.173] (port=58857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJH7q-0002Qv-V9 for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 20:13:38 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:59188) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJH7q-00046t-G6 for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 20:13:38 -0400 Original-Received: from kahikatea.snap.net.nz (251.60.255.123.dynamic.snap.net.nz [123.255.60.251]) by viper.snap.net.nz (Postfix) with ESMTP id D1ED23DA57D; Thu, 17 Jul 2008 12:13:36 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 673CE8FC6D; Thu, 17 Jul 2008 12:13:35 +1200 (NZST) In-Reply-To: <200807170135.53892.juanma_bellon@yahoo.es> X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: 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:55667 Archived-At: > Is there any mode (and it's hook) run when GUD visits a source code file > during debugging? gdb-find-file-hook is run when GUD visits a source code file. You could advise that function or create your own hook using find-file-hook (see the Elisp manual). > I have found a gud-minor-mode variable, but it's not documented. Anyway, > quickly peeping into the source, it doesn't seem like that minor mode would > serve my purpose. Not all variables are documented, particularly those for internal use. gud-minor-mode is probably such a variable. > Actually, many functions and variables are not documented. I'm not helping, > so I'm not complaining. I'm just curious, because I find it odd for a mature > package (GUD has gone along with Emacs since a very long time ago, right?) > to have many things left undocumented. Documentation is provided at the user level in the Emacs and Elisp manuals and through the documentaion strings. And there are comments in the source code to help developers. It's a question of balancing convenience with overhead. Also comment/doc strings can get out of date and sometimes it's better to let the code speak for itself. > BTW, is Emacs' CVS repository, under emacs/lisp/progmodes, the right place to > find the latest version? Yes, but to ensure it always works, you really need to check out all of Emacs from the repository, and then you can update when fixes are made. -- Nick http://www.inet.net.nz/~nickrob