help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not taking indented text with fill-paragraph


From: Pascal J. Bourguignon
Subject: Re: Not taking indented text with fill-paragraph
Date: Wed, 08 Dec 2010 15:08:01 -0000
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/23.1 (darwin)

Cecil Westerhof <Cecil@decebal.nl> writes:

> I have often some text like the folowing:
>
> First some text which is a description of the list that follows the
> text:
>     item 1
>     item 2
>     item 3
>     item 4
>
> Sometimes you change something an you get:
>
> First some initial text which is a description of the list that follows the
> text:
>     item 1
>     item 2
>     item 3
>     item 4
>
> When using M-q you get:
>
> First some initial text which is a description of the list that follows
> the text: item 1 item 2 item 3 item 4
>
> But I would prefer:
>
> First some initial text which is a description of the list that follows
> the text:
>     item 1
>     item 2
>     item 3
>     item 4
>
> Is there a way to change the behaviour of fill-paragraph?

Yes.  Keep an empty line inserted between paragraphs and lists.  The
correct way to format such text is (as testified for example by reST):

    First some initial text which is a description of the list that
    follows the text:

        - item 1
        - item 2
        - item 3
        - item 4


> One solution is to mark the text which is the description, before giving
> M-q, but I would prefer a solution where this is not necessary. ;-}

-- 
__Pascal Bourguignon__
http://www.informatimago.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]