From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 APfXOtSePmOtQQEAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 11:24:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SA0COtSePmOk0gAAG6o9tA (envelope-from ) for ; Thu, 06 Oct 2022 11:24:36 +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 A322313816 for ; Thu, 6 Oct 2022 11:24:36 +0200 (CEST) Received: from localhost ([::1]:52614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogN7L-0006wm-BJ for larch@yhetil.org; Thu, 06 Oct 2022 05:24:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogMOB-00081u-3c for emacs-orgmode@gnu.org; Thu, 06 Oct 2022 04:38:04 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:41570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogMO8-0006Yu-Qw for emacs-orgmode@gnu.org; Thu, 06 Oct 2022 04:37:54 -0400 Received: by mail-pj1-x1035.google.com with SMTP id x32-20020a17090a38a300b00209dced49cfso1150847pjb.0 for ; Thu, 06 Oct 2022 01:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=bYhRxIc+65EdWRenZGbk2gY+H0pGEe+j2Ago5I54iCE=; b=Hi0MRynvjwfXMFWwwM2q/yyAe6+2oQkl+3Fk3aWABLv3bYMUFOT9IQfsG4vVX8C1Zm a502q0PrLMP4KUrXKAsUNXR8Jp76qNDzoVdWu6OTK5WHdEeRj2cM1CX6Cu691MvrefCU wrTbdqomcPou+ARAyrP2kOYSoNZcO6XL5U1MLCMf6t3Krr34gPvUYTzYWu4kmx4R2XTJ 7OIn68Rzbi1fFw9cmNbYLgl0hmc7aNfsvBDeL8QRKw3x1RVOWQ0tVfyB3XkC9HeyePM3 LYMadzvEOXrncQmtDhf6HHccD/JvopxQcbiLNPLy0t9zVH+o7VmmomroSzPNF9c7sH/X AifQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=bYhRxIc+65EdWRenZGbk2gY+H0pGEe+j2Ago5I54iCE=; b=ACit4yV7tVx43mEwmPs+2tIkXRLG6UF9YoU5H7j5ymeaz7Lw5K5bUleDAf6igbObyT u8LhXvJDoMqY+VQvV9LVoWca3w/MnKh0t2u41ee6zyWjtc1y3txtT/DnfH72vOw69ji1 TdBtT2yqMUNPC4fEh7lg3DOnF2B6KT033BKCZ3VGEJvc0pLakUA3pXSV8/EHJmV0nHpp YFlffnGCbAI9Oy5q8ftBequQMmBUNifB92VvaQlKd9e8RMZ2puxjciO+HvJPUv/fHHg+ d1R236OGCsYT0qS5zusKEhjOkpCBQmbP4/cOcRzIEMaWwcnwAeFc6mDtYmrgXjCijLkc nJAw== X-Gm-Message-State: ACrzQf3PF3SSUmVCTbqPLf7QSL1gNIFh5yI0ibhZq7P09A1QMwHj1Gkp zXBqRg35P0xm9zpbPuWAhB4= X-Google-Smtp-Source: AMsMyM6XybP/Awr6MeYQOndF4O/557uChYbipk4TGtK1q5WE7080sjVXHsdyUxWHCsbaVbAecBShtw== X-Received: by 2002:a17:90b:380d:b0:202:56b2:4ef8 with SMTP id mq13-20020a17090b380d00b0020256b24ef8mr9761211pjb.2.1665045466139; Thu, 06 Oct 2022 01:37:46 -0700 (PDT) Received: from localhost ([1.83.154.214]) by smtp.gmail.com with ESMTPSA id t129-20020a625f87000000b0053e5daf1a25sm12286987pfb.45.2022.10.06.01.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 01:37:45 -0700 (PDT) From: Ihor Radchenko To: Edrie Ddrie Cc: emacs-orgmode@gnu.org Subject: Should we make org-fill-element respect the selected region and not expand the selection to the element boundaties? (was: Bug: org-fill-paragraph [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]) In-Reply-To: <87bl2g9ptk.fsf@localhost> References: <87bl2g9ptk.fsf@localhost> Date: Thu, 06 Oct 2022 16:38:36 +0800 Message-ID: <87sfk14a9f.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665048276; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bYhRxIc+65EdWRenZGbk2gY+H0pGEe+j2Ago5I54iCE=; b=t3OSBjdfhC2C5u8YXejSectuO105x06w536ZTOHFPnwbGQeleV4ubTLKjI7jTkQzfUGrY0 q6WGHRxMFIe0VPz7KNP33d3z1WdAiFrh5tIhYg2wbnLG8LVTX/pk1G2SDPqKet2MQzaLo+ aC7AD63IO0mW5KIyGZyuzcN+zcE5zEjHM4L33jlqfYBxwnf2wjLMdFrvD991f4qhW7ei/H qldmrjBWUVjkGFcs8u/AadvQRPtUZ6QWd5kQYRCjo1R8kOJtSOySm7CdWOr8e2RMXrvE+2 6u8DRm2HMSalROHrCCCXuTLC4gq9XICrtEpYuqeQ2Vr5lyD692Dg22WnPs4OZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665048276; a=rsa-sha256; cv=none; b=qE04aAYc1JzlUCsWxKylF+fQONah9LVEbyTS67KwYh4RB8va+NlxSOkhHqEuzYT+Vajhib jm3Xh+XTAJxHYNmRGNYdEC9SOophWIV5pcUIrrHcdzJofG6TGUPM0gPmikAeAQZFIAGqqz LkpZDcJgNmrxFtaLhKq4+5kQAbXAuDYysIZvGwont+H1QyIU7Ahf1QIB2Rgp4xUddC+s9t 4NalRheZ5H8l3yphwSph2YF8T/LTic+bjsdsid9tMVHvItlBUlT4uyut7xUis8aBoGxxCL XIhi7LisTrN0tbT+U6HzdA7efQPryvi5JwX8IUze1E2Mqmt5MnUGuF4KbrYecg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Hi0MRynv; 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: -3.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Hi0MRynv; 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: A322313816 X-Spam-Score: -3.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: MRV03hnpf70C Ihor Radchenko writes: > Edrie Ddrie writes: > >> When using `org-fill-paragraph' on a part of a paragraph, e.g. with halve >> the lines as active region, it still uses the unselected text around when >> filling. >> This works different than `fill-paragraph', `fill-region' and >> `fill-region-as-paragraph' that fill only the selected part of a paragraph >> WITHOUT effecting the text around. >> I don't know if this is a real bug but it is confusing, and annoying >> because org-mode overrides the default `C-q' key binding for >> `fill-paragraph' so I have to invoke that command via M-x. > > Confirmed While I understand that the current behaviour is unexpected, it is internally consistent within Org for different kind of Org elements: paragraphs, source blocks, comments, tables etc. For all the elements, Org effectively expands the region boundaries to the beginning/end of the first/last element in the selected region. If we do decide to change expanding the selection to the element boundaries, it should be done across all filled element types. It will also be a breaking change. Should we go for it? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at