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: Thu, 06 Nov 2014 14:45:55 +1100 Message-ID: <877fz9ugu1.fsf@gmail.com> References: <87fvdxvpq0.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415245939 28742 80.91.229.3 (6 Nov 2014 03:52:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 03:52:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 04:52:11 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 1XmE7G-0003EK-Qn for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2014 04:52:10 +0100 Original-Received: from localhost ([::1]:49755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmE7G-0006p3-Ar for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 22:52:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmE6w-0006ox-M5 for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 22:51:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmE6n-0003Fw-KD for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 22:51:50 -0500 Original-Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:57244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmE6n-0003EW-Cr for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 22:51:41 -0500 Original-Received: by mail-pd0-f181.google.com with SMTP id y10so288944pdj.26 for ; Wed, 05 Nov 2014 19:51:40 -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=L88Kl67sxZi1+SExLCDph1xa1nmB816th6FDWZdG59k=; b=lksMOwNUq4L7D/E/3U2/sjS64XuTNwhXOLjY0uehcTjtgi7GJmd1LwABLmZSwu+c1y qpKXqS+qcrfc6FdIJA7bL+uxQCO4Q2U5LQPv+F9FBJs7jJbxD3IBLZTlfyp0Bzp64DWI vb6QgS/Wj4L9X+pawpOXTi9Qz3gUIpmN0wb/8kqH+vlUOUSQn6X08UxArzrMG8GcETqh 0PQSUzPqo4uA0mlqqiL+q1R64TUsVu9y3KtVvw5G5RY75Po/F+NE2unBZOIBehxsvMAq yHjsVkCh1RXq2Xd+F5zDAS/2mDgdkhxEX3AQtXo3na+jSKXTKQXSmLAzLFX7rvH93t/E ZXqQ== X-Received: by 10.70.128.40 with SMTP id nl8mr1683450pdb.110.1415245900300; Wed, 05 Nov 2014 19:51:40 -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 fl15sm4437516pdb.92.2014.11.05.19.51.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Nov 2014 19:51:39 -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:100788 Archived-At: Jacob Gerlach writes: > On Nov 5, 2014 6:42 AM, "Alexis" wrote: >> >> >> Jacob Gerlach writes: >> >> > A project I'm working on uses a handling function for some command line >> > documentation: >> > >> > blk(" I want to format my documentation like this. > "); >> > >> > In order to match the convention for our project, it should include the > two >> > leading spaces and be filled with spaces out to column 70. >> >> Will the text that gets padded with spaces always be less than 70 >> columns in total? > > No, the idea is to use this function on a paragraph of text and have it > broken into appropriately sized lines and then wrapped with the format > function. Something akin to fill paragraph. *nod* So you'd want output along the lines of: blk(" I want to format my documentation like this. \nI want to format my documentation like this. I want to format my \ndocumentation like this. ") ? (Or should /each/ 70-column line be wrapped with 'blk("")'?) Alexis.