From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#3911: get-free-disk-space when default-directory doesn't exist Date: Mon, 17 Aug 2009 21:02:27 -0400 Message-ID: <87my5yexy4.fsf@stupidchicken.com> References: <871vnclhoz.fsf@cyd.mit.edu> <87bpme9dhv.fsf@blah.blah> Reply-To: Chong Yidong , 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 1250801340 5883 80.91.229.12 (20 Aug 2009 20:49:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 20:49:00 +0000 (UTC) Cc: 3911@emacsbugs.donarmstrong.com To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 20 22:48:53 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 1MeEZ2-0002zD-UM for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 22:48:53 +0200 Original-Received: from localhost ([127.0.0.1]:38895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEZ2-0003kr-FT for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 16:48:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeEYM-0002ec-3I for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 16:48:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeEYF-0002S5-K6 for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 16:48:07 -0400 Original-Received: from [199.232.76.173] (port=55042 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEYE-0002RS-Mg for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 16:48:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57731) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeEYD-0004gH-N5 for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 16:48:02 -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 n7KKkpnW019227; Thu, 20 Aug 2009 13:47:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7KKFYXJ012953; Thu, 20 Aug 2009 13:15:34 -0700 Resent-Date: Thu, 20 Aug 2009 13:15:34 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 20 Aug 2009 20:15:32 +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.125055735511928 (code B ref 3911); Thu, 20 Aug 2009 20:15:32 +0000 Original-Received: (at 3911) by emacsbugs.donarmstrong.com; 18 Aug 2009 01:02:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pantheon-po41.its.yale.edu (pantheon-po41.its.yale.edu [130.132.50.98]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7I12XMo011923 for <3911@emacsbugs.donarmstrong.com>; Mon, 17 Aug 2009 18:02:35 -0700 Original-Received: from furry (dhcp128036161229.central.yale.edu [128.36.161.229]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n7I12R6c020707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Aug 2009 21:02:27 -0400 Original-Received: by furry (Postfix, from userid 1000) id 9B188C070; Mon, 17 Aug 2009 21:02:27 -0400 (EDT) In-Reply-To: <87bpme9dhv.fsf@blah.blah> (Kevin Ryde's message of "Tue, 18 Aug 2009 10:23:08 +1000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 20 Aug 2009 16:48:07 -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:30339 Archived-At: Kevin Ryde writes: > I think the test for file-remote-p is covered by the first line of the > func so it's not needed in the dir condition bit, per below. But that applies to DIR, not default-directory. > I still think "/" might as well be used unconditionally though. Principle of least surprise. If we don't have to change the default directory, let's not, even if it seems harmless (because we can never be sure of every eventuality).