[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14973: Unfill for Emacs
From: |
Xue Fuqiao |
Subject: |
bug#14973: Unfill for Emacs |
Date: |
Sun, 28 Jul 2013 14:36:05 +0800 |
tags patch
There are fill-{paragraph, column}, but I didn't find an unfill command,
can we add them (maybe in fill.el)?
(defun unfill-paragraph ()
"Replace newline characters in current paragraph by single spaces.
This command does the inverse of `fill-paragraph'."
(interactive)
(let ((fill-column most-positive-fixnum))
(fill-paragraph nil)))
(defun unfill-region (beg end)
"Replace newline characters in region by single spaces.
If called non-interactively, BEG and END are the beginning and end of
the text to unfill.
This command does the inverse of `fill-region'."
(interactive "r")
(let ((fill-column most-positive-fixnum))
(fill-region beg end)))
--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/
- bug#14973: Unfill for Emacs,
Xue Fuqiao <=