From: Xue Fuqiao <xfq.free@gmail.com>
To: 14973@debbugs.gnu.org
Subject: bug#14973: Unfill for Emacs
Date: Sun, 28 Jul 2013 14:36:05 +0800 [thread overview]
Message-ID: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@mail.gmail.com> (raw)
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/
next reply other threads:[~2013-07-28 6:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-28 6:36 Xue Fuqiao [this message]
2013-07-28 14:28 ` bug#14973: Unfill for Emacs Drew Adams
2013-07-28 14:53 ` Eli Zaretskii
2013-07-28 15:14 ` Christopher Schmidt
[not found] <<CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@mail.gmail.com>
[not found] ` <<834nbezqex.fsf@gnu.org>
2013-07-28 15:06 ` Drew Adams
2013-07-28 16:59 ` Jambunathan K
2013-07-28 18:31 ` Josh
2022-01-26 17:25 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@mail.gmail.com \
--to=xfq.free@gmail.com \
--cc=14973@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).