I think your original solution is much better: Use the standard fill-* commands with a large value for fill-column (I use most-positive-fixnum). fill-region handles paragraphs just fine, and you also get the other benefits (such as comments being automatically reformatted).
– Anonymous 2015-11-14 13:52 UTC
In my use case, I don’t have any comments anyway, and the fill-*
commands seemed like an overkill. But maybe you’re right, and I just fell prey to the NIH syndrome…
– Marcin Borkowski 2015-11-14 15:04 UTC
How is this different from the `unfill` package? https://github.com/purcell/unfill
– Anonymous 2015-11-17 20:07 UTC
Well, I didn’t study that code (I didn’t even know it existed), so it may be the case that the one you linked is better. However, my one has one advantage over Steve’s one: since I needed this for a package and not really for interactive use, I did not have to have yet another dependency.
– Marcin Borkowski 2015-11-17 21:30 UTC