From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r111746: * files.el (basic-save-buffer): Offer to create a non-existing directory. Date: Thu, 14 Feb 2013 07:58:08 +0800 Organization: The Church of Emacs Message-ID: <20130214075808.e2c35690b086f143f241a239@gmail.com> References: <878v6swk1w.fsf@bzg.ath.cx> <87ehgktare.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360799917 8010 80.91.229.3 (13 Feb 2013 23:58:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 23:58:37 +0000 (UTC) Cc: Bastien , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 00:58:59 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U5mE4-0000PL-Lc for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2013 00:58:56 +0100 Original-Received: from localhost ([::1]:53989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5mDl-0005UC-A2 for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2013 18:58:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5mDc-0005Tl-99 for emacs-devel@gnu.org; Wed, 13 Feb 2013 18:58:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5mDV-0005NI-0e for emacs-devel@gnu.org; Wed, 13 Feb 2013 18:58:28 -0500 Original-Received: from mail-da0-f50.google.com ([209.85.210.50]:50893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5mDQ-0005Lb-53; Wed, 13 Feb 2013 18:58:16 -0500 Original-Received: by mail-da0-f50.google.com with SMTP id h15so794317dan.23 for ; Wed, 13 Feb 2013 15:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=8RLtHUm8WfkI67t7M8kx4mxq61Fi+SWS42nSJmACsG8=; b=G+wnAHpyh0gh3FvK6V/bvfzTAGnvd1CqrAFaMk43kNqmrelIAYq6J9oH/inrRNSz4e tNwXaeOzPWm7MS9BRBFaoWkZXU/DAg0UCUXTxCugEktQ9uH2OI536HLS+xmXoxk0AKLb P4FrdVOpo3tvL3x0bFT1Oq/HNw2qyLNgExkYj90udlofSDorjZUZHiXDO/dns8Nlz09Z RrjDuol2a3DiTsTSZ+RhuDL9v8wTZ/wo7BRTLOKg9f8vYEYYogBZL5bkcoC/9awgKKqY FmmVgcwNGU9hr0y5u+c5o6Z/rerdxCXw5xr8ESJKK5ZrpsNHBad6pFM7yquk/KYkNW+w 3J6A== X-Received: by 10.66.84.232 with SMTP id c8mr68972905paz.8.1360799894967; Wed, 13 Feb 2013 15:58:14 -0800 (PST) Original-Received: from Emacs ([49.118.21.177]) by mx.google.com with ESMTPS id m3sm87152012pav.4.2013.02.13.15.58.11 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 15:58:14 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157016 Archived-At: On Wed, 13 Feb 2013 14:27:59 -0500 Stefan Monnier wrote: > > I often use C-x s to save all buffers, I would find it > > more convenient to be asked for the creation of the dir > > when finding the file. > I'm not opposed to it on principles, but I think that the default > behavior should not do it, so as to minimize the risk that find-file > ends up prompting in a context where the user is absent or doesn't even > know that a file needs to be opened (internal uses of find-file-noselect). > > Also right now, when finding a file in a non-existing > > dir, the user is taught how to create the directory... > > which seems a bit redundant with the fact that he will > > be asked to create the dir anyway. > It's still meaningful in that it warns the user that maybe the name he > provided was wrong, or that at the dir has not yet been created. I agree with Stefan. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao