[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'm sorry that I tried to insert a DOS file

From: Eli Zaretskii
Subject: Re: I'm sorry that I tried to insert a DOS file
Date: Wed, 13 Feb 2002 19:25:50 +0200

> Newsgroups: gnu.emacs.bug
> From: address@hidden (Kim F. Storm)
> Date: 13 Feb 2002 13:20:44 +0100
> Is the EOL format separate from the other coding information?
> If that is the case, then insert-file-contents could simply remember what
> the EOL format was before insertion and restore that setting afterwards.

I don't recommend to make such decisions on the primitive level.
Primitives don't have enough information about the context to DTRT.
We've been burnt by such changes before.  insert-file-contents is used
for many different commands, some of them do need to preserve
Mule-related settings of the buffers, others don't.  One notoriously
troubled case is VC-related commands where Emacs needs to revert a
buffer after check-in/check-out.

So if we decide that "C-x i" should preserve the EOL format of the
original buffer, I suggest to do that inside insert-file.

reply via email to

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