emacs-devel
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]