From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: How to change line endings - where is it explained?
Date: Sun, 14 May 2006 23:29:23 +0300 [thread overview]
Message-ID: <uejyw4afw.fsf@gnu.org> (raw)
In-Reply-To: <44679068.20404@student.lu.se> (message from Lennart Borgman on Sun, 14 May 2006 22:17:44 +0200)
> Date: Sun, 14 May 2006 22:17:44 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> CC: emacs-devel@gnu.org
>
> >> - 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.
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.
> In "(emacs) Visiting" the term for
> line endings is "convention it uses to separate lines". Could perhaps
> "(line endings)" be added right after this? :
I actually dislike the term "line endings"; "end-of-line format" is a
better term, IMO.
> >> - "(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
??? 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.)
`...-dos'
Assume the file uses carriage-return linefeed to separate lines,
and do the appropriate conversion. (This is the convention
normally used on Microsoft systems.(2))
`...-mac'
Assume the file uses carriage-return to separate lines, and do the
appropriate conversion. (This is the convention normally used on
the Macintosh system.)
These variant coding systems are omitted from the
`list-coding-systems' display for brevity, since they are entirely
predictable. For example, the coding system `iso-latin-1' has variants
`iso-latin-1-unix', `iso-latin-1-dos' and `iso-latin-1-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?
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 <RET> f dos <RET>' will cause Emacs
to save the current buffer's text with DOS-style CRLF line endings.
next prev parent reply other threads:[~2006-05-14 20:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-08 22:45 How to change line endings - where is it explained? Lennart Borgman
2006-05-09 3:45 ` Eli Zaretskii
2006-05-09 5:48 ` Lennart Borgman
2006-05-12 17:57 ` Eli Zaretskii
2006-05-14 20:17 ` Lennart Borgman
2006-05-14 20:29 ` Eli Zaretskii [this message]
2006-05-14 21:00 ` Lennart Borgman
2006-05-15 3:14 ` Eli Zaretskii
2006-05-15 20:37 ` Richard Stallman
2006-05-09 5:51 ` Lennart Borgman
2006-05-09 19:35 ` Eli Zaretskii
2006-05-09 19:41 ` Lennart Borgman
2006-05-09 22:04 ` Luc Teirlinck
2006-05-10 3:36 ` Eli Zaretskii
2006-05-10 5:49 ` Lennart Borgman
2006-05-11 3:44 ` Richard Stallman
2006-05-11 18:29 ` Eli Zaretskii
2006-05-12 14:34 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uejyw4afw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).