unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Bastien <bzg@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: /srv/bzr/emacs/trunk r111746: * files.el (basic-save-buffer): Offer to create a non-existing directory.
Date: Wed, 13 Feb 2013 14:27:59 -0500	[thread overview]
Message-ID: <jwvy5esqaod.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ehgktare.fsf@bzg.ath.cx> (Bastien's message of "Wed, 13 Feb 2013 17:54:29 +0100")

> 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.


        Stefan



  reply	other threads:[~2013-02-13 19:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1U5BzI-0002eB-PS@vcs.savannah.gnu.org>
2013-02-13 11:05 ` /srv/bzr/emacs/trunk r111746: * files.el (basic-save-buffer): Offer to create a non-existing directory Bastien
2013-02-13 15:08   ` Stefan Monnier
2013-02-13 16:54     ` Bastien
2013-02-13 19:27       ` Stefan Monnier [this message]
2013-02-13 23:58         ` Xue Fuqiao
2013-02-14  6:23         ` Bastien
2013-02-14  6:23     ` Thierry Volpiatto
2013-02-14 13:59       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy5esqaod.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=bzg@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).