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: Mode for files visited by GUD Date: Fri, 18 Jul 2008 02:21:01 +0200 Message-ID: <200807180221.01749.juanma_bellon@yahoo.es> References: <200807170135.53892.juanma_bellon@yahoo.es> <18558.36526.630474.990664@kahikatea.snap.net.nz> <200807180154.59785.juanma_bellon@yahoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216340499 26892 80.91.229.12 (18 Jul 2008 00:21:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2008 00:21:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Nick Roberts Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 18 02:22:27 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 1KJdju-0005gI-ET for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2008 02:22:26 +0200 Original-Received: from localhost ([127.0.0.1]:37254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJdj0-0000mU-MM for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2008 20:21:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJdig-0000lk-HR for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 20:21:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJdid-0000kR-Nv for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 20:21:09 -0400 Original-Received: from [199.232.76.173] (port=46427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJdid-0000kO-IS for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 20:21:07 -0400 Original-Received: from n2.bullet.mail.re3.yahoo.com ([68.142.237.109]:33818) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KJdid-0003ZK-Ap for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 20:21:07 -0400 Original-Received: from [68.142.237.90] by n2.bullet.mail.re3.yahoo.com with NNFMP; 18 Jul 2008 00:21:02 -0000 Original-Received: from [66.196.97.135] by t6.bullet.re3.yahoo.com with NNFMP; 18 Jul 2008 00:21:02 -0000 Original-Received: from [127.0.0.1] by omp108.mail.re3.yahoo.com with NNFMP; 18 Jul 2008 00:21:02 -0000 X-Yahoo-Newman-Id: 859255.14869.bm@omp108.mail.re3.yahoo.com Original-Received: (qmail 57659 invoked from network); 18 Jul 2008 00:21:02 -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:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=oTJSZaTLno0lRSgsupRlxkogH+IXmfNLAGA088gCg4tKtjvObaU8OVzqWm66y6t6S5iCaVHgVYlB59qVe+4nn7Aw0A6oxX1/CUlPhPalzwI2f/IFh/x9wTt01uO2HycgguvNwCWMpXHW0jNEYjKywdDQRjOcwdPLe1UgIKcPc84= ; Original-Received: from unknown (HELO 212251168194.customer.cdi.no) (juanma_bellon@212.251.168.194 with plain) by smtp112.plus.mail.re1.yahoo.com with SMTP; 18 Jul 2008 00:21:02 -0000 X-YMail-OSG: Wm6CvsgVM1n1Ry0lc4f_zYV7ZZUvCxTVaOv6tpSd0r.AQJ7EwIrnfbEePnWKifWwIXd5iSwhJY8xDxusKkGPDOLemCw_CcOzADPc84SCBJjJC70Ix4lOVaZ2NKgyx6Mqpy4- X-Yahoo-Newman-Property: ymail-3 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) In-Reply-To: <200807180154.59785.juanma_bellon@yahoo.es> 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:55683 Archived-At: > > gdb-find-file-hook is run when GUD visits a source code file. =A0You co= uld > > advise that function >=20 > Great, it worked. No, wait. Now find-file-hook contains gdb-find-file-hook, so Emacs is running my gdb-specific minor mode for every file "found" into Emacs. This is what I did: =2D--------------------------------------- (defun activate-my-guding-mode () (source-guding-mode 1) (message "*GUDing* mode activated")) =20 (defadvice gdb-find-file-hook (after activate-guding activate) (activate-my-guding-mode)) =2D--------------------------------------- Did I do something wrong? =2D-=20 Juanma "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr