I created a keyboard macro to join lines in a buffer using:
F3 C-n M-x
join-line RET F4.
It works fine, except when lines get too long and start to wrap – which makes this macro dependent on the width of the frame.
next-line doesn’t seem to go to the next actual line, but to the “wrapping” part of the current line.
How to get around that issue?