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 #49 received at 74785 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Merten <stefan <at> merten-home.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 74785 <at> debbugs.gnu.org,
 James Cloos <cloos <at> jhcloos.com>, rb <at> ravenbrook.com
Subject: Re: bug#74785: 27.1;
 Fill-paragraph in RST mode does not respect line blocks
Date: Mon, 23 Dec 2024 17:50:48 +0100
Hi guys!

6 days ago Stefan Monnier wrote:
>> But that bug is about message-mode, not about rst-mode, so I'm not
>> sure it is the same problem.
> 
> It's not (that bug was about a prefix shared by lines of a paragraph,
> whereas this bug is about a prefix which starts a new paragraph).

Sorry, but it's not that simple. The syntax of reStructuredText is
pretty tricky and it needs lots of good ideas to handle it. But it's
nice to write and read - and that's is why it IMHO is still a
worthwhile alternative.

If it would be as simple as you suggest, I would have built it in from
the start. There is a reason for not doing it. Indeed line blocks were
at the end of my list of supported reST features because I think they
are used rarely.

The function `rst-line-tabs' has a FIXME comment:

  ;; FIXME: Must consider other tabs:
  ;;        * Line blocks
  ;;        * Definition lists
  ;;        * Option lists

I guess the real problem is in that second line, that line blocks are
not yet supported.

I'll look into this.


						Grüße

						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.