[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing file end-of-line style
From: |
Suvayu Ali |
Subject: |
Re: Changing file end-of-line style |
Date: |
Tue, 6 Nov 2012 17:48:01 +0100 |
User-agent: |
Mutt/1.5.21 (2011-07-01) |
Hi Eli,
On Mon, Nov 05, 2012 at 06:41:52PM +0200, Eli Zaretskii wrote:
> > Date: Mon, 5 Nov 2012 14:24:10 +0100
> > From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
> > Cc: Emacs help <help-gnu-emacs@gnu.org>
> >
> > 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
> conversions.
>
Thanks a lot for clearing my confusion. Obviously I need to read more.
:)
--
Suvayu
Open source is the future. It sets us free.