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

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

Re: How to use function `insert' with wrapping?


From: Jean Louis
Subject: Re: How to use function `insert' with wrapping?
Date: Sat, 12 Jun 2021 21:17:04 +0300
User-agent: Mutt/2.0.7+183 (3d24855) (2021-05-28)

* Eli Zaretskii <eliz@gnu.org> [2021-06-12 21:03]:
> > Date: Sat, 12 Jun 2021 20:55:31 +0300
> > From: Jean Louis <bugs@gnu.support>
> > 
> > I would like to use the function `insert' so that it wraps at expected
> > `fill-column' is that possible?
> 
> No.  'insert' just inserts the text in the buffer.
> 
> What you need is call fill-region or fill-region-as-paragraph after
> the insertion.

Aha, that is it.

I was using this:

(when (> (current-column) 70) (insert "\n")))))



reply via email to

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