From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6P5mKssdlmKeNAAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 15:53:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uENIKssdlmLHLQEAauVa8A (envelope-from ) for ; Tue, 31 May 2022 15:53:15 +0200 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 19D44170D6 for ; Tue, 31 May 2022 15:53:15 +0200 (CEST) Received: from localhost ([::1]:58168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw2J8-0004is-9D for larch@yhetil.org; Tue, 31 May 2022 09:53:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw2HK-0003YI-Sh for emacs-orgmode@gnu.org; Tue, 31 May 2022 09:51:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw2HI-0006wB-Il for emacs-orgmode@gnu.org; Tue, 31 May 2022 09:51:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3FE9A24010C for ; Tue, 31 May 2022 15:51:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1654005078; bh=yB5Gw6VajtcMcnuMNQ85IjQcEOW/YA6f8/dYUmyP0H8=; h=Date:Subject:To:From:From; b=dq93iICN+kWvjXyu9HxttLfdzQz/DoXUUCljOEpni2ZrBthF+AW6nPqWcMPC62P9M avnt7YI2hQ3HoqGLd/XviVfiz+NvvihV2k8xVu8m8lhv591UXe6EjdUTEsJyoAvg5Z tVaasK0s7EShfmI2GkmYysBGfotGmy253SzkAPJIG5I5fjA24YBGX/UDeO2gjgug4v uLWb+7R36C6ofF4f7itQYdp/nTMCXrQ9zQDMWpV/xXVjTvSJmKuYXdVuQA3NmqWYYr QhNaWRDOb0s43ld7SbAOfonIvjD5J7tz3E7HwgIWzMibDcIQqqyJg0uCr9Z1V7gSgC swWnOAGW157lQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LCDFx2fLPz6tmY; Tue, 31 May 2022 15:51:17 +0200 (CEST) Message-ID: <823b6f81-3538-141c-584b-e4b8ca4fedb0@posteo.eu> Date: Tue, 31 May 2022 13:51:16 +0000 MIME-Version: 1.0 Subject: Re: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active' Content-Language: fr To: Renato Ferreira , emacs-orgmode References: <87o7zdkjeg.fsf@gmail.com> <878rqhx3xu.fsf@gmail.com> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <878rqhx3xu.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Reply-To: sebastien.miquel@posteo.eu Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654005195; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=z4zrmsgZ5ENSQWwr+AUSxkPqX46o7lfRW1hWyW6OjY4=; b=Vk5AM3BPgtos0Ae0ZndKkx6mFDFHypB5SVrdnCYDO+xQthVsZp7QMABXkCiUftRA/TLSvJ w6uchujmk5LTgg20z7jfPfGTae7oV8NkoalFZVVeTfagizTWARR/yIlHvfWsdnpHEAZVgS a1BNG5NKnNstywvkhjf8qIV5sRqB5kgTHHW8thLyed4lY4f8yTo67B5r0xJXLYOwVaDPLj 09MdpLHA8fAZS7hoGR7mLVAAPUGGK/5xykBztFelRv21Bmu+EU1fALupVQtHl0Hzm/eetq sUKsbz6hyZY3ZmEF9/71cVBN65DDi44x3EY8qm5RbvF+LUZ54dNZ8BKEb8/BvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654005195; a=rsa-sha256; cv=none; b=nyhZp5c9gdZjpAu0X6ySBdewow0ZoPxChsoWn+ZY7YEq/HYG8QF5hoRLI+onYDm/2W88lA uTPzObkTGEJpdYXO2wfKP5iqV4tjFzt5hcd2TqvEvfkZ8peLBK+KP6kOirxXp8IWdrtzIB 7R2VJfEEphPnmnMa3WTmnNWaArpXCI3dpShqeAlM5Drz50OmXGXJil+arsVIBa52h7dP5A jmNg1lGQB4Wc6VlziZJYVyV2P/Sep0JS/lVg2Btmc4baI+9VU3KzhQJlP+ldDE50eH4DyL lsm6tVOKTCDYJorwt28Bdxw19GDXEADgHV/g6Og9PkrYoNaVo6zVDL/1D0B8RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=dq93iICN; dmarc=pass (policy=none) header.from=posteo.eu; 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: -5.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=dq93iICN; dmarc=pass (policy=none) header.from=posteo.eu; 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: 19D44170D6 X-Spam-Score: -5.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: dXfTVIsjgdSg Hi, Renato Ferreira writes: > I stumbled upon a bug introduced by it: filling lists with active region. > > # MRE: > > Go to start of list, `org-mark-element`, then `org-fill-paragraph`. The first item does not get filled. > > ```org > * This is a test > > - Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor. > - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque. > - Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. > ``` See also https://list.orgmode.org/041ca43d-2efb-db1e-76ab-7c15af088650@posteo.eu/ where I submitted a different patch that fixes this issue (I think) and a couple of others. Regards, -- Sébastien Miquel