GNU bug report logs - #14973
Unfill for Emacs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Xue Fuqiao <xfq.free@HIDDEN>; dated Sun, 28 Jul 2013 06:37:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 14973 <at> debbugs.gnu.org:


Received: (at 14973) by debbugs.gnu.org; 28 Jul 2013 18:31:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 14:31:40 2013
Received: from localhost ([127.0.0.1]:54722 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3Vkp-0005v7-N8
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 14:31:39 -0400
Received: from mail-qc0-f171.google.com ([209.85.216.171]:36688)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jlf@HIDDEN>) id 1V3Vko-0005uh-2v
 for 14973 <at> debbugs.gnu.org; Sun, 28 Jul 2013 14:31:38 -0400
Received: by mail-qc0-f171.google.com with SMTP id n1so2495996qcw.30
 for <14973 <at> debbugs.gnu.org>; Sun, 28 Jul 2013 11:31:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=google.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:from:date
 :x-google-sender-auth:message-id:subject:to:cc:content-type
 :x-gm-message-state;
 bh=YprKf2+jm4RPDR+PPbh/xfUJ86ivI+3PxQo+0MOyQBQ=;
 b=crqVapigO945Lisji8H6u9rybxyI0rGqWCc6dwjyG/+cNB2oFYijRVk5DYRUJKwReE
 waLyMkxuTX/TBSVnocne4vyGfQpgOcaPvU7M4gkW2Xd5Jl0I/6X3jizNrOxpr12K/SpB
 MG4BbI/756SAS/hmyNhAx6tS22RGHapyd0JLgVtmaQtLfvx7RNk1D5ktqt3sfhzc1PUQ
 /CIHrCmjr0leMZZQxcCHqF8vv49wvh5XhPNnElvcaLDa65SBBjBv0FAykmT65Uf3CTRA
 y4aoi61sif1PksFbSMu9vz90fLExi1tgZRAUs3aq88WRBM35ouGz29yvvQ1s/nOiXdwR
 r2TQ==
X-Received: by 10.224.22.195 with SMTP id o3mr40252027qab.90.1375036292317;
 Sun, 28 Jul 2013 11:31:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.49.38.162 with HTTP; Sun, 28 Jul 2013 11:31:02 -0700 (PDT)
In-Reply-To: <877ggay60s.fsf@HIDDEN>
References: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
 <834nbezqex.fsf@HIDDEN> <f31686af-8834-4e2d-b896-78aa5a2b7b8a@default>
 <877ggay60s.fsf@HIDDEN>
From: Josh <josh@HIDDEN>
Date: Sun, 28 Jul 2013 11:31:02 -0700
X-Google-Sender-Auth: ecq4ZukqFQfv7owceLy_VVuPcow
Message-ID: <CANdFEAF-ueyyckXXhgNG2OE9Z1_hs36BCEo6RnusD6YQOnyLVQ@HIDDEN>
Subject: Re: bug#14973: Unfill for Emacs
To: Jambunathan K <kjambunathan@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQkbUUPezl1MFQD/TFq4tfvv8VCPAwCkI/FivUT+riNVwaAMLvsr7wxMoSdt67/l3Rv5UmKC
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 14973
Cc: Xue Fuqiao <xfq.free@HIDDEN>, 14973 <at> debbugs.gnu.org,
 Drew Adams <drew.adams@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On Sun, Jul 28, 2013 at 9:59 AM, Jambunathan K <kjambunathan@HIDDEN> wrote:
>
>>> You need a special command to replace one character by another?
>
> This is what I use for deleting newlines and thus create "long" lines.
> Seem to work well for me.
>
> ,----
> | M-^ runs the command delete-indentation, which is an interactive
> | compiled Lisp function in `simple.el'.
> |
> | It is bound to M-^.
> |
> | (delete-indentation &optional ARG)
> |
> | Join this line to previous and fix up whitespace at join.
> | If there is a fill prefix, delete it from the beginning of this line.
> | With argument, join this line to following line.
> `----

Perhaps it would make sense to extend delete-indentation to apply to
active regions in the same way as commands like replace-string,
whitespace-cleanup, etc.  This could make "unfilling" a paragraph as
simple as M-h M-^, perhaps with an intervening C-n to move point to
the desired position.  Alternatively, a bare negative prefix argument
(M-- M-^) could trigger that behavior without need of an active
region.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.

Message received at 14973 <at> debbugs.gnu.org:


