From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] find-file-noselect-1 Date: Fri, 11 Feb 2005 23:44:14 +1300 Message-ID: <16908.35966.590611.394858@farnswood.snap.net.nz> References: <16907.50624.707323.36975@farnswood.snap.net.nz> <87oeeru6nw.fsf-monnier+emacs@gnu.org> <16908.26618.789580.363225@farnswood.snap.net.nz> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108123083 6650 80.91.229.6 (11 Feb 2005 11:58:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2005 11:58:03 +0000 (UTC) Cc: snogglethorpe@gmail.com, emacs-devel@gnu.org, Stefan Monnier , miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 12:57:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CzZQn-0008Nc-00 for ; Fri, 11 Feb 2005 12:57:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzZfh-00058y-Sk for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2005 07:13:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzYzA-0000t2-7H for emacs-devel@gnu.org; Fri, 11 Feb 2005 06:29:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzYz1-0000rP-IF for emacs-devel@gnu.org; Fri, 11 Feb 2005 06:29:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzYyb-0000dA-FT for emacs-devel@gnu.org; Fri, 11 Feb 2005 06:28:45 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CzYNe-00045l-9L; Fri, 11 Feb 2005 05:50:34 -0500 Original-Received: from farnswood.snap.net.nz (p116-tnt1.snap.net.nz [202.124.110.116]) by viper.snap.net.nz (Postfix) with ESMTP id A27163790D4; Fri, 11 Feb 2005 23:50:32 +1300 (NZDT) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 54762628AB; Fri, 11 Feb 2005 10:44:14 +0000 (GMT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:33250 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33250 > But what if I have N files opened already and then load/start gdb -- > are those files already opened "gdb enabled" using Nick's method? They aren't in the patch I presented but it would be quite easy to adapt the hook to do that. It would just need to cycle through all the buffers, find out which are associated with a file, test if the file is part of the source code of the current GDB session (as in the patch), and enable for GDB if appropriate. Nick