help-gnu-emacs
[Top][All Lists]
Advanced

[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: Mon, 5 Nov 2012 15:05:05 +0100
User-agent: Mutt/1.5.21 (2011-07-01)

On Mon, Nov 05, 2012 at 07:28:13PM +0530, Jambunathan K wrote:
> Suvayu Ali <address@hidden> writes:
> 
> > Hi Jambunathan,
> >
> > 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.
> >
> > From your answer it seems that is not the case.  Does that mean there
> > can be several coding system associated to a buffer?  Am I talking
> > gibberish or does my question make any sense?
> 
> > Footnotes:
> >
> > [1] I use utf-8 for all text files.
> >
> > [2] There is a U for files with UTF-8 characters and DOS for files with
> >     DOS style line endings at separate places on the bottom left of the
> >     modeline.
> 
> At C-x C-m f prompt, you can choose utf-8-unix, utf-8-dos, utf-8-mac
> apart from other options that start with utf-8.  The two things -
> encoding and what constitues a eol character - are orthogonal to each
> other.
> 

Yup that works!  I wonder why I did not see that earlier.  :-/

> Frankly, I don't know any more that what the manual suggests.

Fair enough.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

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