Received: (at 14973) by debbugs.gnu.org; 28 Jul 2013 16:58:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 12:58:13 2013
Received: from localhost ([127.0.0.1]:54618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3UIO-0001oL-Ue
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 12:58:13 -0400
Received: from mail-pa0-f41.google.com ([209.85.220.41]:48881)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <kjambunathan@HIDDEN>) id 1V3UIL-0001ny-B2
 for 14973 <at> debbugs.gnu.org; Sun, 28 Jul 2013 12:58:10 -0400
Received: by mail-pa0-f41.google.com with SMTP id bj1so3385077pad.14
 for <14973 <at> debbugs.gnu.org>; Sun, 28 Jul 2013 09:58:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=OxLnDkpGY7G96YFfo8R9Kvv9GA1XZX1Uv/DNLl1f9uY=;
 b=mU0gzdem9R2cD+GdMu+DGgQCPkiYhQEyUjyBfmTBFBocg9/dxYznUd2UGkmdc/Xh0e
 Apvt1ktpvK7O9YVkZ8TB4RW1Fj7sSjPVcTpPyZhtueLR8r2QLzdBGaNpWd/vsbZRRBSm
 i9OjZpRBQRg4IcdTc+E/RVMifAYfLU0pJMsBQ+q/mdbze/ZHkhWxAHNGXaxqsBisiGGX
 8nwdvm2RyP9H6004r/nJ/UAjXLt3+fElixO0jO8NdwPo8gg+msu08uDq/xaAsinae51j
 y2tkyvFnRJi5SndfN+ycdzWkU3JjQzTNHPQFmSLnCO5sicUxNiHDLFmN+v8QwY+S9x7Q
 sAQQ==
X-Received: by 10.68.227.65 with SMTP id ry1mr63135747pbc.147.1375030683087;
 Sun, 28 Jul 2013 09:58:03 -0700 (PDT)
Received: from debian-6.05 ([115.241.106.158])
 by mx.google.com with ESMTPSA id qg10sm72147270pbb.2.2013.07.28.09.57.59
 for <multiple recipients>
 (version=TLSv1.1 cipher=RC4-SHA bits=128/128);
 Sun, 28 Jul 2013 09:58:02 -0700 (PDT)
From: Jambunathan K <kjambunathan@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#14973: Unfill for Emacs
References: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>>
 <834nbezqex.fsf@HIDDEN>>
 <f31686af-8834-4e2d-b896-78aa5a2b7b8a@default>
Date: Sun, 28 Jul 2013 22:29:47 +0530
In-Reply-To: <f31686af-8834-4e2d-b896-78aa5a2b7b8a@default> (Drew Adams's
 message of "Sun, 28 Jul 2013 08:06:44 -0700 (PDT)")
Message-ID: <877ggay60s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 14973
Cc: Xue Fuqiao <xfq.free@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 14973 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


>> You need a special command to replace one character by another?

This is what I use for deleting newlines and thus create "long" lines.
Seem to work well for me.

,----
| M-^ runs the command delete-indentation, which is an interactive
| compiled Lisp function in `simple.el'.
| 
| It is bound to M-^.
| 
| (delete-indentation &optional ARG)
| 
| Join this line to previous and fix up whitespace at join.
| If there is a fill prefix, delete it from the beginning of this line.
| With argument, join this line to following line.
`----





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jul 2013 15:15:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 11:15:04 2013
Received: from localhost ([127.0.0.1]:54525 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3Sga-0006cM-Mm
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 11:15:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55628)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <christopher@HIDDEN>) id 1V3SgX-0006ba-Bx
 for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 11:15:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <christopher@HIDDEN>) id 1V3SgO-0006YE-PB
 for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 11:14:56 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60772)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <christopher@HIDDEN>) id 1V3SgO-0006YA-M3
 for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 11:14:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57332)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <christopher@HIDDEN>) id 1V3SgM-00010x-5m
 for bug-gnu-emacs@HIDDEN; Sun, 28 Jul 2013 11:14:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <christopher@HIDDEN>) id 1V3SgJ-0006Xi-MU
 for bug-gnu-emacs@HIDDEN; Sun, 28 Jul 2013 11:14:50 -0400
Received: from [2a02:2498:e000:20::61:2] (port=57987
 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <christopher@HIDDEN>) id 1V3SgJ-0006UK-EB
 for bug-gnu-emacs@HIDDEN; Sun, 28 Jul 2013 11:14:47 -0400
