all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing file end-of-line style
Date: Mon, 05 Nov 2012 18:41:52 +0200	[thread overview]
Message-ID: <831ug83str.fsf@gnu.org> (raw)
In-Reply-To: <20121105132410.GG10005@kuru.dyndns-at-home.com>

> 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.



  parent reply	other threads:[~2012-11-05 16:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-05 11:57 Changing file end-of-line style Suvayu Ali
2012-11-05 13:08 ` Jambunathan K
2012-11-05 13:24   ` Suvayu Ali
2012-11-05 13:58     ` Jambunathan K
2012-11-05 14:05       ` Suvayu Ali
2012-11-06 18:08         ` Oleksandr Gavenko
2012-11-05 16:41     ` Eli Zaretskii [this message]
2012-11-06 16:48       ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831ug83str.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.