[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-saving and jka-compr-write-region
From: |
Kai Großjohann |
Subject: |
Re: auto-saving and jka-compr-write-region |
Date: |
Fri, 28 Dec 2001 22:02:22 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) |
Richard Stallman <address@hidden> writes:
> What do people think: should this issue be done _right_, or just in a
> way that works for now?
>
> What aspect of my proposal do you think is not right?
> What would make it more right? You can't improve it without
> first answering that.
Let me recap the problem, since it's been a while. The problem was
that Tramp has a feature which requests auto-save files to be saved
locally. But this feature led to auto-save filenames which triggered
jka-compr (if the original file was a compressed file), and
jka-compr-write-region does not want to be called with nil for START
and END, but auto_save_1 does just that.
I have now done the following:
First, Tramp converts the remote file name, for example
/address@hidden/path/to/file
into a local file name, for example
~/.tramp/address@hidden/path/to/file
Then, Tramp invokes make-auto-save-file-name on this file, leading to
~/.tramp/address@hidden/path/to/#file#
And this correctly leads to jka-compr not being invoked, even if the
file was something like foo.gz.
kai
--
Simplification good! Oversimplification bad! (Larry Wall)
- auto-saving and jka-compr-write-region, Kai Großjohann, 2001/12/06
- Re: auto-saving and jka-compr-write-region, Richard Stallman, 2001/12/07
- Re: auto-saving and jka-compr-write-region, Kai Großjohann, 2001/12/07
- Re: auto-saving and jka-compr-write-region, Richard Stallman, 2001/12/09
- Re: auto-saving and jka-compr-write-region, Kai Großjohann, 2001/12/11
- Re: auto-saving and jka-compr-write-region, Richard Stallman, 2001/12/11
- Re: auto-saving and jka-compr-write-region,
Kai Großjohann <=
- Re: auto-saving and jka-compr-write-region, Richard Stallman, 2001/12/29
- Re: auto-saving and jka-compr-write-region, Kai Großjohann, 2001/12/30
- Re: auto-saving and jka-compr-write-region, Henrik Holm, 2001/12/11