Function: longlines-decode-region

longlines-decode-region is a byte-compiled function defined in longlines.el.gz.

Signature

(longlines-decode-region &optional BEG END)

Documentation

Turn all newlines between BEG and END into hard newlines.

If BEG and END are nil, the point and mark are used.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/longlines.el.gz
(defun longlines-decode-region (&optional beg end)
  "Turn all newlines between BEG and END into hard newlines.
If BEG and END are nil, the point and mark are used."
  (if (null beg) (setq beg (point)))
  (if (null end) (setq end (mark t)))
  (save-excursion
    (let ((reg-max (max beg end)))
      (goto-char (min beg end))
      (while (search-forward "\n" reg-max t)
	(set-hard-newline-properties
	 (match-beginning 0) (match-end 0))))))