From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Changing file end-of-line style Date: Tue, 6 Nov 2012 17:48:01 +0100 Message-ID: <20121106164801.GD20216@kuru.dyndns-at-home.com> References: <20121105115709.GB10005@kuru.dyndns-at-home.com> <87sj8o5h9s.fsf@gmail.com> <20121105132410.GG10005@kuru.dyndns-at-home.com> <831ug83str.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1352220499 6940 80.91.229.3 (6 Nov 2012 16:48:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2012 16:48:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 06 17:48:29 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 1TVmKC-0003gr-4W for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Nov 2012 17:48:28 +0100 Original-Received: from localhost ([::1]:46092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmK3-0001Wl-9i for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Nov 2012 11:48:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmJt-0001Vj-Vk for help-gnu-emacs@gnu.org; Tue, 06 Nov 2012 11:48:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVmJp-00038H-RB for help-gnu-emacs@gnu.org; Tue, 06 Nov 2012 11:48:09 -0500 Original-Received: from mail-ea0-f169.google.com ([209.85.215.169]:59129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmJp-00037o-Kv for help-gnu-emacs@gnu.org; Tue, 06 Nov 2012 11:48:05 -0500 Original-Received: by mail-ea0-f169.google.com with SMTP id k11so315762eaa.0 for ; Tue, 06 Nov 2012 08:48:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ode80T/WgEz6u9ia/dZLFdM0WFy8dkPJr2JELyEhd+8=; b=nJxmBk0i016/OhH+EL12bqXVrP6wGWJa0f4ogfvh7qPkr9VIHDqS+TfalItkDl84Rw Ewz22xBafntNUsQTSInozuCQNImxLrLxaLbxdugdtklgC67qVbHFX2Ok3dDqQJ7nKRvC k9EMCoxt1htLyswAlr+puRk4jWcIKY0Ws/cFS6kxHt4sON2JSHn9yRTEVSI/I0xowiAS 3mGIyFm49zw9s1z2woJp9AzWsaHtOt9f49mCKAmOOvuHTDaiOT+fGx5dFNKRjM0OA/gm 2EBKBTqPbOmVK9AV53qCdChcveDvmnyfukURriLV6pkCJ8b/sqQmoJMYOXsL23v50Kfb s/Tg== Original-Received: by 10.14.216.193 with SMTP id g41mr5175424eep.37.1352220484640; Tue, 06 Nov 2012 08:48:04 -0800 (PST) Original-Received: from kuru.dyndns-at-home.com (pb-d-128-141-52-183.cern.ch. [128.141.52.183]) by mx.google.com with ESMTPS id e1sm57260396eem.3.2012.11.06.08.48.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 08:48:03 -0800 (PST) Content-Disposition: inline In-Reply-To: <831ug83str.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2011-07-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.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:87549 Archived-At: 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 > > 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. > Thanks a lot for clearing my confusion. Obviously I need to read more. :) -- Suvayu Open source is the future. It sets us free.