unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14973: Unfill for Emacs
@ 2013-07-28  6:36 Xue Fuqiao
  2013-07-28 14:28 ` Drew Adams
  2013-07-28 14:53 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Xue Fuqiao @ 2013-07-28  6:36 UTC (permalink / raw)
  To: 14973

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/





^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <<CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@mail.gmail.com>]

end of thread, other threads:[~2022-01-26 17:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-28  6:36 bug#14973: Unfill for Emacs Xue Fuqiao
2013-07-28 14:28 ` 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

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).