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

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

RE: fill-paragraph from elisp


From: Drew Adams
Subject: RE: fill-paragraph from elisp
Date: Sat, 11 Oct 2014 12:15:57 -0700 (PDT)

> (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.



reply via email to

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