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 21:08:26 +1300 Message-ID: <16908.26618.789580.363225@farnswood.snap.net.nz> References: <16907.50624.707323.36975@farnswood.snap.net.nz> <87oeeru6nw.fsf-monnier+emacs@gnu.org> 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 1108109834 26990 80.91.229.6 (11 Feb 2005 08:17:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2005 08:17:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 09:17:05 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 1CzVz7-000140-00 for ; Fri, 11 Feb 2005 09:17:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzWE0-00086g-TV for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2005 03:32:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzWBi-0007Mm-3Z for emacs-devel@gnu.org; Fri, 11 Feb 2005 03:30:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzWBR-0007Ew-CK for emacs-devel@gnu.org; Fri, 11 Feb 2005 03:29:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzWBR-0007Em-8n for emacs-devel@gnu.org; Fri, 11 Feb 2005 03:29:49 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CzVxf-00077K-EI for emacs-devel@gnu.org; Fri, 11 Feb 2005 03:15:36 -0500 Original-Received: from farnswood.snap.net.nz (p35-tnt2.snap.net.nz [202.124.108.35]) by viper.snap.net.nz (Postfix) with ESMTP id 1C0A7378C57; Fri, 11 Feb 2005 21:15:33 +1300 (NZDT) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 56FA4628AB; Fri, 11 Feb 2005 08:08:27 +0000 (GMT) Original-To: Stefan Monnier In-Reply-To: <87oeeru6nw.fsf-monnier+emacs@gnu.org> X-Mailer: VM 6.97 under Emacs 21.2.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:33242 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33242 > BTW, I firmly vote against any such change (even if done via > find-file-hook): gdba.el should be trying to be more robust (in the face of > unexpected or missing output from gdb), not more featureful. Currently, in a debug session with gdb-ui, the first breakpoint has to be set either with a global binding e.g C-x SPC or through the GUD buffer. No other debugger, that I know of, puts such an unintuitive constraint on the user. This patch makes the fringe available for setting breakpoints at the start of the session. I wouldn't call that a adding new feature, but rather making an existing one more sound. > Otherwise, we run the risk that we'll need to make gdb's default > "gdb --fullname" rather than "gdb --annotate=3" if too many bug-reports come > in and we can't fix them in time. Not many bug reports have come in, probably because not many people have usd gdb-ui, but thats a separate risk to the one of using find-file-hook. Anyway, lets wait until too many bug-reports do come in before talking about changing the default. If a user doesn't use GDB, then there's no risk because the hook doesn't get called. If a user does use GDB, and finds a problem with gdb-ui, then he's probably competent enough to set the default to "gdb --fullname" where the hook does nothing. GDB isn't just another application, its part of the GNU Project and, as a debugger, intimately linked with the editor (I think it even used to be distributed on the same tape as Emacs). I think its important that these two programs should be made to work well with each other and that, in the long term, the benfeit is worth the risk. Nick