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 oEVsK5nd02LZMQEAbAwnHQ (envelope-from ) for ; Sun, 17 Jul 2022 11:59:53 +0200 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 YH9yK5nd02JaewEA9RJhRA (envelope-from ) for ; Sun, 17 Jul 2022 11:59:53 +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 6C162D702 for ; Sun, 17 Jul 2022 11:59:53 +0200 (CEST) Received: from localhost ([::1]:40172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oD144-0001RH-Jj for larch@yhetil.org; Sun, 17 Jul 2022 05:59:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD13O-0001Ob-6D for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 05:59:10 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:45611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oD13M-0000Io-LV for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 05:59:09 -0400 Received: by mail-pf1-x434.google.com with SMTP id y9so8278208pff.12 for ; Sun, 17 Jul 2022 02:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=8cRUHZ74eqVFJ8SxWmpMPdSBhiYx1TSt9eFetQ9m2Jc=; b=D6PaJpRmxkcyGd9i+anUO6+MuaN2T5EOoHhPngFUCW7gc5EoH4IC2x1RuobL9OikMn RQRZv5KbHDqImLL/JDK5zTGv4hMWScftx3bjCfQF1M29+9jdUVx9uwQ42zWMw8r7JCh1 hEDd6hr73UfgUAuVtKkfbQ2y+ofPwfuPRWw7E8WrOiEU41AJp3QfQw7m/njOIaxr/wto X+rb+OgZGhuUddjGN6zQzNv/g58ypj/HT+xMcMfVLCm/luqS+Dx7flBT6lGF5SBq1cWt Sccn/H4y2t+JjyUl1Tj2lNZBW/U9ODCjfCTKRglHY1Vod3oPS7o7nVhopLWdHL6fSP2D rLPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=8cRUHZ74eqVFJ8SxWmpMPdSBhiYx1TSt9eFetQ9m2Jc=; b=Rzt8w5AZgRKQJqPC39JxfDsHKI9pNkMSdjuUMEVvzPAtYjD1NSbUzUkMtCM/q2+M4p 7P357cwGfhqgWiGvolpHLOT9AY134PyXokM1xd5gK6QK4vjGF7aRTbpeaDuZHsYR29ZI nKf2TLqOYy7if47vAf2F2CUqeDpmNEgaqFfL78D3NMEEhB3BmIOTnScBgt2rdJZ6TqfN 9nrbafA+Ox2znSddL3oRXUGN+6Kh589oAZLfQ51nU5kkD6RcTXO1i8j5LutZFqwKCPdS 640nqWhHeBBgBS34CvfHJIuFV9NhxRi8Zy5YhxQnzS/4SsKzOi0eyuh1b5rc0dAziTsK IMnA== X-Gm-Message-State: AJIora8QR5/JAAwtT9qiTV4DLhCJxr79UFVSXVr2jVvOUGk/mtD/zZK7 QBACuP+p2bAuWu/wwK5ooGWbIN4NJvpDeQ== X-Google-Smtp-Source: AGRyM1sCe5dioyaWZdNUR8IDWL3sdbIEJuWfUOQ2IDDt2VY3ZK68bL0Uvhcd7ThxCAkfSzZ0zlFXdg== X-Received: by 2002:a63:2c47:0:b0:411:54ab:97b6 with SMTP id s68-20020a632c47000000b0041154ab97b6mr19920152pgs.173.1658051947379; Sun, 17 Jul 2022 02:59:07 -0700 (PDT) Received: from localhost ([2409:8a70:2bd:4d0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id l13-20020a170903244d00b0016bfa1a5170sm5161415pls.285.2022.07.17.02.59.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 02:59:06 -0700 (PDT) From: Ihor Radchenko To: Caleb Chase Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-capture-kill: doesn't remove the right text region In-Reply-To: References: Date: Sun, 17 Jul 2022 18:00:10 +0800 Message-ID: <878ros83f9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=yantar92@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, T_SCC_BODY_TEXT_LINE=-0.01 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658051993; 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=8cRUHZ74eqVFJ8SxWmpMPdSBhiYx1TSt9eFetQ9m2Jc=; b=oIVcQN/mu6m1mejSi2OOYgx3C6igIfmKsSBljiQkFyJMX5V4m0Usw6SRU2D5kZpubf8/jM ECKFgPF3d65JKmfvxKN53VEiA4H7McxpfVNMszKaHrK9XlNWwFeilaSzxT3gC+w/CERGxM vzkHVcF9NphGf9+FRLPMLoc49/VyH7u3Bj22/Sk4ScXXo23axh3zGTK6F17RX3v525tzDy Zba9jBDf7vyDemqjFszsOdKOqpc+oy20UNLei4lnVsFke/vI1SGwbJp3vxeKtdXsDQPp0U A7pt8PwTJX6+ILYvVsaLAUsCnSMq2O2xbdbFMcqxaQIzvKtkYK7HzPJlYtzR5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658051993; a=rsa-sha256; cv=none; b=AdUKC+r0SpaeP97QyeeHQ2SKxKRL9A/SsJshj/yYUrsbg7ZdGFKr0ABKjka/03+OeCtIcw ML+q+zqr7QUXAObvveQwk/sIX6PdsSLcLJcZC5E4UpO3U5fF0F/ms5yq6AZ5d6VHTINrkD c+8RcQL5ugE1Nny7eaIlq+wlY35OTIuC4Ja8cUprfAX+b1nWsC9qTnJ8gr4wgII5cWvESp q+5fNJUNa+RTOn/OD4j942wgveOemMH+jtXIXtvh75ZftUDnosLypIzwvCdWO6iCAFgGzM VwE06I83M6tR+xP4BMeN2DTUfE/VdErDEUU5tY4Fwn0YGFLRNMj/MAL5hIzmOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=D6PaJpRm; 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: -4.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=D6PaJpRm; 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: 6C162D702 X-Spam-Score: -4.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: ntZ6LGZ5/TAq Caleb Chase writes: > I discovered a bug with org-capture and org-capture kill when > canceling an item or plain type template on a heading that has only an > empty line for content. Minimal reproduction is as follows: Thanks for reporting! Confirmed. Best, Ihor