Received: by saturn.ch.ristopher.com (Postfix, from userid 0)
 id A5F7A203E4; Sun, 28 Jul 2013 16:14:44 +0100 (BST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com;
 s=mail; t=1375024484;
 bh=Zv2fA/TgAHszBzLTnvvGaL+34v3G8DZ76mkBczqHwMQ=;
 h=From:To:Subject:In-Reply-To:Message-ID:References:MIME-Version:
 Content-Type:Date;
 b=F+3Lw9PK1ATvQJPzAt/xk1wNTSgX0IqdwlXaWMfLrIIGkGbN5qOvjLuD5xXmNuxmE
 rtjpmqF5SL5Szu6MVsHghIRWPp0khvUFdR86lB0Wzq227DPY9HiorBNpMjOQfjPEFR
 1tFhkdGiFpN3Q5dY2tGw7iaddkmPregGGt90Gmdo=
From: Christopher Schmidt <christopher@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Re: bug#14973: Unfill for Emacs
In-Reply-To: <834nbezqex.fsf@HIDDEN> (Eli Zaretskii's message of "Sun,
 28 Jul 2013 17:53:58 +0300")
Message-ID: <87ppu24sy3@HIDDEN>
References: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
 <834nbezqex.fsf@HIDDEN>
Mail-Followup-To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain
Date: Sun, 28 Jul 2013 16:14:44 +0100 (BST)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:
> You need a special command to replace one character by another?

The command does more than that, e.g. it honours
sentence-end-double-space.

I do not think there is any need to add this command to vanilla Emacs.
Just use set-fill-column (C-x f).

        Christopher




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.

Message received at 14973 <at> debbugs.gnu.org:


Received: (at 14973) by debbugs.gnu.org; 28 Jul 2013 15:06:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 11:06:57 2013
Received: from localhost ([127.0.0.1]:54516 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3SYi-0006Ic-FQ
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 11:06:56 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:24485)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1V3SYf-0006ID-UC
 for 14973 <at> debbugs.gnu.org; Sun, 28 Jul 2013 11:06:54 -0400
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
 by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6SF6lPM006386
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Sun, 28 Jul 2013 15:06:48 GMT
Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230])
 by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6SF6kjX027443
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Sun, 28 Jul 2013 15:06:47 GMT
Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59])
 by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6SF6k9M001636;
 Sun, 28 Jul 2013 15:06:46 GMT
MIME-Version: 1.0
Message-ID: <f31686af-8834-4e2d-b896-78aa5a2b7b8a@default>
Date: Sun, 28 Jul 2013 08:06:44 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Xue Fuqiao <xfq.free@HIDDEN>
Subject: RE: bug#14973: Unfill for Emacs
References: <<CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>>
 <<834nbezqex.fsf@HIDDEN>>
In-Reply-To: <<834nbezqex.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: 14973
Cc: 14973 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

> > 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.
>=20
> You need a special command to replace one character by another?

A user might not *need* that, provided s?he were knowledgeable wrt
replacement commands or wrt Lisp.  But a user might *want* that.

The question is whether such commands should be added to Emacs, as a
convenience.  I have no opinion about that.  But if they are added then
I would prefer that the command names reflect better what the commands do
(see my previous comment).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.

Message received at 14973 <at> debbugs.gnu.org:


Received: (at 14973) by debbugs.gnu.org; 28 Jul 2013 14:54:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 10:54:22 2013
Received: from localhost ([127.0.0.1]:54507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3SMY-0005pc-1K
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 10:54:22 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:37591)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1V3SMS-0005pF-Lp
 for 14973 <at> debbugs.gnu.org; Sun, 28 Jul 2013 10:54:18 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0MQN00J00IOSMM00@HIDDEN> for 14973 <at> debbugs.gnu.org;
 Sun, 28 Jul 2013 17:53:53 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MQN00JS6IPTCF80@HIDDEN>;
 Sun, 28 Jul 2013 17:53:53 +0300 (IDT)
Date: Sun, 28 Jul 2013 17:53:58 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14973: Unfill for Emacs
In-reply-to: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Xue Fuqiao <xfq.free@HIDDEN>
Message-id: <834nbezqex.fsf@HIDDEN>
References: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14973
Cc: 14973 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Sun, 28 Jul 2013 14:36:05 +0800
> From: Xue Fuqiao <xfq.free@HIDDEN>
> 
> 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)))

