From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#3911: get-free-disk-space when default-directory doesn't exist Date: Tue, 25 Aug 2009 09:45:37 +1000 Message-ID: <877hwsbwta.fsf@blah.blah> References: <871vnclhoz.fsf@cyd.mit.edu> <87bpme9dhv.fsf@blah.blah> <87my5yexy4.fsf@stupidchicken.com> <87r5v7xxz5.fsf@blah.blah> Reply-To: Kevin Ryde , 3911@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251158855 24788 80.91.229.12 (25 Aug 2009 00:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2009 00:07:35 +0000 (UTC) Cc: Chong Yidong , 3911@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 25 02:07:27 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MfjZP-0004vw-Ed for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Aug 2009 02:07:27 +0200 Original-Received: from localhost ([127.0.0.1]:56301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfjZO-0002kn-Gh for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Aug 2009 20:07:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfjYz-0002Ws-Hc for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2009 20:07:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfjYu-0002V1-Ao for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2009 20:07:00 -0400 Original-Received: from [199.232.76.173] (port=60982 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfjYu-0002Uw-77 for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2009 20:06:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41239) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfjYt-0005KH-MO for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2009 20:06:56 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7P06qr9032147; Mon, 24 Aug 2009 17:06:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7ONt5s1028882; Mon, 24 Aug 2009 16:55:05 -0700 Resent-Date: Mon, 24 Aug 2009 16:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 24 Aug 2009 23:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3911 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by 3911-submit@emacsbugs.donarmstrong.com id=B3911.125115756623710 (code B ref 3911); Mon, 24 Aug 2009 23:55:05 +0000 Original-Received: (at 3911) by emacsbugs.donarmstrong.com; 24 Aug 2009 23:46:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7ONk4sB023707 for <3911@emacsbugs.donarmstrong.com>; Mon, 24 Aug 2009 16:46:06 -0700 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 07805503E01; Tue, 25 Aug 2009 09:46:03 +1000 (EST) Original-Received: from blah.blah (ppp2D80.dyn.pacific.net.au [61.8.45.128]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 124448C4C; Tue, 25 Aug 2009 09:46:01 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1MfjEI-00011v-WF; Tue, 25 Aug 2009 09:45:39 +1000 In-Reply-To: (Stefan Monnier's message of "Fri, 21 Aug 2009 23:57:20 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 24 Aug 2009 20:07:00 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30530 Archived-At: Stefan Monnier writes: > > How 'bout this patch instead (which could even work on Tramp > directories)? I don't think so. It's still a race condition in between choosing an apparently existent directory and then making use of that directory, isn't it? I think "/" is the only place certain to exist and not go away. It's also the simplest approach. `sha1-string-external' is another place this comes up. In that case the operation is completely unrelated to any directory, and so really should go to "/" so as to be independent of default-directory or whether that dir is coming or going.