From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 uEIhNHGZxGO+dAAAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 01:25:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uJsnNHGZxGMB7AAA9RJhRA (envelope-from ) for ; Mon, 16 Jan 2023 01:25:21 +0100 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 860A52E526 for ; Mon, 16 Jan 2023 01:25:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHDIb-0001sR-0L; Sun, 15 Jan 2023 19:24:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHDIZ-0001ry-6N for emacs-orgmode@gnu.org; Sun, 15 Jan 2023 19:24:27 -0500 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHDIX-0003RY-E1 for emacs-orgmode@gnu.org; Sun, 15 Jan 2023 19:24:26 -0500 Received: by mail-lj1-x229.google.com with SMTP id bn6so28465995ljb.13 for ; Sun, 15 Jan 2023 16:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5tmM3GO6kboO7W8zxsHFAnlpp0Wx9d2n8o+QhxExDpg=; b=Oi1337A2dSaBgqdzVBB2PpqAB3yF4zh4ctj3WwDxoSgM2eS7XTwMW+jr4ZeqS91nHB QunwyXtGGH8Kxo1skyERvM+yqUOEAElE2VZ3alSKICdK2IFJvymHPDwip1iFY/1b39bu H9y/aMW2r4R6zV0HJ5nX1ureUbWAu/FTDYaN8zleAKhFaWK7n0DaucjlFS7LbJwu4a2C V9Sq4nYiPwNjYNBBvAp87PVFmgSxC2JHVxAscwlHXpgsAq55Cv4zFUMXmE2wKduY1qHM fQFnslEQgoF9SYShB/b5LOqwRxD4YqUIzU+1d+GzyjcOF/90eCl+rN92W6v5N6yMZfBd XuYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5tmM3GO6kboO7W8zxsHFAnlpp0Wx9d2n8o+QhxExDpg=; b=W4CCXQLbeUfslSIgy01z8lgNOriywWg7+a/b8Fzw1pgmKEnCHQv6vd3cbiQft+xGuQ iWNviPoFNwvYLnu+HkYT/SaRX9Gu8Y3WXNihHJEwmpfNhFI45DgtsDB734TGPSVPjkAv Rftm8Tsgt5HB8+oAqjantZgwQZO3owA/wCWFiM0JrDmIPQRMHbzPkd9MOjYX4Gh4N/U2 Ywm+ONI4oG93IjgL+TXXJsta64Z0JcFR32bkND3FIGwa0gicbeK+N+ZyD/McAdCL/hJN FnRzdbBiIm/XfakAvFqD8hztF3tBUpHl2FbADeEDhI3JKw/nDmP0kMwI7Dx8Ok43tFmM TSKg== X-Gm-Message-State: AFqh2krh5mXVZXJM59HlhjjK0DycJQxuKsWmFqmK0hk+J07A7mq3b7nJ cJC7M7FmGI5UofShWQSUFJ5Zf+pSmp1z4zlC+8ZL3JhTMXX0+g== X-Google-Smtp-Source: AMrXdXslIJeDlEYup0hu/I/jzwN+Mh+2GdBKnn/jBk7nzW4jAV6chgO8Nutajv7GY0mPYNpzX3+l6WQ8w3V3P1rqacc= X-Received: by 2002:a2e:a26a:0:b0:285:3383:6635 with SMTP id k10-20020a2ea26a000000b0028533836635mr1848414ljm.323.1673828663770; Sun, 15 Jan 2023 16:24:23 -0800 (PST) MIME-Version: 1.0 Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Sun, 15 Jan 2023 16:24:22 -0800 (PST) In-Reply-To: References: From: Samuel Wales Date: Sun, 15 Jan 2023 17:24:22 -0700 Message-ID: Subject: Re: [PATCH 0/4] Structure editing when region is active To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=samologist@gmail.com; helo=mail-lj1-x229.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 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673828721; a=rsa-sha256; cv=none; b=nFsFAKW5l3aauqkKwD26YcHz/gpiB18evpQtp92rEPQ+BqnZc1bf7n7GyFq1AOtlcNboy1 AT6oiUFybTo90tjW9Mymj76XpfELgwPKPG8i/lAke+EYMHHygsrcInEBV1CXtByNqsr0xp etrZzM4nrJGXDqbOfyMT+QD2PbjsKcF/Q0IvTA9oKJ3eGWOrgvTbWf9pIUgovD6apVJoyh hx4BviV0TEBTC12yKrR9cnjkzx7a8qeIGPCtnycxH/XYXtk89V9C1rAIlLxnImbGvHij+M Y+85FK5d8rsquAnBEzJE07soIu/JWJeYQvz2QpzcENynxrQp7qCFyYWpnbMHQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Oi1337A2; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673828721; 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=5tmM3GO6kboO7W8zxsHFAnlpp0Wx9d2n8o+QhxExDpg=; b=c83sA5odELjnGe2rDSt7YR1+7Q/lexgv3ZhmuMLHgdtlJLvaNXQ+c7PAdLjCkSubgEYVu5 nHT9O3p/dKq2FVQVoIsVyyUfhImamn3Usl2xPmqNcETWwFpjHm7kW6l0ZOApDbD0jJtjEE G/3yZhMRSuRJ6VQWps7Tw8FfWWB32MfUfbAfir4znCeF+cNqAgYq1ahuFA8mtoa2PGDILV TH2vMb+SeHGk5TrRT8FwSOFUslIx9uEF+BNzxtar5ya1NZIJDuMzbXFbkz836FLBQPGr4u muqCoxUiNckw3VADXUXY/Ktl7s9JdP7kFErhCg/6yyjlqGUGjN91aagYM3I7sg== X-Migadu-Spam-Score: -6.27 X-Spam-Score: -6.27 X-Migadu-Queue-Id: 860A52E526 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Oi1337A2; 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"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: vJL7mo6KSIPs not really related, but wrt structure editing, is there anything that preserves integrity of levels? [my old maint version allows double demotion [perhaps this is related to inline tasks], and i wonder about org-yank, and org-lint does not complain.] i have encountered cases in org where i find it annoying htat i hae to c-g to stop transient mark mode. will report if able. On 1/15/23, Ihor Radchenko wrote: > Hi, > > I'd like to propose a patchset that addresses some issues raised in > https://teddit.zaggy.nl/r/orgmode/comments/10b6ue6/orgmode_is_so_bad_at_rearranging_items_in_an/ > > 1. When acting on region, promotion, demotion, and other structure > editing commands immediately deactivate selection. It is annoying > when one wants to promote several headings togetehr multiple times. > > 2. M-/ on region does not care if there are headings inside > region and simply treats region as plain text: > > * Heading 1 > text > ** Sub > * Heading 2 > * Heading 3 > > {M-} > > * Heading 1 > text > * Heading 2 > * Heading 3 > ** Sub > > The patchset below addresses (2) by making org-metaup/org-metadown > aware of headings in region (when region starts at heading). > > In addition, it alters M-/M-/M-/M- to not > deactivate active selection (Transient mark mode). This way, one can > issue, say, M- repeatedly without having to re-select > everything. > > Similarly, bulk editing commands like setting schedule, deadline, > tags, and todo do not deactivate region. > > I'd appreciate testing on edge cases and ideas for tests. > > Ihor Radchenko (4): > Preserve active region after structure edits > Preserve active region when toggling heading state > org-metaup, org-metadown: Move subtrees in active region > org-manual.org: Document changes in 8f6fcd709, 5719a8163, and > eda9909a9 > > etc/ORG-NEWS | 20 ++++++ > lisp/org-list.el | 3 +- > lisp/org.el | 146 +++++++++++++++++++++++++++------------ > testing/lisp/test-org.el | 54 +++++++++++++++ > 4 files changed, 179 insertions(+), 44 deletions(-) > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com