From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: fill-paragraph with pre and postfix Date: Tue, 11 Nov 2014 19:26:46 +1100 Message-ID: <87sihq6s3v.fsf@gmail.com> References: <87fvdxvpq0.fsf@gmail.com> <877fz9ugu1.fsf@gmail.com> <87vbmmr337.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415695714 9780 80.91.229.3 (11 Nov 2014 08:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 08:48:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 09:48:28 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xo77j-0003dX-3B for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 09:48:27 +0100 Original-Received: from localhost ([::1]:47423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo77i-0003dZ-Oo for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 03:48:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo77P-0003bg-Ly for help-gnu-emacs@gnu.org; Tue, 11 Nov 2014 03:48:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xo77F-0005yE-HB for help-gnu-emacs@gnu.org; Tue, 11 Nov 2014 03:48:07 -0500 Original-Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:53280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo77F-0005y2-2k for help-gnu-emacs@gnu.org; Tue, 11 Nov 2014 03:47:57 -0500 Original-Received: by mail-pd0-f181.google.com with SMTP id y10so9711016pdj.40 for ; Tue, 11 Nov 2014 00:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=3Q545wLFJDze4f7fCB15Zm/JeRPddDSMCZLhAWe/aJA=; b=ttfBJY7ywIj0cAJ6sW+Zyqp6juZM0hErl/w/t+DC1fjoso+i2z953zNFxOY4VwnXZ/ zZ/4vWGkN23Tp8WQDEQNBc+opf7im+F10U/thuhdb1O4cVokBrVITf+tLnvIGDoON4+1 K/9W6XIKcwOB8x0Eok/6yZsIRxu3YphGb1WgKf0z9BjrFZb9hsUA8eZ7vo/3o+jwcz3n pQtFY6K3XCg003Nrs/5uoOdogrceYB8UIJPqmjutT/bb6pfOJymGYGmyWSx15qfYbNI9 aknosfhTInvpruwvYSWPhQRcNACcT2UB8t6OaZc/JWOujP0jx+MguPAPfhxMXmC3UxmZ JfgA== X-Received: by 10.70.126.38 with SMTP id mv6mr30706263pdb.28.1415695675041; Tue, 11 Nov 2014 00:47:55 -0800 (PST) Original-Received: from localhost (ppp118-209-92-67.lns20.mel4.internode.on.net. [118.209.92.67]) by mx.google.com with ESMTPSA id a10sm18741519pdp.0.2014.11.11.00.47.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Nov 2014 00:47:53 -0800 (PST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100892 Archived-At: Jacob Gerlach writes: > On Mon, Nov 10, 2014 at 7:19 PM, Alexis wrote: > >> Hmm, but from what you said earlier, doesn't each line also need to have >> a closing: >> >> ") >> > I'm counting 70 up to, but not including the closing "), so the total line > length should ultimately be 72. > >> >> If not, can you please show what the final output should look like? >> > Getting the exact number of chars is not so important - this would be one > number in the function that I can tweak as necessary. I don't have a > function that works at all. Do you have any advice on modifying function > from my original post, or alternatively, a library or other functionality > that could help with this? Well, i was going to try putting together some ELisp that does what you want, as i think it's an interesting thing to do. :-) But, what i'm primarily confused about is not the exact line length required, but the overall /structure/ required. Setting aside the issue of the exact line length required, which of the following forms is what you're after? 1. blk("This is a sentence " "stretching over " "three lines. ") 2. blk("This is a sentence stretching over three lines. ") [There are fill spaces at the end of the first and second lines.] 3. blk("This is a sentence ") blk("stretching over ") blk("three lines. ") If none of the above, could you please provide a multi-line example of the structure - regardless of exact line length - that you require? Alexis.