Emacs Lisp: join-lines function

Emacs Lisp: join-lines function

When there is need to join the lines, this handy function helps me in editing those formatted and wrapped lines into one single joined line.

(defun join-lines ()
  "Joins lines of a paragraph of 100000 chars."
  (interactive)
  (let ((old fill-column)
    (new 100000))
    (setq fill-column 100000)
    (fill-paragraph nil)
    (setq fill-column old))
  (speak "Lines joined"))

Maybe this function exists in plain GNU Emacs, but I would not know nothing about it!

Related pages

Leave Your Comment or Contact GNU.Support

Contact GNU.Support now. There is a simple rule at GNU.Support: if we can help you, we do, whenever and wherever necessary, and it's the way we've been doing business since 2002, and the only way we know


Full name:


E-mail:


Message: