From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: How to change line endings - where is it explained? Date: Sun, 14 May 2006 22:17:44 +0200 Message-ID: <44679068.20404@student.lu.se> References: <445FCA20.60204@student.lu.se> <44602D3B.3000309@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147637887 25335 80.91.229.2 (14 May 2006 20:18:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 20:18:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 22:18:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfN2S-0005WB-HA for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 22:18:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfN2R-0005Jh-Sg for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 16:18:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfN2G-0005JS-39 for emacs-devel@gnu.org; Sun, 14 May 2006 16:17:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfN2D-0005Iu-Bd for emacs-devel@gnu.org; Sun, 14 May 2006 16:17:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfN2D-0005Ip-77 for emacs-devel@gnu.org; Sun, 14 May 2006 16:17:49 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfN4S-0000pl-GX; Sun, 14 May 2006 16:20:08 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.072.1) id 44609CD60016EE1E; Sun, 14 May 2006 22:17:46 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: Eli Zaretskii In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54458 Archived-At: Eli Zaretskii wrote: >> Date: Tue, 09 May 2006 07:48:43 +0200 >> From: Lennart Borgman >> CC: emacs-devel@gnu.org >> >> >>> Yes, it is described in the node "Text and Binray". >>> >>> What did you try to look for it? Perhaps we need to improve the >>> indexing. >>> >>> >> Thanks, yes I wonder why I missed that. A couple of small things perhaps: >> >> - The name of the node is a bit "C style". >> - I looked for "line endings". >> - I looked for "line end conversion". >> - I actually also searched for CRLF, but possibly only in the elisp >> manual since I wanted to do the conversion in code. >> - I was thinking about coding systems, but somehow I missed that you >> could use just 'unix or 'dos for the coding system in some operations. >> - I looked at the node "(emacs) Files" which says it tells everything >> about files. >> - I looked at `buffer-file-coding-system' etc. >> > > I added some index entries that should make this search easier. > Thanks for the index entries and for adding CRLF in a relevant place in the elisp manual. > >> - Something about line endings too in "(emacs) Files", possibly in >> connection with the link above. >> > > Ditto: "Visiting" already talks about EOLs. > Oh, I found it! But I did not see it before. The reason is that I am nearly always searching, not reading. In "(emacs) Visiting" the term for line endings is "convention it uses to separate lines". Could perhaps "(line endings)" be added right after this? : convention it uses to separate lines (line endings) -- newline (used on ... > >> - "(emacs) Coding Systems" should mention 'dos, 'unix and 'mac. >> > > It already does, please take a closer look. > I just checked out a fresh copy from CVS and I am afraid I still can not find anything about the use of just 'dos, 'unix and 'mac like in M-x set-buffer-file-coding-system RET unix RET As I understand it this changes just the line endings to unix style (LF). Would it not be good to mention this feature? > >> - "(elisp) Files" should mention line endings. >> > > I added the references to code and EOL conversions to the appropriate > sections of files.texi. > Thanks.