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: Wed, 13 Feb 2013 17:54:29 +0100 Message-ID: <87ehgktare.fsf@bzg.ath.cx> References: <878v6swk1w.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360774976 22122 80.91.229.3 (13 Feb 2013 17:02:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 17:02:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 13 18:03:16 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 1U5fjl-0005Hg-6q for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2013 18:03:13 +0100 Original-Received: from localhost ([::1]:56058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fjR-00061n-Ku for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2013 12:02:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fjK-00061d-9o for emacs-devel@gnu.org; Wed, 13 Feb 2013 12:02:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5fjC-000159-92 for emacs-devel@gnu.org; Wed, 13 Feb 2013 12:02:46 -0500 Original-Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:56773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fjC-00014v-07; Wed, 13 Feb 2013 12:02:38 -0500 Original-Received: by mail-we0-f172.google.com with SMTP id x10so1213268wey.3 for ; Wed, 13 Feb 2013 09:02:36 -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=UeHhs1deD7i1TPVVJStqgmHtgR+4gfvCFRvBKz0CHXo=; b=E85RCBEkb3qyYRNLA1U4UKUlN2akJ3UQUd08QZ5vZm/fnMuaQyL8Wic86IhPDp0lgT r2j7lXyLBDVF98RX77HmoQ2FenW2kitpKYzCFVd3NEvJbqPjPr0Mskrr5MxaX4XaxVUJ 4AqU/1/jkz63c55x2Y3kiEBq7NjGXjAyHiDAJqTCVKhyepDKd2XJstFSKdlaB2+OreCE IaoaBIzA7t6DDPa7skvRa+L2wZnmtA9rnQK2XHjrtz7TFcTspA7N/Eas1Nk5Xg389RYZ sRqdtjzNTBZJJxRAOzZBLRVZ6krpNSLTrhbPPFe4cgiK1XWpaUtN9rMAswiVKW1qd/HC gUdQ== X-Received: by 10.194.235.196 with SMTP id uo4mr14250035wjc.30.1360774473407; Wed, 13 Feb 2013 08:54:33 -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 s10sm47196119wiw.4.2013.02.13.08.54.30 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 08:54:31 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 9DE611C20D18; Wed, 13 Feb 2013 17:54:29 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Wed, 13 Feb 2013 10:08:34 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22c 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:157007 Archived-At: Stefan Monnier writes: >>> * files.el (basic-save-buffer): Offer to create a non-existing >>> directory. >> The attached patch implements the same change for `find-file'. > > Now that save lets you create the dir, why would you need to do that in > find-file? To spare you from having to do it at saving time? 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. 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. Probably not a big deal, though. -- Bastien