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: changed on disk; really edit the buffer? Date: Wed, 21 Nov 2007 18:47:06 +0100 Message-ID: <47446F1A.8060604@gmx.at> References: <4739B12F.7000400@gmx.at> <18241.34220.668384.165761@tower.localdomain> <18242.27013.59638.550831@tower.localdomain> 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: ger.gmane.org 1195667710 5464 80.91.229.12 (21 Nov 2007 17:55:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2007 17:55:10 +0000 (UTC) Cc: stephan.lukits@FernUni-Hagen.de, jonathangoldblatt@yahoo.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 18:55:17 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 1IutnA-0004Px-KI for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2007 18:55:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iutmw-0007vd-Nl for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2007 12:55:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IutmI-0006zm-Ck for emacs-devel@gnu.org; Wed, 21 Nov 2007 12:54:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IutmF-0006uJ-F6 for emacs-devel@gnu.org; Wed, 21 Nov 2007 12:54:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IutmE-0006tq-VA for emacs-devel@gnu.org; Wed, 21 Nov 2007 12:54:19 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IutmE-0003d1-FG for emacs-devel@gnu.org; Wed, 21 Nov 2007 12:54:18 -0500 Original-Received: (qmail invoked by alias); 21 Nov 2007 17:54:17 -0000 Original-Received: from N719P026.adsl.highway.telekom.at (EHLO [62.47.33.218]) [62.47.33.218] by mail.gmx.net (mp024) with SMTP; 21 Nov 2007 18:54:17 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19g539v/IFg3yS0CLTJkuFlISQutPczeiqW8Avkyl /j9x9u4lu/3cAP 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: by monty-python.gnu.org: 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:83795 Archived-At: > Also occurred to me that a possible use for auto-saving into the > current file is when you don't have enough permissions in the > current directory to create a new file. > > I think it would be better to put the auto save file in a different > directory. In fact, perhaps we should change make-auto-save-file-name > to do this automatically. `make-auto-save-file-name' already tries to substitute the default-directory in (expand-file-name (format "#%s#" buffer-name) ;; Try a few alternative directories, to get one we can ;; write it. (cond ((file-writable-p default-directory) default-directory) ((file-writable-p "/var/tmp/") "/var/tmp/") ("~/"))))) What else should it do?