From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74785: 27.1; Fill-paragraph in RST mode does not respect line blocks Date: Mon, 16 Dec 2024 21:53:31 -0500 Message-ID: References: <86msgyva15.fsf@gnu.org> <376758.1734386711@eskebo> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33793"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 74785@debbugs.gnu.org, Richard Brooksby To: Stefan Merten Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 03:54:31 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tNNjD-0008eG-3d for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 03:54:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNNim-0007ok-Pm; Mon, 16 Dec 2024 21:54:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNNil-0007oa-4n for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 21:54:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNNik-0001nj-NP for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 21:54:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=0Cdlvpfjm6om5lftjdKt3dKW17Zkm8d+/W7UeyhBqQA=; b=dSjuPhRXevoDv4KG1KrhiYIikNol4RmusPvxgP4B0jU+91yFFrc5UROKvfZ9NA9/QwokKh47Qz0Ntn1R/KjgkE7bA262Kp1OMdGMrpnzG7rITb5IuCYkVObtdInZbesw4vuXCf8TM73xUwcXMlPpBu/9BCSaiErFpXE8+BnvXibn7wZ888+JsalJq8qewy0hIXz2W3dkB/jharRWBGXeeJuArDO11jbrj4mt5FGFgNOAVJh/WbtnMo5OXpm2XBCr2ttpSKKnqRz5hGM5K3ddPoN4WZSFa+ciPdlI9Yvujm9VBfAwwHeDUcm5ja7jBipek8Q7TfaGgUmPaIjUV2taog==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNNik-0002YD-4K for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 21:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2024 02:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74785 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 74785-submit@debbugs.gnu.org id=B74785.17344040269771 (code B ref 74785); Tue, 17 Dec 2024 02:54:02 +0000 Original-Received: (at 74785) by debbugs.gnu.org; 17 Dec 2024 02:53:46 +0000 Original-Received: from localhost ([127.0.0.1]:56965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNNiT-0002XW-IC for submit@debbugs.gnu.org; Mon, 16 Dec 2024 21:53:45 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNNiO-0002XC-D5 for 74785@debbugs.gnu.org; Mon, 16 Dec 2024 21:53:43 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6E9F8807F5; Mon, 16 Dec 2024 21:53:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1734404012; bh=Mrr7oU43Biy3G1aM0HsV9hozIWUn0DUw59dT6EBapV0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NgnwbYdqwXcjtTJjlmMICVtZfzDRYGpzPY98inVXkQJZSUnNy6efryoZXvPOH+OaU 8swrJWDTLrV4JHLKb1FFQwWzC9o5OlFBvgsTnUt6qSG0U8WAClwmxtWKfznTRgMHKq khw+UE1w2mOaZ3Hy5FJALJwPM5VrBHFaArqB3a37NGFFZDp0xx/ud31Euly1sbH09B htkMhWd001DLCFhg50MupCvP9sjL86JMW9fQlSXp/c5nJtWuaHfOBSUOUeujMr+dc7 LHyVDUmuku4IJdjvZn5V/RRq6BxCa0LVh/YG2Vc9exm+vsrh+N2uGs0b6qDN7/+XB5 KC9RRBicZFk8w== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 97F5680372; Mon, 16 Dec 2024 21:53:32 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5AA161203C3; Mon, 16 Dec 2024 21:53:32 -0500 (EST) In-Reply-To: <376758.1734386711@eskebo> (Stefan Merten's message of "Mon, 16 Dec 2024 23:05:11 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297245 Archived-At: >>> | 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