Here is what I want:
(fill-string ";; This is a long string to be inserted into a buffer somewhere. Okay that's it.")
This should insert line breaks according to the fill-column
. Something like this should be returned,
;; This is a long string to
;; be inserted into a buffer
;; somewhere. Okay that's it.
This can be done interactively if the string is in the buffer and you select it and call M-x fill-region
but I can't find a way of doing this programmatically.