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

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

Re: Filling a string?


From: Pascal J. Bourguignon
Subject: Re: Filling a string?
Date: Fri, 17 Jul 2015 09:26:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> so I want part of the buffer to have wrapped lines (preferably at word
> boundaries), and part to have not (like having toggle-truncate lines
> only for a region).  I suspect this is not possible, so my next bet is
> to have a filling function for a string (so that I can fill it before
> inserting into a buffer).  Is there anything like that in Emacs or
> should I just use a temp buffer and the built-in filling functions?

You can use set-justification-left et al. to insert newlines in paragraph (and 
refill a paragraph).

You can use set-justification-left et al. to insert newlines in
paragraph (and refill a paragraph).

So you can have both kind of paragraphs in the same buffer.

You can reset the justification after inserting the string in the
buffer.  If you do that by program, you may use the set-justification
function.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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