I am looking for a Emacs function that does sort of the opposite of the fill-paragraph function. I would like something that takes a paragraph and makes it into a single line. For the purpose of this post, a paragraph is any block of text ending with two consecutive carriage returns.
I am quite the neophyte when it comes to elisp, however, I started writing my own function. I was able to set variables to the start and end position of the "paragraph". I would like to replace all carriage returns with spaces within this region. I would like to know if Emacs already has a range enabled replace function, or will I also have to write a function for that? I thought about writing search but I don't know how to repeat the search I am a long-time Python programmer, but the loops in lisp totally baffling to me.
Any help would be appreciated.
Example Curser at the point *
Code:
*This is
my example
paragraph one.
This is
my example
paragraph two.
execute function
Code:
*This is my example paragraph one.
This is
my example
paragraph two.
GoogleWords: neophyte
LocalWords: elisp