From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: save-buffer when directory doesn't exist Date: Sat, 07 Apr 2007 09:33:06 +0200 Message-ID: <46174932.2030209@gmx.at> References: <45F27DDC.9080006@gmx.at> <45FFAD68.9060601@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175931386 3378 80.91.229.12 (7 Apr 2007 07:36:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2007 07:36:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jason Spiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 07 09:35:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ha5SQ-0001gj-LX for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2007 09:35:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ha5Vz-0000gq-76 for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2007 03:39:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ha5Ur-00005A-Lq for emacs-devel@gnu.org; Sat, 07 Apr 2007 03:38:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ha5Up-0008TQ-Kb for emacs-devel@gnu.org; Sat, 07 Apr 2007 03:38:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ha5Uo-0008SN-Ti for emacs-devel@gnu.org; Sat, 07 Apr 2007 03:38:02 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ha5RC-0000P4-RO for emacs-devel@gnu.org; Sat, 07 Apr 2007 03:34:19 -0400 Original-Received: (qmail invoked by alias); 07 Apr 2007 07:34:13 -0000 Original-Received: from N834P026.adsl.highway.telekom.at (EHLO [62.47.48.58]) [62.47.48.58] by mail.gmx.net (mp002) with SMTP; 07 Apr 2007 09:34:13 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+Oja5cmAOOrdpViAiSKJAwHC94D01uZqirI4gqj6 3FSHqG/7SBIrDb User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69153 Archived-At: > 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.