emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save-buffer when directory doesn't exist


From: martin rudalics
Subject: Re: save-buffer when directory doesn't exist
Date: Sat, 07 Apr 2007 09:33:06 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]