* Not taking indented text with fill-paragraph
@ 2010-05-12 9:57 Cecil Westerhof
2010-05-12 10:21 ` Pascal J. Bourguignon
[not found] ` <861vdhtgqs.fsf@aiuole.stru.polimi.it>
0 siblings, 2 replies; 5+ messages in thread
From: Cecil Westerhof @ 2010-05-12 9:57 UTC (permalink / raw)
To: help-gnu-emacs
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?
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. ;-}
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not taking indented text with fill-paragraph
2010-05-12 9:57 Not taking indented text with fill-paragraph Cecil Westerhof
@ 2010-05-12 10:21 ` Pascal J. Bourguignon
[not found] ` <87mxw54c4k.fsf@linux-lqcw.site>
[not found] ` <861vdhtgqs.fsf@aiuole.stru.polimi.it>
1 sibling, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2010-05-12 10:21 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <861vdhtgqs.fsf@aiuole.stru.polimi.it>]
end of thread, other threads:[~2010-05-13 8:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12 9:57 Not taking indented text with fill-paragraph Cecil Westerhof
2010-05-12 10:21 ` Pascal J. Bourguignon
[not found] ` <87mxw54c4k.fsf@linux-lqcw.site>
2010-05-12 20:09 ` Andreas Politz
[not found] ` <jwv632s3lgf.fsf-monnier+gnu.emacs.help@gnu.org>
2010-05-13 8:23 ` Cecil Westerhof
[not found] ` <861vdhtgqs.fsf@aiuole.stru.polimi.it>
2010-05-13 8:23 ` Cecil Westerhof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).