[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.0.57); file-coding-system-alist not respected
From: |
Andreas Schwab |
Subject: |
Re: tramp (2.0.57); file-coding-system-alist not respected |
Date: |
Tue, 08 Apr 2008 10:14:51 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
William Xu <address@hidden> writes:
> Michael Albinus <address@hidden> writes:
>
>> I fear this cannot work in Tramp. Tramp uses temporary files on the
>> local host. They are not located at ".*source.*", rather they are
>> somewhere at "/tmp/*". So I have no clue how to support your settings.
>
> How about adding file path as part(prefix, suffix, or something like
> that) of the filename under /tmp/* ? For example,
> "/tmp/path_to_source_foo.cpp", replacing `/' with `_'.
One problem with this is that it gives predictable file names, a bad
thing to have in a world writable directory.
Probably a better way to solve that is to create a way to tell
insert-file-contents the original file name to be used for deciding the
coding system.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."