[Top][All Lists]

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

Re: fill-paragraph from elisp

From: Eike Kettner
Subject: Re: fill-paragraph from elisp
Date: Sat, 11 Oct 2014 21:52:01 +0200

Thanks for your answer! I just found out, that I completely missed the
`fill-region' function… I read the doc-string of `fill-paragraph'
multiple times and yet, I managed to ignore it.

It turns out that (fill-region start end) is what I want.

I'm sorry for the noise and confusion.


Drew Adams writes:

>> (let ((beg (point)))
>>   (insert descr)
>>   (set-mark beg)
>>   (fill-paragraph nil t)
>>   (set-mark nil))
>> What is the idiomatic way to achieve this?
> Use `narrow-to-region' to operate on the text between two positions.

gpg: AD7AC35E
finger print: 137F BB0B 1639 D25F DC5D  E59C B412 C5F5 AD7A C35E

reply via email to

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