From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] find-file-noselect-1 Date: Fri, 11 Feb 2005 14:05:44 +0100 Message-ID: References: <16907.50624.707323.36975@farnswood.snap.net.nz> <87oeeru6nw.fsf-monnier+emacs@gnu.org> <16908.26618.789580.363225@farnswood.snap.net.nz> <16908.35966.590611.394858@farnswood.snap.net.nz> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108127529 23056 80.91.229.6 (11 Feb 2005 13:12:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2005 13:12:09 +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 14:11:55 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 1CzaaQ-0005Z5-00 for ; Fri, 11 Feb 2005 14:11:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzapL-0002hn-NC for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2005 08:27:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzaoD-0002NU-61 for emacs-devel@gnu.org; Fri, 11 Feb 2005 08:26:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Czao3-0002JE-H9 for emacs-devel@gnu.org; Fri, 11 Feb 2005 08:26:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Czao3-0002J1-7c for emacs-devel@gnu.org; Fri, 11 Feb 2005 08:25:59 -0500 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1Czaar-0000l9-UO for emacs-devel@gnu.org; Fri, 11 Feb 2005 08:12:22 -0500 Original-Received: (qmail 77327 invoked from network); 11 Feb 2005 13:05:40 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 11 Feb 2005 13:05:40 -0000 Original-To: Nick Roberts In-Reply-To: <16908.35966.590611.394858@farnswood.snap.net.nz> (Nick Roberts's message of "Fri, 11 Feb 2005 23:44:14 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:33251 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33251 Nick Roberts writes: > > 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. In the find-file-hook function? It should be sufficient to do this when loading gdb-ui ? > 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. That would be ok then. In that case, your approach is cleaner. -- Kim F. Storm http://www.cua.dk