From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Changing file end-of-line style Date: Mon, 05 Nov 2012 18:41:52 +0200 Message-ID: <831ug83str.fsf@gnu.org> References: <20121105115709.GB10005@kuru.dyndns-at-home.com> <87sj8o5h9s.fsf@gmail.com> <20121105132410.GG10005@kuru.dyndns-at-home.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352133735 20152 80.91.229.3 (5 Nov 2012 16:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 16:42:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 17:42:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TVPkn-0002GU-87 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 17:42:25 +0100 Original-Received: from localhost ([::1]:48842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVPke-0007Nx-8E for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 11:42:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVPkV-0007NE-5F for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 11:42:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVPkN-0004Ra-9b for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 11:42:07 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:51026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVPkN-0004RI-1b for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 11:41:59 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MD000800WXGU900@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 18:41:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MD00089MX1XJU60@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 18:41:57 +0200 (IST) In-reply-to: <20121105132410.GG10005@kuru.dyndns-at-home.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87538 Archived-At: > 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 conversions.