From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uL1xBNvRDF9MYwAA0tVLHw (envelope-from ) for ; Mon, 13 Jul 2020 21:27:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WLQlANvRDF+KJQAAbx9fmQ (envelope-from ) for ; Mon, 13 Jul 2020 21:27:55 +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 955C09401CF for ; Mon, 13 Jul 2020 21:27:53 +0000 (UTC) Received: from localhost ([::1]:44192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv5zJ-0006Ac-QP for larch@yhetil.org; Mon, 13 Jul 2020 17:27:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv5yy-0006AT-Ut for emacs-orgmode@gnu.org; Mon, 13 Jul 2020 17:27:29 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:34711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv5yw-0003Y6-S7 for emacs-orgmode@gnu.org; Mon, 13 Jul 2020 17:27:28 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0CD54A4F; Mon, 13 Jul 2020 17:27:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 13 Jul 2020 17:27:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=oYWFkKmuMUjBWB8CQpZ5O+cu8CDB4xVjsdUj7fPUTS8=; b=nK+xaGC5 06SkEavA8XPTUoBRrHhNmE/SlCmXyur3DFp6QWmBtt/BwVQUFXvKlp1Wxq7GELHJ byuIWYosNoLqg4OlpuTs6aMvjfzLlfnuFznh1Ckwhl5hzaxp9Q7IvZXvS1DfamlU Bk7UoW3s2mQZ7sWbLHNz/aQ4BsY75j5FcLjXuBsSsrA5MynYhEvIVA2ZOG5IMt8R Nu7vIyIhTkT2KBSLOCqfBwdmZRgp2oqmFRVc/vQrA1oFZlb1hT4yNSYMzfKzekmK GQcDxC3WUFM+IqSEDaYyfcH9uAqN+Tjaq/mksnkt0gzVV/JLgdEGnP+Onkukx7sQ B8c0mtK9CFOyZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=oYWFkKmuMUjBWB8CQpZ5O+cu8CDB4 xVjsdUj7fPUTS8=; b=X2XWZMuoLqo0l4caUSVVuL/2M+DkZHj4Ite4fREbgwCoM j+BAncwG9Wp7BdbXu0jZOuSEzXBdHedPq9GfyIyt9iyTC6iberAY/EyELLN9zcPK jRwO4/QcnkUJxj3HF+2qJrJcOqTW+QH9NayQRrMapFd24pTQLnGpKl5y3vOurUxJ m0TpWXHAXW4tLS9HzmzxzFRQavJ0ZSGtEUFlK1+yy6IUSh4mOGWt8qHTZ3sSQd13 N2yili+S/WVOP3QcIIqqnREvBVyTD6mMCtZqbbG2PKzYAjC+PdTfmMsvhouJvolb T4Tf/du6X5qz08sTjkeO7Iu/rbzUE5UcdFbTr4/7A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrvdekgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeforghtthcunfhunhguihhnuceomhgulhesihhmrghpmhgrihhlrdho rhhgqeenucggtffrrghtthgvrhhnpeeffeekieevffeugeelieeikeehhfettdekveevtd egheeiteehveeiteduffdtfeenucfkphepjeeirdduiedrudefhedrudduleenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmughlsehimhgrph hmrghilhdrohhrgh X-ME-Proxy: Received: from localhost (c-76-16-135-119.hsd1.il.comcast.net [76.16.135.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 485C43280064 for ; Mon, 13 Jul 2020 17:27:22 -0400 (EDT) From: Matt Lundin To: emacs-orgmode@gnu.org Subject: [BUG] org-fill-paragraph fills paragraph before selected region Date: Mon, 13 Jul 2020 16:27:21 -0500 Message-ID: <87d04zm7gm.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=mdl@imapmail.org; helo=wout5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 17:27:23 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=imapmail.org header.s=fm3 header.b=nK+xaGC5; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=X2XWZMuo; dmarc=pass (policy=none) header.from=imapmail.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: GhhuAgAByR+2 When there is an active region, the function org-fill-paragraph does not limit itself to the active region but also fills the paragraph before the active region. Steps to reproduce. Use the following file. Mark the last two entry paragraphs, beginning at "Lorem" and ending at the end of the buffer ("erat."). Type 'M-q' (org-fill-paragraph). --8<---------------cut here---------------start------------->8--- * 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 tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. 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 penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl. 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. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. --8<---------------cut here---------------end--------------->8--- This is the result. Note that the first paragraph, which is outside the selected region, is also filled. --8<---------------cut here---------------start------------->8--- * 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 tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. 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 penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl. 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. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. --8<---------------cut here---------------end--------------->8--- Best, Matt