[Top][All Lists]

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

Re: Changing file end-of-line style

From: Eli Zaretskii
Subject: Re: Changing file end-of-line style
Date: Mon, 05 Nov 2012 18:41:52 +0200

> Date: Mon, 5 Nov 2012 14:24:10 +0100
> From: Suvayu Ali <>
> Cc: Emacs help <>
> This works great!  I have a question though.  I was aware of the
> set-buffer-file-coding-system command; when I tried it I was prompted
> with utf-8[1] which did not seem to do anything.  What confuses me is
> this prompt along with separate markers on the modeline for charset and
> line ending style[2] led me to believe the coding system of the file is
> the charset (as in the characters used in the text) it is using, whereas
> line endings are set by something else.

No, the coding-system includes both the character encoding and the EOL
encoding.  See the node "Coding Systems" in the Emacs User Manual.

> >From your answer it seems that is not the case.  Does that mean there
> can be several coding system associated to a buffer?

No, there's only one, but it specifies both character and EOL

reply via email to

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