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 ms9.migadu.com with LMTPS id UMGUGNGxOmQBYgEASxT56A (envelope-from ) for ; Sat, 15 Apr 2023 16:16:49 +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 aC+CGNGxOmRxlgAAauVa8A (envelope-from ) for ; Sat, 15 Apr 2023 16:16:49 +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 F3F1D2371C for ; Sat, 15 Apr 2023 16:16:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pngh2-0004Ak-Ta; Sat, 15 Apr 2023 10:15:56 -0400 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 1pnKZe-0007yC-NJ for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 10:38:50 -0400 Received: from mxout1.mail.janestreet.com ([38.105.200.78]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnKZd-0005m4-DJ for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 10:38:50 -0400 From: Spencer Baugh To: emacs-orgmode@gnu.org Subject: [BUG] org-delete-indentation on region doesn't work when END is before BEGIN [9.6.1 (release_9.6.1-40-g3d817c @ /home/sbaugh/.local/src/emacs29/lisp/org/)] Date: Fri, 14 Apr 2023 10:38:48 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=38.105.200.78; envelope-from=sbaugh@janestreet.com; helo=mxout1.mail.janestreet.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 15 Apr 2023 10:15:52 -0400 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=1681568209; a=rsa-sha256; cv=none; b=h1S1D/FJpPvmjeOx0jo8uExO8QM5iV6aLpWyNkpWCt4TuyLQq0wz6Tfmr268N/7FYRkNTy p6m6MFvFG55uEesQK4560Mfhzwh6eLUxY2Jc56LBG6XxVPEDHszInrlml9o3cvK0wP0JH0 XEXAX6LeXMwfHeJBSAoT30qusUgRlHkX+xWgca5Sz/fKnMpWlZ8Zw/FT50F2fU+MhTkRpB xJ5uciTk1ny8AABb32uulmnlfIYf7yVTfNIgn91ysT5WSJ6hhoX92IbPuF+Cd4j6xROLIF yabEg1aPz6kOvy9G9BAcRcGUt3etl1J4RglOfN6bqkYlHcS17y9E8lhS/pMG1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=janestreet.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681568209; 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; bh=ofzFNaqirra4xK8AEgqndBBWoNIpHaMoz5r65ZSkg3Q=; b=oKP3nWSmept3vrF2CvJCTdXZ9+AQyfvNwC1Ph0OyRUU804rtnLBBoRv3Re+YYaDRj60UdI cp3jdjlO1fv2PVQ8JPOsqGVwzq7PuhhR6Rn9Spt1U2qEqZOCCNYxT8cs8n5qH3ZCgMP5lx o5/rTiYTfZde78NpqXLeF5xtbdoUaXwvIWJ7hwOzjtuXkS0p8az7j5gGk3qMFi8g72/QJE JIJe1q+5SFX5IsGj/VyKiTw3T9PumhLHG9DM8GoMpfxGZocCWxW122O+YQRkCBjfEbLZF8 tnMWX6MIZzmJlcH76Ep1kBzXTBQG8p0s8AjqHTI9G84SPGWehpAmQBwoOBAD3A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.12 X-Spam-Score: -3.12 X-Migadu-Queue-Id: F3F1D2371C Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=janestreet.com (policy=none) X-TUID: pXfmpR0WP0B0 1. emacs -Q 2. Insert the following in an org-mode buffer * head a b 3. C-x h M-^ and note that it's now formatted as: a b * head 4. Undo, then M-> C-SPC M-< C-n M-^ and note that it's now formatted as: * head a b 5. Undo, then M-< C-SPC M-> M-^ and note that it's now formatted (correctly) as: * head a b The 3rd and 4th steps are wrong, or at least inconsistent with how normal delete-indentation works on a region. In 4, I assume the issue is that org-delete-indentation doesn't check to see if a region is active before using its special logic. No idea what's up with 3. Emacs : GNU Emacs 29.0.60 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2023-03-13 Package: Org mode version 9.6.1 (release_9.6.1-40-g3d817c @ /home/sbaugh/.local/src/emacs29/lisp/org/)