From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 69TIGkegJF9HLQAA0tVLHw (envelope-from ) for ; Fri, 31 Jul 2020 22:50:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KEJcFkegJF8TDgAAB5/wlQ (envelope-from ) for ; Fri, 31 Jul 2020 22:50:47 +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 D748B9400C3 for ; Fri, 31 Jul 2020 22:50:46 +0000 (UTC) Received: from localhost ([::1]:60780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1drP-0000HA-Qw for larch@yhetil.org; Fri, 31 Jul 2020 18:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1dr1-0000Ft-F6 for emacs-orgmode@gnu.org; Fri, 31 Jul 2020 18:50:19 -0400 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:40524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1dqz-0005Xg-Tl for emacs-orgmode@gnu.org; Fri, 31 Jul 2020 18:50:19 -0400 Received: by mail-qk1-x733.google.com with SMTP id h7so30309872qkk.7 for ; Fri, 31 Jul 2020 15:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=z2XYrNHToTHvqEiuEW75POh0bamrssen3seqja7ad0I=; b=ThEBGQLTY4CrZMh4KLwEhRv8JDyqGpXnJCN6SdiF+0OQTdS05ouNt8oe5RQeJo3g3m /DrYsPznRQRRMS90J3aNBFVpUDpVmDeVmhjatajXR6MgGQK5yuvEmJUDJAQkSPhYhlyH swJzHXQ6tvZJvNGnbd8D1bWKOJxgPWd7ybUnYdt0NHd48pV9JYCmXJhIUBPRIR5NfGh7 VJ8hgkaLD5waanmDtieFcqA2YR97myK5ypiuXXBKc3HpOh3NhuHsiqkDJcFJBIs7GLXa 1jPP3SJ45PyO7OQH7c5SS13fybLMN9wkmSPxSuOU/nStj30MzYFapWETemXPsTp2SbiE 3NMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=z2XYrNHToTHvqEiuEW75POh0bamrssen3seqja7ad0I=; b=lQvE75X2ynuaxBKYPSQdRbvAELYYaKtfriNE6Q4AiCsPpplSNky/0Kn3N3XwB53yCZ 84Tc0R4Z2RwCYeYJKq9s6ZDysz7LFmKJSXbsxH758CXdnuCU2dhnB04vJgOvT52O/Es9 ZGTkjLXFAzRb/BqE5qLXCu8v3Swq9vVwGMBhBa4Z9Hl3v6+RnclS7E60CB14j8FbDTy3 SJapgps4sGmTuovzfoPSusr2M/9Bz/8mkpI9qU4x5ML7Fu1UBaqMxcZS65ha5iJHO5Vz FKblIxM5zNeORUCoq8GCIoyFSiVN+2u8BIMjiI0KhOp3guxAT6+HwxzObiD20VVzoLwH S45g== X-Gm-Message-State: AOAM530z8okQpIgYgio7YNJZrKrIrTGPJeF/ITXukkXUak+CZiQrASpS lNTCp9tRwCGp5qm4EzhSsPE= X-Google-Smtp-Source: ABdhPJyu4JPqENTxvQNNuxtkUSMgOAwwDmCYf/5FTwOVAvkb7XJcO2Gv+VyYpMhbKIuRhbg2S5HXjw== X-Received: by 2002:a37:a2c2:: with SMTP id l185mr6051590qke.417.1596235816658; Fri, 31 Jul 2020 15:50:16 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id o17sm10118624qtr.13.2020.07.31.15.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 15:50:15 -0700 (PDT) References: <873657cosb.fsf@gmail.com> User-agent: mu4e 1.5.5; emacs 28.0.50 From: No Wayman To: emacs-orgmode@gnu.org Subject: Re: Bug: org-toggle-item removes tags from next heading [9.3.7 (release_9.3.7-696-g82b496 @ mixed installation! /home/n/.emacs.d/straight/build/org/ and /home/n/.emacs.d/straight/build/org/eln-x86_64-pc-linux-gnu-c50afd7f9e91fd04/)] In-reply-to: <873657cosb.fsf@gmail.com> Date: Fri, 31 Jul 2020 18:50:10 -0400 Message-ID: <87zh7fb8pp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x733.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: No Wayman 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=gmail.com header.s=20161025 header.b=ThEBGQLT; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.00 X-TUID: bV2HE2EF2gEv --=-=-= Content-Type: text/plain; format=flowed I've attached a patch which removes the call to skip-blanks if there is no active region. This works for me with the ECM I've provided. Not sure if it will have any adverse repercussions outside of that. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-list-Operate-on-single-line-if-no-active-region.patch Content-Description: org-toggle-item-operate-on-single-line >From ada4f2a55b7a701aac02d4fc167be4b46e72f2c9 Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Fri, 31 Jul 2020 18:38:11 -0400 Subject: [PATCH] org-list: Operate on single line if no active region * lisp/org-list.el (org-toggle-item): Operate on single line if no active region. --- lisp/org-list.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-list.el b/lisp/org-list.el index fb061b054..c43630d05 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -3032,7 +3032,7 @@ With a prefix argument ARG, change the region in a single item." (if (org-region-active-p) (setq beg (funcall skip-blanks (region-beginning)) end (copy-marker (region-end))) - (setq beg (funcall skip-blanks (point-at-bol)) + (setq beg (point-at-bol) end (copy-marker (point-at-eol)))) ;; Depending on the starting line, choose an action on the text ;; between BEG and END. -- 2.27.0 --=-=-=--