From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8CSSKyoClmJ+KwAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 13:55:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uHZ4KyoClmKzLgEAauVa8A (envelope-from ) for ; Tue, 31 May 2022 13:55:22 +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 37AC827737 for ; Tue, 31 May 2022 13:55:22 +0200 (CEST) Received: from localhost ([::1]:39878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw0T2-0006S8-VZ for larch@yhetil.org; Tue, 31 May 2022 07:55:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw0Ra-0006PS-W8 for emacs-orgmode@gnu.org; Tue, 31 May 2022 07:53:51 -0400 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:38835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nw0RY-0008Dt-De for emacs-orgmode@gnu.org; Tue, 31 May 2022 07:53:50 -0400 Received: by mail-oi1-x232.google.com with SMTP id v9so17091868oie.5 for ; Tue, 31 May 2022 04:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=Bl4oVEqiEu1xxwl9dZPwl/h0JpIbhy/wqS/xIqD69xc=; b=YERuJIxNP64uPchhScm6zmKhDnlKb1Ow3Rg0aQZIVUjd2oLkdZnzC5cpwnd3NpfBB6 Z+s7UVLyTIH069SLxBGXZcs058Sjge6ODPQ0wacbMmX2JXrE81fqtRxND4CcbgKT7bH8 dzFGzTwNBadUH+URKru5Towzki0D7WqBknF3/tBOulCCkJJmDtHH92Nv7GJ4dEBVvjkO bo5B00X94ClAXnb7N8I11nMpiXbDRAvl/M9e9KgqvQBOYEqQ7rhgbcEEEi33kr/HAbhI jXOk8iRB39yLEhDRco8YtID/rXzWzaPRv9Yel/zzNDCA45sJ5Jnj6TmyRt+5CCZGyrJO Lzcg== 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:date:message-id:mime-version; bh=Bl4oVEqiEu1xxwl9dZPwl/h0JpIbhy/wqS/xIqD69xc=; b=oc4B7ZgNxeBVtWpuUd/1vlixi/i65MFG6+CpbSqXaYgq9oSnrCHk2IN6v9zwqRl7fV m9uelyrVpkB6vn+0Ry3jeeVllzX64pC9fSpQ0rfIhStSUF7r6G1Dr49DeY+pTuEEyhUI zqLNm5AW5SlPZooIgDSh/R3V8XFwL+TnfFiU9TgsK3n9d8pIGe2hjmiMWo613mIXpeQA s0kHB1D+O0PPhXrGsdJsPfEkam6tL6KOWkETnsu1ZFrckl5FQeg4BKZ3YmPYT6m+wXte A6GHZViFgoftvEDbyyFUyaTxpWkyG1ny+IM9p5X1cykYy48txV3N0WxX5+n7YR8Q0dnr jO9w== X-Gm-Message-State: AOAM531C5xqVoIEoDTKu0uX+Bd2fxEzThqbwhDxPvJ1rav0GaEbpKYkD ki32ZIhH/KG2K9y7FaEvfWGaJRMlM8k= X-Google-Smtp-Source: ABdhPJz76dnyz4FiqJjKyWoohxVgDyM08AywR9/ZRY/hKOO1PkchUbLQWHxWzSs0P4hA0iH04gWhjw== X-Received: by 2002:aca:b782:0:b0:325:7a29:352d with SMTP id h124-20020acab782000000b003257a29352dmr11533370oif.217.1653998026597; Tue, 31 May 2022 04:53:46 -0700 (PDT) Received: from nnote (177-105-141-67.life.com.br. [177.105.141.67]) by smtp.gmail.com with ESMTPSA id r19-20020a056820039300b00333220959b9sm5968189ooj.1.2022.05.31.04.53.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 04:53:46 -0700 (PDT) From: Renato Ferreira To: emacs-orgmode@gnu.org Subject: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active' Date: Tue, 31 May 2022 08:53:43 -0300 Message-ID: <87o7zdkjeg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=renatofdds@gmail.com; helo=mail-oi1-x232.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=1653998122; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Bl4oVEqiEu1xxwl9dZPwl/h0JpIbhy/wqS/xIqD69xc=; b=h+G7+1VdXvqP9TM50gBZLIHMKedGUBF20Q25Su4cI3da15UYbYUDNQZsaFluZ7Jh7BxAwI N451C0C9Jl254b7qZlXta2/YaXVXUW+uOgv+lJFmEMJuJ8HpOnQLgv6CbBHATK9Ljzmw0U IFJvBRkLGVDt7dIMU7EXyxpSI2PkPd1A1vooZ78T7TcpoFjiDu+VZDpClIDgXRdwvGTX23 F40Mdea/3FDrZSTv5l+uHY1JO7usQcK/rUBmLv/X9o7LHwyIZHthwesulA8t0aFwJXAQKp wyAPwxgOzw8iao4dI023ZtLAOTL5Av3sUJu5paYOu7Uq5xl7hsznwoJRTebiNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653998122; a=rsa-sha256; cv=none; b=HSL4Ef7oljLbaMVho2cscSUKO2O3ngWxK6om8z910ujPfBbonzUuT6GfM5UZguO8QIvr3V VFPU/49rGLtA0U9AW3MJXD888Pn/Y4ov7v58kKiHqDkr1iUHqs26pyOKXo3JXjC4EGA3Mv i44Qhq+YGTo+qZIF75kyErEtL2hMrBssZZ01GYDGLnjFG8RS6pPvFOKbaKgj5Hc2fhYkRK 3AD/Zxi8M4lecKN2kZ9Tj1ErR8mc1ypqq6MtUbz3KUaHKsaq5jKznSIRaVV6azjYjwWIZf ACSVH6v9LYHmmXoob/AENexA5lzrvoymY/I46Yu2R1uJqP0J+Gt7smjZbMCB6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YERuJIxN; 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: -9.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YERuJIxN; 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: 37AC827737 X-Spam-Score: -9.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6AXMAg4LvKbF * org.el (org-fill-paragraph): Fill also the paragraph at `region-beginning' when filling plain lists with active region. TINYCHANGE --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 6842bfe9b..8ba5f4590 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19672,7 +19672,9 @@ filling the current element." (skip-chars-backward " \t\n") (while (> (point) start) (org-fill-element justify) - (org-backward-paragraph))) + (org-backward-paragraph)) + (goto-char start) + (org-fill-element justify)) (goto-char origin) (set-marker origin nil)))) (t -- 2.36.1