unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Clemente <dcl441-bugs@yahoo.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#3016: 23.0.92.2; offer to make a directory when saving if it is needed
Date: Thu, 16 Apr 2009 05:37:44 -0700 (PDT)	[thread overview]
Message-ID: <766594.81278.qm@web53212.mail.re2.yahoo.com> (raw)



1. Do: C-x C-f /tmp/doesnotexist/myfile RET. Emacs tells you about make-directory
2. Type something.
3. C-x C-s. Error: no such directory

I suggest that Emacs not only tell the user about make-directory, but actually ask him/her in a y-n question if the directory should be created. This should happen on save.

The script could be then:

a. User does: C-x C-f /tmp/doesnotexist/myfile RET
b. Emacs warns: Warning: Directory /tmp/doesnotexist does not exist
c. User types something
d. User does: C-x C-s
e. Emacs asks: Create directory /tmp/doesnotexist? (y/n)
f1. If yes, it (and the above directories) are created
f2. If not, issue an error. The user can then do M-x make-directory as needed


This allows a faster save with just one extra key (C-x C-s y) instead of having to type M-x make-directory /tmp/doesnotexist RET C-x C-s










             reply	other threads:[~2009-04-16 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 12:37 Daniel Clemente [this message]
2013-02-12  8:37 ` bug#3016: 23.0.92.2; offer to make a directory when saving if it is needed Glenn Morris
2013-02-20 15:33   ` Kazuhiro Ito
2013-02-20 21:28     ` Glenn Morris
2013-02-21  9:52       ` Kazuhiro Ito
2013-02-21 17:05         ` Glenn Morris

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=766594.81278.qm@web53212.mail.re2.yahoo.com \
    --to=dcl441-bugs@yahoo.com \
    --cc=3016@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@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).