From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eMgFALDApmGy6QAAgWs5BA (envelope-from ) for ; Wed, 01 Dec 2021 01:24:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uHRaN6/ApmGiZwAAB5/wlQ (envelope-from ) for ; Wed, 01 Dec 2021 00:24:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A113F160E1 for ; Wed, 1 Dec 2021 01:24:15 +0100 (CET) Received: from localhost ([::1]:60582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msDPy-0005hv-Qx for larch@yhetil.org; Tue, 30 Nov 2021 19:24:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msDOb-0005fG-SZ for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 19:22:49 -0500 Received: from [2a00:1450:4864:20::131] (port=38515 helo=mail-lf1-x131.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msDOZ-0001cn-Cy for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 19:22:49 -0500 Received: by mail-lf1-x131.google.com with SMTP id bi37so58204197lfb.5 for ; Tue, 30 Nov 2021 16:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tMGO+bucuvQmGoUkAhVybE3T/nbQJ5or3jilMzdYc/8=; b=HNamWjvgynC+PzYaeMyw+WJBRcxPG6+I1o4KQ0Njh5NaytrPTsyil51HU70lUQvLEk tQrJlyB20m0BGZTjqb3BibmP2fBPQtU8/2PFW3XwxcvobrsX7VZv5aqs88wFmh5A7rOv QaWpZWKJXH34uNOpnq7tjEBlKUMVohzp0AgY/PjUNeKx1NwLkZ6AHdW3socgkjAiU2kk wCBQpnrw+cMWcD0ygpCLBwP/GCRcIv44nSyEG4G7r3zQYIl77DbJnxWnCsm4ZjQoH7aX /l+YYC1pHXIU2kB3K2yveqo92w3lFB4BoiWwcw8lJoHGwToyV5RNbz1W3nP66kvdEyEY u8DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tMGO+bucuvQmGoUkAhVybE3T/nbQJ5or3jilMzdYc/8=; b=IGblzJaQwE906flSwyHT2nkEi1WFe3ZCKElq5K88BSVCxzrLMZ4dCB5+k/Z0eDDML1 XIycD8qAHObVeHLI92L6lquiLK8KBZlAjkdrCdTZkJzJJRX5bCWISgbXGjooqe4FfRiM TnLloeuA0tHEtfbTl9jCvCQ/Z/l+bwenpOoEq/2mba1NgubfaUqlkTSkMBFtDyMsqQ7Y X9EK1TVIgX319+tA/vh7XNWdCUl8LPpjvgvvXWX/xL1XWh0BKeQJGZ9TESxZO5YpbFSt RXlo0mdDXqyhu6fhJs+THb1ABIMMa7ybrSlQNX9pkv7aWo5oUlNWBBeuOqgpVA6QhcVX lVJw== X-Gm-Message-State: AOAM531NVtrjXcfeEWlXhVhEAoq7Wvo2XaSYZGXnO0W5f3KF0oKOWHon gAnOQgbtPEE6KZs/ynwzjeqxNYxNlgOolzUfaU8= X-Google-Smtp-Source: ABdhPJw68bYx7a3vtyybwUNOF+54Oj7zE+W6mqBaDxexxUDfS+CpYBUJ0mTCHnyeAuFRQu8qI3njVphTm10JjUHAGH4= X-Received: by 2002:a05:6512:34d0:: with SMTP id w16mr2468693lfr.420.1638318163815; Tue, 30 Nov 2021 16:22:43 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:1912:0:0:0:0:0 with HTTP; Tue, 30 Nov 2021 16:22:43 -0800 (PST) In-Reply-To: <041ca43d-2efb-db1e-76ab-7c15af088650@posteo.eu> References: <041ca43d-2efb-db1e-76ab-7c15af088650@posteo.eu> From: Samuel Wales Date: Tue, 30 Nov 2021 17:22:43 -0700 Message-ID: Subject: Re: [PATCH] org.el: Fix the filling of regions containing lists To: sebastien.miquel@posteo.eu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::131 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=samologist@gmail.com; helo=mail-lf1-x131.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638318255; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tMGO+bucuvQmGoUkAhVybE3T/nbQJ5or3jilMzdYc/8=; b=r6SClITtfEZWeE8Sk25KwPyJyKvhaR6XpEpiZxy5WCY0OwC4JqU+qIWSt0MxV8eWISxRNV /bcHatLaGHmkq397FMb8ijYzaA2WCDEnWutoR0v1ZNTM/9NOT5EwT6kq/z9xP13WBHbX+G yMQkdVDVOuWboY7LouKXu21fkyxNjLZUe5ZwddGprVq9CnV0D76vO/TspAp/EOKC4vUfcl ILt0+AptL20acCb8hQ0Fr9L9t0OWta6N/QNf6cap949gdC2BJH66cuKTWfw4Z3HyuaHXCY c/Yr56EoKgeUEz9zSyU016X6jDS0NhvibFfgkgwujgmzGvaVD5NSgA/aFksPwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638318255; a=rsa-sha256; cv=none; b=UvQ30t+u9JwyJTWoy9FcI5Q5+nEB8RpBnYb1/pDQLSuNmKJAUTPB2U5Z89wif6UbQHJKu+ mqSndLymDnJ2qOX3ByGuiE046Bju7YaH4ikzxLbZkUbgoq2wlvMNhrEK8cix0KZg/wx1+X rAPN5QQjKpD+ibp7C6rpj+sb1+L3GHcAyUadTCddpDe0EbaoFRX1SBAoIVJszKrjFEnsZB gU9qUcKy22LbKMHnqf9XaVHtbPlSaQ+rTdbWMp7Ftmq4o1vjjZsISQSO8s/JTlVPulyWpR YpNAvbbvVHKSw+YXkp48g8GXhLtvqekZ1BqjEzES+5x1N6Xt7AI37HsBy72UGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HNamWjvg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HNamWjvg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A113F160E1 X-Spam-Score: -4.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: Kp1G/Q/l1h0z wow thank you i look forward to this. On 11/30/21, S=C3=A9bastien Miquel wrote: > Hi, > > The attached patch fixes the following issues with the functions > =3Dfill-region=3D and =3Dfill-paragraph=3D, when called with an active re= gion > containing a list. > > In the examples, replace 'long line' by long lines to be filled. > > =C2=A0+ Calling =3Dfill-region=3D on a region which contains a list with= single > =C2=A0=C2=A0 line items (such as the one below) breaks the list structur= e. > =C2=A0=C2=A0 - long line > =C2=A0=C2=A0 - long line > =C2=A0+ Calling =3Dfill-region=3D on a region with a list such as the on= e below > =C2=A0=C2=A0 doesn't fill the list > =C2=A0=C2=A0 - short line > =C2=A0=C2=A0=C2=A0=C2=A0 short line > =C2=A0=C2=A0 - short line > =C2=A0=C2=A0=C2=A0=C2=A0 short line > =C2=A0+ Calling =3Dfill-paragraph=3D on a region containing a list such = as the > =C2=A0=C2=A0 one below doesn't fill the first item > =C2=A0=C2=A0 - long line > =C2=A0=C2=A0 - long line > =C2=A0=C2=A0 - long line > =C2=A0+ Calling =3Dfill-paragraph=3D on a region containing a list such = as the > =C2=A0=C2=A0 one below doesn't fill the list > =C2=A0=C2=A0 - long line > =C2=A0=C2=A0 - long line > =C2=A0=C2=A0 - short line > > Regards, > > -- > S=C3=A9bastien Miquel > --=20 The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged= .html