unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Xue Fuqiao <xfq.free@gmail.com>, 14973@debbugs.gnu.org
Subject: bug#14973: Unfill for Emacs
Date: Sun, 28 Jul 2013 07:28:29 -0700 (PDT)	[thread overview]
Message-ID: <1f8050e2-42ce-44b8-a2fa-72b2d8e88254@default> (raw)
In-Reply-To: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@mail.gmail.com>

Just one terminology point: what you describe and implement is not
unfilling.  These are fill commands, not unfill commands.

Unfilling is the inverse of filling.  Unfilling undoes the last filling
operation on the same region or whatever.  It restores contiguous
whitespace chars that were collapsed, etc.

What you have instead might be called "join lines" or "remove line
breaks".  But even those names do not accurately characterize it, because
it also fills: it insists on the kind of whitespace separation imposed
by filling: no contiguous whitespace chars (except possibly indentation
and after sentence ends).

That does not mean that this could not be useful.  But we might not want
to falsely advertise what it does.

The best characterization of what this code does is "fill as one line".
(But even that assumes a line length less than `most-positive-fixnum'.)
And that is my suggestion:

 `fill-paragraph-as-one-line'
 `fill-region-as-one-line'





  reply	other threads:[~2013-07-28 14:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28  6:36 bug#14973: Unfill for Emacs Xue Fuqiao
2013-07-28 14:28 ` Drew Adams [this message]
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=1f8050e2-42ce-44b8-a2fa-72b2d8e88254@default \
    --to=drew.adams@oracle.com \
    --cc=14973@debbugs.gnu.org \
    --cc=xfq.free@gmail.com \
    /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).