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 23:00:53 +0200 Message-ID: <44679A85.2030607@student.lu.se> References: <445FCA20.60204@student.lu.se> <44602D3B.3000309@student.lu.se> <44679068.20404@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 1147640475 32227 80.91.229.2 (14 May 2006 21:01:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 21:01:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 23:01:11 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 1FfNiB-000396-0I for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 23:01:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfNiA-00069E-7O for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 17:01:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfNhy-000677-8D for emacs-devel@gnu.org; Sun, 14 May 2006 17:00:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfNhw-00062s-6c for emacs-devel@gnu.org; Sun, 14 May 2006 17:00:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfNhw-00062g-06 for emacs-devel@gnu.org; Sun, 14 May 2006 17:00:56 -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 1FfNkB-0006fJ-HR; Sun, 14 May 2006 17:03:15 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.072.1) id 44609CD60017117C; Sun, 14 May 2006 23:00:54 +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:54464 Archived-At: Eli Zaretskii wrote: >> Oh, I found it! But I did not see it before. The reason is that I am >> nearly always searching, not reading. >> > > That is almost certainly not the right way to use the manual. > Searching is a vehicle of getting to the right node, but once you are > already there, you should read it in its entirety. > Maybe it is a little bit a matter of cognitive style? It is really hard to organize a big text like Emacs manual and I tend to think that maybe I am not in the right node and then I continue searching. Sometimes this is the best approach I believe and sometimes not. This time it was certainly not the best strategy I was using, you are right in that. It might well be that most people doing some programming tend to have a cognitive style that is more consistent with the reading style you suggest. > I actually dislike the term "line endings"; "end-of-line format" is a > better term, IMO. > If you dislike that term I suppose that there are more native English speaking people that does that. But there is one drawback with the term "end-of-line format" and that is that there is a function with that name. It makes searching a little bit harder, perhaps. However I would be glad if one term was use consistently in the manual. That makes my way of reading the manual (=searching) quite a bit more easy. > ??? How can that be? Are we talking about the same thing here? > Here's the fragment I had in mind: > > Each of the listed coding systems has three variants which specify > exactly what to do for end-of-line conversion: > > `...-unix' > Don't do any end-of-line conversion; assume the file uses newline > to separate lines. (This is the convention normally used on Unix > and GNU systems.) > ... >> 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? >> > > Ah, you mean this paragraph (from "Text Coding"): > > You can also use this command to specify the end-of-line conversion > (*note end-of-line conversion: Coding Systems.) for encoding the > current buffer. For example, `C-x f dos ' will cause Emacs > to save the current buffer's text with DOS-style CRLF line endings. > Yes, that is more in line with what I was searching for. And looked for in the node "(emacs) Coding Systems". To summarize: What I would have found most useful would have been one consistent term for "line endings"/"end-of-line conversions"/"end-of-line type" since this makes searching easier. Thanks for taking time with this. It cleared my thoughts a bit.