From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: grep-mode should print default-directory (again) Date: Sat, 14 Apr 2007 09:54:43 +1200 Message-ID: <17951.64547.748832.464666@farnswood.snap.net.nz> References: <17946.11401.381541.518837@farnswood.snap.net.nz> <17946.53750.886235.857427@farnswood.snap.net.nz> <87odlspau2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176501440 13672 80.91.229.12 (13 Apr 2007 21:57:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2007 21:57:20 +0000 (UTC) Cc: Chong Yidong , rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 13 23:57:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HcTlc-0006Ku-RQ for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2007 23:57:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcTpv-0004sW-Ug for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2007 18:01:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcTps-0004sF-Nk for emacs-devel@gnu.org; Fri, 13 Apr 2007 18:01:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcTpr-0004r7-4i for emacs-devel@gnu.org; Fri, 13 Apr 2007 18:01:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcTpq-0004r4-U3 for emacs-devel@gnu.org; Fri, 13 Apr 2007 18:01:38 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HcTlV-0003Jg-N2; Fri, 13 Apr 2007 17:57:10 -0400 Original-Received: from farnswood.snap.net.nz (39.63.255.123.dynamic.snap.net.nz [123.255.63.39]) by viper.snap.net.nz (Postfix) with ESMTP id 32AB13D911E; Sat, 14 Apr 2007 09:57:07 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 500) id A27B8627ED; Fri, 13 Apr 2007 22:54:44 +0100 (BST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.97.3 X-detected-kernel: Linux 2.4-2.6 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: news.gmane.org gmane.emacs.devel:69415 Archived-At: > > I reverted to setting and saving default-directory. I guess there is > > the risk isn't considerable (or at least no worse than what we had in > > Emacs 21). > > Huh? In Emacs-21, the default-directory was not set, so it didn't suffer > from any of the nasty side effects of setting it. default-directory is a buffer-local variable while compilation-directory is not. Why not just print default-directory at the top of the grep buffer rather than make it file local (who saves these buffers anyway?). -- Nick http://www.inet.net.nz/~nickrob