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: Mon, 5 Nov 2012 15:05:05 +0100 Message-ID: <20121105140505.GH10005@kuru.dyndns-at-home.com> References: <20121105115709.GB10005@kuru.dyndns-at-home.com> <87sj8o5h9s.fsf@gmail.com> <20121105132410.GG10005@kuru.dyndns-at-home.com> <87pq3sgnii.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1352124334 25151 80.91.229.3 (5 Nov 2012 14:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 14:05:34 +0000 (UTC) Cc: Emacs help To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 15:05:44 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 1TVNJ9-0003RU-Ro for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 15:05:43 +0100 Original-Received: from localhost ([::1]:50962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVNJ0-0006tO-Vp for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 09:05:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVNIp-0006sn-MU for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 09:05:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVNIc-0006gV-8Q for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 09:05:23 -0500 Original-Received: from mail-ea0-f169.google.com ([209.85.215.169]:47350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVNIc-0006fK-2Q for help-gnu-emacs@gnu.org; Mon, 05 Nov 2012 09:05:10 -0500 Original-Received: by mail-ea0-f169.google.com with SMTP id k11so2710497eaa.0 for ; Mon, 05 Nov 2012 06:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=JkmDqwkMk2nTgOwTRdFBlHn2/DM3CCdNBeGUOnUntLo=; b=gjpjF4GwHFmYs3aFMSMwzHkslWvY9VVKIlJOe0Z0qBtdg1sB/4XOu4Tqv75dgB6vzQ jq+EUUvYnRQegqwaObbCaaBx8DcrUA3blJZfCT3PnwjhqMRGyC6Avf+Trt7r5zUVlFzN ccIC7Nn+24Q0VAjU98Lqb846/acNF6pkKbLvnmGgRBaY41eU0tPjKEodipnDQqEwMV2D +WUEfrLsm46alI3pjdMWcRT2x52t4vZWs0BClhCzbCywjuGH0Va6fIIQLxkKvANpveOu Rgx/8bFteQpDev6qVujdTkWGaUJfcNonsY3VdUj23u+RrJoRHWB5U6lutHtZPn9UfiuN Gp7w== Original-Received: by 10.14.175.71 with SMTP id y47mr36988317eel.36.1352124309068; Mon, 05 Nov 2012 06:05:09 -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 g5sm48337448eem.4.2012.11.05.06.05.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 06:05:08 -0800 (PST) Content-Disposition: inline In-Reply-To: <87pq3sgnii.fsf@gmail.com> 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:87537 Archived-At: On Mon, Nov 05, 2012 at 07:28:13PM +0530, Jambunathan K wrote: > Suvayu Ali 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.