unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: rms@gnu.org
Cc: stephan.lukits@FernUni-Hagen.de, jonathangoldblatt@yahoo.com,
	emacs-devel@gnu.org
Subject: Re: <filename> changed on disk; really edit the buffer?
Date: Wed, 21 Nov 2007 18:47:06 +0100	[thread overview]
Message-ID: <47446F1A.8060604@gmx.at> (raw)
In-Reply-To: <E1IuoJB-0006LD-5B@fencepost.gnu.org>

 >     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?

  parent reply	other threads:[~2007-11-21 17:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fg7idt$2c1$1@tamarack.fernuni-hagen.de>
     [not found] ` <mailman.2766.1193775394.18990.bug-gnu-emacs@gnu.org>
     [not found]   ` <fga6u2$kav$1@tamarack.fernuni-hagen.de>
     [not found]     ` <mailman.2810.1193861188.18990.bug-gnu-emacs@gnu.org>
     [not found]       ` <fgq1js$sae$1@tamarack.fernuni-hagen.de>
     [not found]         ` <mailman.3057.1194380790.18990.bug-gnu-emacs@gnu.org>
     [not found]           ` <fgv8a9$2tq$1@tamarack.fernuni-hagen.de>
     [not found]             ` <mailman.3145.1194554809.18990.bug-gnu-emacs@gnu.org>
     [not found]               ` <fh9s10$461$1@tamarack.fernuni-hagen.de>
     [not found]                 ` <mailman.3374.1194901774.18990.bug-gnu-emacs@gnu.org>
     [not found]                   ` <fhbptp$qfk$1@tamarack.fernuni-hagen.de>
     [not found]                     ` <mailman.3422.1194947662.18990.bug-gnu-emacs@gnu.org>
     [not found]                       ` <fhbt7q$j4d$1@tamarack.fernuni-hagen.de>
     [not found]                         ` <4739B12F.7000400@gmx.at>
     [not found]                           ` <E1Itjli-000760-SD@fencepost.gnu.org>
     [not found]                             ` <18241.34220.668384.165761@tower.localdomain>
     [not found]                               ` <E1IuKHL-000080-4R@fencepost.gnu.org>
     [not found]                                 ` <18242.27013.59638.550831@tower.localdomain>
2007-11-21 12:03                                   ` <filename> changed on disk; really edit the buffer? Richard Stallman
2007-11-21 12:55                                     ` jonathangoldblatt
2007-11-22 16:21                                       ` Richard Stallman
2007-11-21 17:47                                     ` martin rudalics [this message]
2007-11-22  8:22                                       ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=47446F1A.8060604@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=jonathangoldblatt@yahoo.com \
    --cc=rms@gnu.org \
    --cc=stephan.lukits@FernUni-Hagen.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).