all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Jason Spiro <jasonspiro4@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: save-buffer when directory doesn't exist
Date: Sat, 07 Apr 2007 09:33:06 +0200	[thread overview]
Message-ID: <46174932.2030209@gmx.at> (raw)
In-Reply-To: <c241693f0704061638u45001846n2c7c352bee2b4b8a@mail.gmail.com>

 > I like the new error message much better.  But now that I think about
 > it, the error message could be improved even more.  Instead of
 > "/ho,e/j/Desktop/: no such directory", how about this?
 >
 > Cannot save /ho,e/jspiro/Desktop/todo.txt because directory /ho,e does
 > not exist
 >
 > I did 4 things different in my suggested example:  I used the word
 > "because";  I added a verbose explanation of why it failed;  I left
 > out the trailing slash on the directory name since I think it looks
 > better that way;  and I only mentioned the nonexistent directory /ho,e
 > and not its subdirectories.

Then I would have to change the text in `basic-save-buffer-2' as well.
I don't want to think about the consequences of doing that now.  BTW,
`file-exists-p' won't tell me which subdirectory doesn't exist.

 > By the way, what can be done about the annoying "can't auto-save"
 > messages?  I wish emacs would just auto-save to /tmp by default.

Are you sure that you get them now?  When the directory doesn't exist
`set-visited-file-name' should _not_ be executed and auto-saving should
_not_ try to save the buffer.  Anything else wold be a bug.

  reply	other threads:[~2007-04-07  7:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-10  9:43 save-buffer when directory doesn't exist martin rudalics
2007-03-20  8:09 ` Jason Spiro
2007-03-20  9:46   ` martin rudalics
2007-04-06 23:38     ` Jason Spiro
2007-04-07  7:33       ` martin rudalics [this message]
2007-04-08 21:42         ` Jason Spiro
2007-04-09  8:50           ` martin rudalics

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

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

  git send-email \
    --in-reply-to=46174932.2030209@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=jasonspiro4@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.