From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jason Spiro" Newsgroups: gmane.emacs.devel Subject: Re: save-buffer when directory doesn't exist Date: Fri, 6 Apr 2007 19:38:24 -0400 Message-ID: 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-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175935582 18533 80.91.229.12 (7 Apr 2007 08:46:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2007 08:46:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: "martin rudalics" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 07 10:45:34 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 1Ha6YA-0006pZ-07 for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2007 10:45:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ha6bj-00057J-Fb for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2007 04:49:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZy4F-00018R-1O for emacs-devel@gnu.org; Fri, 06 Apr 2007 19:42:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZy4E-00018B-0G for emacs-devel@gnu.org; Fri, 06 Apr 2007 19:42:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZy4D-000182-NT for emacs-devel@gnu.org; Fri, 06 Apr 2007 19:42:05 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.230]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZy0f-0008FO-Ut for emacs-devel@gnu.org; Fri, 06 Apr 2007 19:38:26 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s17so980697wxc for ; Fri, 06 Apr 2007 16:38:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=R2J22kZuLTEhJpCQ8bp8ugMDOO+BDvgIJgX6XQtLNLl1yt2ajN2O+D495ZMlqv+c4NqLBF9Pumk5pP/xiSJ6yewmFWTQ+0b6vSYFw6G4y1hdJx7ULjwF5rWIwm09JR+DCCwp+HyTxV5EiVsiT+JLhXTjlp5PMZKqxTSrFhFhVvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=q6wMYm4SFCLS3mOVVNpx9pp4hOS0TdOKvVZ8uzxY2HAEabprI1H4E1Our34fKeG+q3eYI/+Hpa5gVYAwnp8V1nwbgz6+EDQ2xwTHtwL62wqFA8gtVtyyf+XtAAUSJ9Px/XpS4M8vqJK2aZYs4bMR5GVk3VbWeN4Va8YBlOwZQZQ= Original-Received: by 10.78.136.9 with SMTP id j9mr613109hud.1175902704608; Fri, 06 Apr 2007 16:38:24 -0700 (PDT) Original-Received: by 10.78.25.19 with HTTP; Fri, 6 Apr 2007 16:38:24 -0700 (PDT) In-Reply-To: <45FFAD68.9060601@gmx.at> Content-Disposition: inline X-Google-Sender-Auth: 862240be6db98f5a X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-Mailman-Approved-At: Sat, 07 Apr 2007 04:48:16 -0400 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:69156 Archived-At: > I just checked in a slightly modified version. Could you test it on your > GNU Linux machine? > 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. 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. Cheers, Jason