I've fixed a bug in remove-line-boundary-in-region. The problem was that the removal went one line too far. This is fixed. Plus, I commented the code.
(defun remove-line-boundary-in-region (beginning end)
"Collapses all the lines in the specified region into a single line."
(interactive "r")
(save-excursion
(goto-char beginning)
(goto-char (point-at-bol))
(insert "n")
(let ((beg (point)))
(goto-char end)
(while (>= (point) beg)
(delete-indentation)))))
8:47:24 AM
|