From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien 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:23:05 +0100 Message-ID: <87ehgjo1me.fsf@bzg.ath.cx> 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 X-Trace: ger.gmane.org 1360823008 25708 80.91.229.3 (14 Feb 2013 06:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 06:23:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 07:23:47 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 1U5sEN-0002LI-U9 for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2013 07:23:40 +0100 Original-Received: from localhost ([::1]:40753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5sE4-0002qQ-6q for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2013 01:23:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5sE0-0002py-Dt for emacs-devel@gnu.org; Thu, 14 Feb 2013 01:23:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5sDx-0001FW-3w for emacs-devel@gnu.org; Thu, 14 Feb 2013 01:23:16 -0500 Original-Received: from mail-wg0-f47.google.com ([74.125.82.47]:58783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5sDw-0001FE-Oa for emacs-devel@gnu.org; Thu, 14 Feb 2013 01:23:13 -0500 Original-Received: by mail-wg0-f47.google.com with SMTP id dr13so1563715wgb.26 for ; Wed, 13 Feb 2013 22:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=SkWm1f6W4ADmBEUaaUbNy4h7yHTglYUxUYCCPKH9LrI=; b=Nw7c2HoYujV5FsEfshpHiGJ+Uih7PdyTBfKMVJDm97xsg7DKkdkXsIFmxR5p/x321S IWYFZ9us7MCaDSDIwN0/Vajr/bsZzvVFpZMcANi8n+5QnwZfe7syoazY5CYLHu3n20Qt TwMTagUwc+KxR5JWp84BT6m0C5RyrZGQ+8i/KxEEK1oJQtXL3L4aMyww0kjiqLXPpHL9 VIcgpO793OuYU6Ozo8Q1yL/VytR88wkGdd49RQuH9fCUsv52LhIt8Gm1NmTD3cNCVhxI VZ6vSz1f4M7JOXOlqQzeW/jKCXdpD5dDMXawpuTP5INq6obZeD5IJxMYUIfQDWiCAnQB 7OMA== X-Received: by 10.180.78.137 with SMTP id b9mr14507853wix.30.1360822989190; Wed, 13 Feb 2013 22:23:09 -0800 (PST) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id fx5sm50198228wib.11.2013.02.13.22.23.06 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 22:23:07 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id C833D1C20D5B; Thu, 14 Feb 2013 07:23:05 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Wed, 13 Feb 2013 14:27:59 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.47 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:157021 Archived-At: Hi Stefan, Stefan Monnier writes: >> 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 see, and I agree -- thanks for the explanations. PS: For the "small story", a user came on Org's mailing a few days ago, requesting that Org would auto-create missing directories when following links to org files. I told him this was more of an Emacs issue and by magic, Glenn implemented this for save. So I thought I'd go for what the OP wanted too. -- Bastien