You need a special command to replace one character by another?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.

Message received at 14973 <at> debbugs.gnu.org:


Received: (at 14973) by debbugs.gnu.org; 28 Jul 2013 14:28:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 10:28:41 2013
Received: from localhost ([127.0.0.1]:54448 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3Rxh-0004mq-4W
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 10:28:41 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:20849)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1V3Rxe-0004ma-NS
 for 14973 <at> debbugs.gnu.org; Sun, 28 Jul 2013 10:28:39 -0400
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
 by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6SESWo6019660
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Sun, 28 Jul 2013 14:28:32 GMT
Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230])
 by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6SESVDI002622
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Sun, 28 Jul 2013 14:28:32 GMT
Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59])
 by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6SESV9N005772;
 Sun, 28 Jul 2013 14:28:31 GMT
MIME-Version: 1.0
Message-ID: <1f8050e2-42ce-44b8-a2fa-72b2d8e88254@default>
Date: Sun, 28 Jul 2013 07:28:29 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Xue Fuqiao <xfq.free@HIDDEN>, 14973 <at> debbugs.gnu.org
Subject: RE: bug#14973: Unfill for Emacs
References: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
In-Reply-To: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: 14973
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

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'




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jul 2013 06:36:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 28 02:36:17 2013
Received: from localhost ([127.0.0.1]:53853 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3KaW-0002Pe-Nh
	for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 02:36:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42669)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <xfq.free@HIDDEN>) id 1V3KaU-0002PA-Dp
 for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 02:36:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <xfq.free@HIDDEN>) id 1V3KaO-0003sS-Ai
 for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 02:36:09 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37664)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <xfq.free@HIDDEN>) id 1V3KaO-0003sB-7t
 for submit <at> debbugs.gnu.org; Sun, 28 Jul 2013 02:36:08 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44390)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <xfq.free@HIDDEN>) id 1V3KaN-0002go-A5
 for bug-gnu-emacs@HIDDEN; Sun, 28 Jul 2013 02:36:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <xfq.free@HIDDEN>) id 1V3KaM-0003rk-Bo
 for bug-gnu-emacs@HIDDEN; Sun, 28 Jul 2013 02:36:07 -0400
Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:57599)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <xfq.free@HIDDEN>) id 1V3KaM-0003rg-6x
 for bug-gnu-emacs@HIDDEN; Sun, 28 Jul 2013 02:36:06 -0400
Received: by mail-ob0-f174.google.com with SMTP id wd6so3972748obb.19
 for <bug-gnu-emacs@HIDDEN>; Sat, 27 Jul 2013 23:36:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=g1hQZQXpz31Kb6HuRJDDRo6VA++YYO+42pIEStZOH14=;
 b=ufWpRKE5FPd6Cu8yZj08/Imnn58hPOy7Z3sQHTOQBUjaFRz8v9RHH6Yl2tdFFv0RiO
 6TR0n5lKUJbrs9iDJmSqbKBjq0IpNnOd+ge/YZ6JLs8Aas4+ZvB9Tvg04RU0b0M6GUiy
 VRED4bwcOFGweDY2yZSwctJM0CyMtl+49wzCmMsIoTX5gvrpSN+lmdYaSAqNaf2v7u93
 +lkj4wM+91wXg3zDn+1BaRCVeV27I6MVIIxLhbg5bE5scfBEGx2UQnfJ3Lun4kb33JmH
 2bZe9KyKLSMyeQ63/lLALsY0ODYLF+s0++UXUGoocz/D/De6agdnB//xzL0zUvjLOcwJ
 TvSg==
MIME-Version: 1.0
X-Received: by 10.43.152.210 with SMTP id kx18mr20936991icc.39.1374993365201; 
 Sat, 27 Jul 2013 23:36:05 -0700 (PDT)
Received: by 10.42.28.3 with HTTP; Sat, 27 Jul 2013 23:36:05 -0700 (PDT)
Date: Sun, 28 Jul 2013 14:36:05 +0800
Message-ID: <CAAF+z6G7rJzqONuZa5Aat9eK5hGUcM3TGrt7mKon8uzMa3FWkg@HIDDEN>
Subject: Unfill for Emacs
From: Xue Fuqiao <xfq.free@HIDDEN>
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

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/




Acknowledgement sent to Xue Fuqiao <xfq.free@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14973; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.