GNU bug report logs -
#14973
Unfill for Emacs
Previous Next
Reported by: Xue Fuqiao <xfq.free <at> gmail.com>
Date: Sun, 28 Jul 2013 06:37:01 UTC
Severity: wishlist
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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/
This bug report was last modified 3 years and 177 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.