[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp mode and auto-conversion of files to DOS line endings
From: |
Michael Albinus |
Subject: |
Re: Tramp mode and auto-conversion of files to DOS line endings |
Date: |
Sun, 17 Jul 2005 16:45:39 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
"<David Howells" <address@hidden> writes:
> Symptoms:
>
> I'm seeing a problem with Tramp in which when I save a file or revisit it,
> emacs changes its mind on the type of line endings to DOS mode, whether or not
> the file was DOS mode before.
>
> The result of the initial save on disk doesn't contain CR characters, but
> subsequent saves do.
I've tried to reproduce it locally, no success. Even applying your
settings (locale-coding-system: utf-8,
default-enable-multibyte-characters: t) doesn't help.
Could you, please, provide the values of the following (partly local)
variables from the buffer in question: `buffer-file-coding-system',
`save-buffer-coding-system', `last-coding-system-used',
`auto-coding-regexp-alist', `file-coding-system-alist',
`coding-system-for-read', `coding-system-for-write' and
`buffer-file-type'.
> Setting file-precious-flag to nil rather than t seems to stop the problem from
> occurring.
Strange. Tramp doesn't care `file-precious-flag'. So it must belong to
writing a local tempfile. But I don't see (yet) something strange in
the code.
Best regards, Michael.