From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0KYeAdYVlmIsaQAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 15:19:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aHcGAdYVlmI2YAAAauVa8A (envelope-from ) for ; Tue, 31 May 2022 15:19:18 +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 8CA8EF4D7 for ; Tue, 31 May 2022 15:19:17 +0200 (CEST) Received: from localhost ([::1]:56710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw1mF-0006zy-0Y for larch@yhetil.org; Tue, 31 May 2022 09:19:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw1JN-00026K-Ri for emacs-orgmode@gnu.org; Tue, 31 May 2022 08:49:26 -0400 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]:34729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nw1JL-00028g-Vd for emacs-orgmode@gnu.org; Tue, 31 May 2022 08:49:25 -0400 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-f314077115so10907290fac.1 for ; Tue, 31 May 2022 05:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=eEr+lY1BJNCj3K6vk9u11qnz/V5kDG9ep8UroDIWU0o=; b=c4O8CMOt2M9F1PL/Je7gF6ltAkVdE9oJdl7pfR3CEgjL4vhzkdfrq1H/lGgAsjqdyv M3XHXJ5leKTJb0HNKaMlNTBdyi8jfyxA8QzvaFLTUWwmn1PXAc3/OhVUqyiKDvmaXTTE XFng3NALfBrvTNSynMwwMHlVXO5SotHgEPdp6rbugQsLwjsg+JUKai1Vf27ffbgjx/u3 xfPmPapfRsldcHjPdgFjYNpNuuEKW3CUjHL2h7TFyuNl8V9g6XbVax01n3Sg7mrR1x6r prctJqeUbUQ0CZBAKyyzjgQMCnHQHn9AzjTcqaPAaGJFO5REebk9wHPu48y25ZedZPcx H08A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=eEr+lY1BJNCj3K6vk9u11qnz/V5kDG9ep8UroDIWU0o=; b=NjZJAGECqSVty228H5fRBpsH2s8RoeXwq89yDf0Kwntf92EUOymiP3oAGglr2xrXKz d+87c4HeU+gX+iFsgYiRiSRuwU0H3CPqxKTitU+kuwlS7lRwybL/V9Dnz/S9G37Mso2e kBT7MItBHWkTrq98PxumINNFicS4HQ3KhHyfPZ6scyxcD1HskNaZX+xAIIEeZDpVKB53 x7mH689V/Jhcc30M/Kx8+6nNx26jqrDmRHz1XJjPBUtbaLMhgsuchXUJS934n0trkpot BI9HeQnvDxm1bluMWEuSkuDee7mEvhSbMO1cAxKRddBZBRFl61xq52K/1/JLMO+7eF5p h47g== X-Gm-Message-State: AOAM533N6vJk1Na9EmNMC4mhNIL8dqLkGRJlT4ukrm0FTqV6/msnDkBk O06x1AEZ/H7Wc7Ps3fBfJppb3IH6K0w= X-Google-Smtp-Source: ABdhPJx06swM54dxmSKfeeR3F4OHCcwwJtWrRK2DTyuLGWqNo0/A4wvrvDNTAuESUMQI0e7LE0wU9Q== X-Received: by 2002:a05:6870:e3c1:b0:d7:2dc8:7fd0 with SMTP id y1-20020a056870e3c100b000d72dc87fd0mr13672620oad.104.1654001360980; Tue, 31 May 2022 05:49:20 -0700 (PDT) Received: from nnote (177-105-141-67.life.com.br. [177.105.141.67]) by smtp.gmail.com with ESMTPSA id b9-20020a056808010900b0032af1c6bf02sm5488819oie.45.2022.05.31.05.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 05:49:20 -0700 (PDT) From: Renato Ferreira To: emacs-orgmode Subject: Re: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active' References: <87o7zdkjeg.fsf@gmail.com> Date: Tue, 31 May 2022 09:49:17 -0300 In-Reply-To: <87o7zdkjeg.fsf@gmail.com> (Renato Ferreira's message of "Tue, 31 May 2022 08:53:43 -0300") Message-ID: <878rqhx3xu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=renatofdds@gmail.com; helo=mail-oa1-x2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1654003157; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eEr+lY1BJNCj3K6vk9u11qnz/V5kDG9ep8UroDIWU0o=; b=IJLiGAs1pvFR2ecToGVedix9qKeBXjaqyGT3ZECEARj9+0YQE8A/91p2fcWH2+Tgo1V5yl 0znVEU5qjpf9lDRQDHPOCzv0xwhrT/ygX0xgmnBrk2qBSr1wXhWDgd9cglU9nHolP54NdP hZ9+J55HqmG98+OL423n2UKmCzGFTeHsnRsvOEtZIK/HTeFo2sdDJXU+1ICk4O9w4UvItB 5AOL1/DhHlPTj8SJGFkMqWmCeQUA+JncNAAL8XJOSCryAnZ4n/4TNKbUD1fwzmCPSoLD9w lNsuzXc4KDL0a9T1Tj9o9qf/ihrnYngSd+Q2MnxRWxfLNuRhMua/57lRHCZkFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654003157; a=rsa-sha256; cv=none; b=f2hwgffVdHEvg7C5mkbhbvGGA3GooyM8w9B1y4GTebRbBL4dE3jGqqFj0Ky8txYQxa/4pL +N2fkFDUhvOqKdXG2dKKhREGhmP22azV5Lrx6aDR2oa3hV9kCenZIO3D/EbCprcZxueYYS o27aiviAlRe5JkhdmMZQT1bcvCVXMy98CwmOAOqaOIUnD5otNyo9wt1FWazevLeGLrnsdO JBnjVjVXz/k6z9XlYB+EIBel4BS1xxIl/gifyddNdUdq0+5xXKIPY4Y0RSDbGRDxGDlojv uUMxVVgeyA9HNnc4hV4+VIIbpeDDR8tz3Nhku6IILHta+69l3wuQcdyO/W9srQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c4O8CMOt; 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.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c4O8CMOt; 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: 8CA8EF4D7 X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: t5lxKeSx/VwN Considering the change 91b239829 that fixes this bug: https://list.orgmode.org/87d04zm7gm.fsf@fastmail.fm/ 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. ``` -- Att., Renato Ferreira