help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elisp - inserting block of text


From: Stefan Monnier
Subject: Re: elisp - inserting block of text
Date: Wed, 01 Dec 2010 11:13:52 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> What function(s) do I need to use in order to insert some text, please? 
> I know about 'insert', but am wondering how I would go about inserting
> line breaks, for example, when the buffer might contain a file with *n*x
> or DOS line endings, or even a mix of the two.

Line endings in Emacs buffers are always "unix style" (i.e. a single LF
char).  They get converted on the fly when saving the buffer to a file
(or when passing the buffer's content to a process), depending on the
coding-system used which specifies which kind of line-ending is desired.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]