From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iF5VD+XiA2L2uQAAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 16:51:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yOyTDOXiA2KhGAEA9RJhRA (envelope-from ) for ; Wed, 09 Feb 2022 16:51:01 +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 C4AE617F98 for ; Wed, 9 Feb 2022 16:51:00 +0100 (CET) Received: from localhost ([::1]:58308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHpFD-0006J5-Cn for larch@yhetil.org; Wed, 09 Feb 2022 10:50:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHo4X-0005JW-6O for emacs-orgmode@gnu.org; Wed, 09 Feb 2022 09:35:55 -0500 Received: from [2a00:1450:4864:20::22a] (port=34497 helo=mail-lj1-x22a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHo4U-0003Pc-4V for emacs-orgmode@gnu.org; Wed, 09 Feb 2022 09:35:52 -0500 Received: by mail-lj1-x22a.google.com with SMTP id o17so3737987ljp.1 for ; Wed, 09 Feb 2022 06:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=KOw0GBUCQWLh5YKgQQZIv/+T9Uzx1suulSvdp7aRdmk=; b=ft+ACeEh/UPlXRRapYv0hPGQ306qmE4iykiJYLq57/Fug//bixBLjM1GKCJlxOURAl EsMw2K8G4IyrTR7iHlAney6x+wcs+jR26lM+VCTB9LNZ3mA0ZwkdtHCYW3qsKz/c3aMI sUzMmS1nlMiU8b5QKeqPlFi4Cz9suHnmcGI1zjOPA4RmPJdDMnx8yf8gdsU07aNPqbL9 sOx2/RzmVExuEW8eQ4yF+o5FN8QOhhpExb05JWNbIRTbzqCcC6BvLF+xLlpUV+m7ow9a QcsLN0dTzMEyqdzoX2051rV8I6KI81TZxOnL8GMgTg+Irp3TnSajJ5K6+nw45KX2oMsR TXIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KOw0GBUCQWLh5YKgQQZIv/+T9Uzx1suulSvdp7aRdmk=; b=cUR8VH8NCImK9Bg7slVgECxjDpKp/j6IeWb+3mjJj+DGPCAD7nuCBk8hnoD/4NBfbx 8Fl6ruVrrM9tUYqhXTBagpNq8p2apgWHDvUelIQmfy2ptcbnxQHMfHdSn0KqwOx01wp9 VMK68+qUQs1lCA+mHBI3e7IOEUISBoor4Fkx7HVPSiO3Wl2fmwihCj/66M4oD0Qbz4iD Sa3QgarFdjrwxhMNfuBsAIDEDuAWV6T96sxfmOlktCEiNEVEk6+qLxXBZnS/WAcLNsAz GInyB2UxQU0dhb6kL5eVvDTakBIhrQu7vp+uNinYbIosbcXkdqB8zXWxVsQ4xk2BgHQ+ LSvw== X-Gm-Message-State: AOAM533T0A5+HcFU5K7vkr1VAK8ztOK9DNNLI8YNwfHjRz1pOQRS8zSX e1kZ/vdhz5TRkxdzwuZPlZdtyly37+Ob3Ci/ialyjnZ/350= X-Google-Smtp-Source: ABdhPJx9GnMRImyQWWIQYCVSJV/G1MLW8bJzIhyjZM8q12qdWlq98/fFCTL3pzgHgV0eynq+Yd0EWfKn2PlHRq/Mcbo= X-Received: by 2002:a2e:97cd:: with SMTP id m13mr1671201ljj.206.1644417345893; Wed, 09 Feb 2022 06:35:45 -0800 (PST) MIME-Version: 1.0 From: Alex Giorev Date: Wed, 9 Feb 2022 16:35:34 +0200 Message-ID: Subject: [PATCH] Fix org-set-tags-command active region bug To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000c4092405d796bf95" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::22a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=alex.giorev@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1644421860; 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=FhLHT37HEBcSX1vIq1/6waOJ0EoB4K5w9YHCz8+bmkg=; b=jQRgR4BOqaJtluCxcXzN4YLTUE0CxOFyJQV9Kxt1w79qLLgJIyEqLFylszV4ffSzjZxmRX 8u54OhdsiYWboV+98SMI8qfgaopFPHC2aQB8AbGTPnSAWIaDxd5D7yKAgY8KDbRPHM3Whl ZW+5pR6Dz+vqLILUy+8ork6YgCajKyhbQzMftyUUYRdeyxKk6ARUQkz/XcUIJIQBmdI5cO Eds3aOcgwX8qRNFE0GcsBw/b5j22ahvmu08ihgFv8DK0QmLfVxWWSdxgBauP7z3LsiCBK2 JCXT9dcszQRWayu9JqTV6XIw+ncRBQsH9a1Vc9wE9gz9EuoxyS7dshGZc9xS0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644421860; a=rsa-sha256; cv=none; b=saLJP1+xpy9dYaCVAW5BExZ4RkM6LPWargOM43lGbivs2uLAGK+i9pAZiYQgh2eSDiA2Hp LTF0TJypjHJJv9/KXoL/0lyOl1FNNLDkRHmJn+ylwEI2fWwip2A78Y+A2NQv4qxrOHzKXR MQLwwB6QrnKlnaAOpT1CCIwTswrfwUiegA0V5F95oPflbkdssD1IJEHv1eSOi/8gQlcLwp wKlj6YuaUxbqTLYBX1nQ6Zuy7is03q7zeqnN2YtPWf4CtkGfURvYsHN39/Xr/yQ4+ms8av 3n+49yGBSlnBOncucuk5ChU+Mw9CHHLWyaiQoriqRm79bS8o+tkDIB25Y1yC2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=ft+ACeEh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=ft+ACeEh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: C4AE617F98 X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: dHfcQEbk4C6P --000000000000c4092405d796bf95 Content-Type: multipart/alternative; boundary="000000000000c4092105d796bf93" --000000000000c4092105d796bf93 Content-Type: text/plain; charset="UTF-8" When `org-loop-over-headlines-in-active-region' is 'start-level, the command should loop only over the headings having the same level as the first one, but it loops over all headings in the region. This patch fixes the issue. --000000000000c4092105d796bf93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When `org-loop-over-headlines-in-active-region' is = 9;start-level, the command should loop only over the headings having the sa= me level as the first one, but it loops over all headings in the region. Th= is patch fixes the issue.
--000000000000c4092105d796bf93-- --000000000000c4092405d796bf95 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-lisp-org.el-Fix-org-set-tags-command-active-region-b.patch" Content-Disposition: attachment; filename="0001-lisp-org.el-Fix-org-set-tags-command-active-region-b.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kzfnksqp0 RnJvbSAyODlkNmJkY2I4MzI4NTU0YzZkZDQxMzZkMzhmMTIyMGQyMzk5NDBlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBhbGV4Z2lvcmV2IDxhbGV4Lmdpb3JldkBnbWFpbC5jb20+CkRh dGU6IFdlZCwgOSBGZWIgMjAyMiAxNjoyMjowOSArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIGxpc3Av b3JnLmVsOiBGaXggb3JnLXNldC10YWdzLWNvbW1hbmQgYWN0aXZlIHJlZ2lvbiBidWcKCiogbGlz cC9vcmcuZWwgKG9yZy1zZXQtdGFncy1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