GNU bug report logs - #74785
27.1; Fill-paragraph in RST mode does not respect line blocks

Previous Next

Package: emacs;

Reported by: Richard Brooksby <rb <at> ravenbrook.com>

Date: Wed, 11 Dec 2024 10:38:01 UTC

Severity: wishlist

Tags: confirmed

Found in version 27.1

Full log


Message #16 received at 74785 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stefan Merten <stefan <at> merten-home.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 74785 <at> debbugs.gnu.org,
 Richard Brooksby <rb <at> ravenbrook.com>
Subject: Re: bug#74785: 27.1; Fill-paragraph in RST mode does not respect
 line blocks
Date: Mon, 16 Dec 2024 21:53:31 -0500
>>>    | This is the all the first line
>>>      of output even though it's two lines
>>>      of input.
>>>    | This is second line in the output.
>>>    | And this is the third.
[...]
>> Stefan and Stefan, any ideas or suggestions?

[ With all those Stefans around I feel like nothing can stop us.  ]

I think we "just" need to:

- set `paragraph-start` to match a line with a leading `|`.
- set `adaptive-fill-regexp` to match this leading `|`.

If the `paragraph-start` setting makes paragraph navigation inconvenient
(too fine-grained), we could try and set
`fill-forward-paragraph-function` to a function which let-binds
`paragraph-start` around a call to `forward-paragraph`.


        Stefan





This bug report was last modified 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.