* auto save of remote files
@ 2002-03-29 14:51 Glenn Morris
0 siblings, 0 replies; only message in thread
From: Glenn Morris @ 2002-03-29 14:51 UTC (permalink / raw)
In emacs-21.2, `auto-save-file-name-transforms' is defined in files.el as
follows:
(defcustom auto-save-file-name-transforms
`(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)"
,(expand-file-name "\\2" temporary-file-directory)))
" ...
The default value is set up to put the auto-save file into the
temporary directory (see the variable `temporary-file-directory') for
editing a remote file."
This means that a remote file of the form:
/HOST:/dir1/foo.el
will be transformed to
/tmp/foo.el
If one simultaneously edits a second remote file with the same basename,
but in a different directory, for example:
/HOST:/dir2/foo.el
then it is transformed to the same local file.
Maybe auto-save could use the same trick as `make-backup-file-name-1' here.
When all backups are to be put in the same directory, they are converted as
follows:
/path/to/dir1/foo.el -> /path/to/backups/!path!to!dir1!foo.el
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-29 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-29 14:51 auto save of remote files Glenn Morris
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).