From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: Don't change default-directory in gud.el? Date: Tue, 02 Nov 2004 22:37:00 -0500 Message-ID: References: <16776.11051.715258.594965@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 1099453087 18934 80.91.229.6 (3 Nov 2004 03:38:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2004 03:38:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 03 04:37:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CPByA-0006yQ-00 for ; Wed, 03 Nov 2004 04:37:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPC6E-0002sQ-QA for ged-emacs-devel@m.gmane.org; Tue, 02 Nov 2004 22:46:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CPC5i-0002VI-NZ for emacs-devel@gnu.org; Tue, 02 Nov 2004 22:45:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CPC5h-0002Tb-Mh for emacs-devel@gnu.org; Tue, 02 Nov 2004 22:45:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPC5h-0002TK-Gv for emacs-devel@gnu.org; Tue, 02 Nov 2004 22:45:45 -0500 Original-Received: from [206.47.199.165] (helo=simmts7-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CPBxF-000882-MK for emacs-devel@gnu.org; Tue, 02 Nov 2004 22:37:01 -0500 Original-Received: from empanada.home ([67.71.24.49]) by simmts7-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041103033701.LIHZ1960.simmts7-srv.bellnexxia.net@empanada.home>; Tue, 2 Nov 2004 22:37:01 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id D3FF5350AAE; Tue, 2 Nov 2004 22:37:00 -0500 (EST) Original-To: Nick Roberts In-Reply-To: <16776.11051.715258.594965@farnswood.snap.net.nz> (Nick Roberts's message of "Wed, 3 Nov 2004 13:49:47 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) 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:29356 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29356 > Currently, in gud.el, the default-directory of the GUD buffer gets set from > the pathname (if any) of the program to be debugged. This is not consistent > what happens if gdb is invoked from the command line, where the working > directory remains unchanged. As a general rule, I find it more annoying if > Emacs does something that I don't want than if it doesn't do something I do > want (Another example is Jan Nieuwenhuizen's grumble about M-x gdb guessing > the name of the executable). I think the problem is not so much about whether Emacs does or doesn't do something, but about how much work is needed to get the other behavior. In the case of the chdir, it's actually surprisingly difficult to undo the chdir, so I completely agree that it should be removed. Stefan