all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexis <flexibeast@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: fill-paragraph with pre and postfix
Date: Tue, 11 Nov 2014 19:26:46 +1100	[thread overview]
Message-ID: <87sihq6s3v.fsf@gmail.com> (raw)
In-Reply-To: <CAA6UvuEQYgVUkgWD_MkU_mnjYVt6PSXA72RSe9S2YOJmxnNOUg@mail.gmail.com>


Jacob Gerlach writes:

> On Mon, Nov 10, 2014 at 7:19 PM, Alexis <flexibeast@gmail.com> 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.



  parent reply	other threads:[~2014-11-11  8:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05  3:00 fill-paragraph with pre and postfix Jacob Gerlach
2014-11-05 11:34 ` Alexis
     [not found]   ` <CAA6UvuGBeVzLqqvzY5E8DX7kuMtRiJBuP6-AORsrjPR1uuxTtg@mail.gmail.com>
2014-11-05 12:18     ` Jacob Gerlach
2014-11-06  3:45       ` Alexis
2014-11-10 15:24         ` Jacob Gerlach
2014-11-11  0:19           ` Alexis
     [not found]             ` <CAA6UvuEQYgVUkgWD_MkU_mnjYVt6PSXA72RSe9S2YOJmxnNOUg@mail.gmail.com>
2014-11-11  8:26               ` Alexis [this message]
2014-11-24 19:26                 ` Jacob Gerlach
2014-11-26  8:48                   ` Alexis

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sihq6s3v.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.