From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 cBEwDacbVmMCAwAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 06:59:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yOH9DKcbVmPZwwAAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 06:59:19 +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 EE1E62A5E0 for ; Mon, 24 Oct 2022 06:59:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omoyc-0001JY-H0; Mon, 24 Oct 2022 00:22:14 -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 1omoyS-0001Ew-B1 for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 00:22:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omoyQ-0006yL-4d for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 00:22:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C3424240101 for ; Mon, 24 Oct 2022 06:21:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666585317; bh=3WMOQrol2w0gubG3aAQ6XCU5SaPktxU4KFTzhfMtmMs=; h=From:To:Cc:Subject:Date:From; b=nTdmW01yNLOuiCLU9HanyeouGm3d8BKoqrzAdS9pIbxBb3I5m3GjfAPw0fca5YVtz yxaI0nXoQYTlD3znoBFDq7Ef1epcYCaxgXZzP0yJFp2c7Hi8p5CH3iy1wLoqxUC9Gz b2qpPGonnxy42QlcrKFBPXLEd4nx0pPnjxxEx1gGYZ25/Zs/f9ecx12FxaVKyA9PUA KiaaNezPy+uexHNOLcLww85QWUoDDtWVe1l1sid9wZN5QFEVqnxj0G5PVW6euywNqN 9NhaYm01NPtIFKrltbIt8aArYeXPDIa8QJ6ARl8rnpD/e1N/p9Z5IbNSMdE5hAKktK r2P8PRaPY6XaQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mwhjc0tw0z6tmM; Mon, 24 Oct 2022 06:21:55 +0200 (CEST) From: Ihor Radchenko To: Gustavo Barros Cc: emacs-orgmode@gnu.org Subject: Re: Bug: canceled capture operation results in demoted following heading when template ends with newline [9.2.4 (9.2.4-11-g1c3eae-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190722/)] In-Reply-To: References: <87sgqqq7gw.fsf@gmail.com> Date: Mon, 24 Oct 2022 04:22:39 +0000 Message-ID: <87v8o9q29c.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org 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=1666587559; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3WMOQrol2w0gubG3aAQ6XCU5SaPktxU4KFTzhfMtmMs=; b=LimI8GfoBSthSTVKO0EPcQWvXkDn1ztUOGgJBqy+MG8v8g/I7zILiMk7KzKIPjZVaO8ZZe onRFJK+ocsE//Rc4PrzWFkey0ojyikgBnFag2RvIPV49BkXKwo89SWdP+ziGsU7QnefVbg Oq5+D2XMPjUDrZ5yI4ZSM9LpfcN1vFn/bGPxRhlpEbTc3Ychy5oqhgkRolxAM+3qshRG+t nq8AMxNrTOVSXk87AWYfEUmiQWLv0cW0jclh7GHwSSC0URUUNgjjjtj2SGo889ECLP2NOZ GIQ6ZKB1yDR+8BaiWSDdnEvqsg9wvs1mhWW5DAvH+Rb3h8cirYfIq/myeYpIhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666587559; a=rsa-sha256; cv=none; b=Mijn++ja2QAQ1IJVTGdTkBR/b9x8vpJaDinIj4QVK331l2idZwU58K2Az46s4kBSm/B+zB z/xbLJEUjdR3BKuVz6oeZi6xbfq3tEVyF2ljKopMU3XEd3uCW0LuFVt4w44FfEPbAFDFXs 4Z7BStYm0N5VwEuRvpN0AB/899NcL3KTydnOudjS+f4OYgzzqYEFQp4b5FESmLEOsQ2nav g0+FpjyLoqIBqXossH2kBLqDpf9SIBmKJWxDwikqi90WSTCh0d70m+msIW3rrqBQMUu8cZ UUlumZgvXy1W4Z4zmtdqgPkD93BuTx8dpn0BXxneTPgyHcgmKJFdi0XzDsPj5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nTdmW01y; dmarc=pass (policy=none) header.from=posteo.net; 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: -6.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nTdmW01y; dmarc=pass (policy=none) header.from=posteo.net; 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: EE1E62A5E0 X-Spam-Score: -6.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: BDEK1dndbK/V Gustavo Barros writes: > On Sun, 28 Jul 2019 at 16:34, Gustavo Barros wrot= e: >> When the capture template ends with a newline character and the capture >> process is canceled, the following heading gets demoted. And it >> shouldn=E2=80=99t. > > a respectful bump on this one. I can still reproduce this with Emacs > 28.2 and Org 9.5.5. Thanks for bumping! I am unable to reproduce your recipe on the latest Org main. Note that we have several capture-related fixed on main but not on stable Org 9.5.5. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at