From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qDs1FEKpsWJaowAAbAwnHQ (envelope-from ) for ; Tue, 21 Jun 2022 13:19:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sI4mE0KpsWK8DwEAG6o9tA (envelope-from ) for ; Tue, 21 Jun 2022 13:19:30 +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 E52EE259D1 for ; Tue, 21 Jun 2022 13:19:29 +0200 (CEST) Received: from localhost ([::1]:34562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3buq-0005yO-Pe for larch@yhetil.org; Tue, 21 Jun 2022 07:19:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3bto-0005yE-84 for emacs-orgmode@gnu.org; Tue, 21 Jun 2022 07:18:24 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:50909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3btm-00068Z-JM for emacs-orgmode@gnu.org; Tue, 21 Jun 2022 07:18:23 -0400 Received: by mail-pj1-x1032.google.com with SMTP id go6so7936419pjb.0 for ; Tue, 21 Jun 2022 04:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=fiAfNfukf4KnEaawQXXRB+Nvq1Xfll0OKlIUc9Mpw6A=; b=Vorj35SJSEihSQcb4xvUYnfrjmFCSEB5v4RpKAXxdUgMbyF6VjYmtN4w4SJz+bBa7N xgQEEhOx6HSOPGRPpVl6AzbrdVu/kSF08N86r2vt1EjSTk0h0YXl8bNNT8oOQD5IDiFE bFO5M5Nrng9oJPMoV+bg1aakwG1r+/vX3WYOVoSc1b+DvsyxdkaJxHlExVVJIhtfH56k TCq+Hb9LIw06pM3QS5I5WzAZP3FgLcM6+E/8eIlMTm6dMIOzozwC8HvyREh9wAv2LktM S6vbrhW/w3aJO/jlSKtZtPtB+rlY+KumW+UVOUW7ibBe56PK5nITmIBxVu0xx602o+f9 qKNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=fiAfNfukf4KnEaawQXXRB+Nvq1Xfll0OKlIUc9Mpw6A=; b=cvM8hGyaipvhK0XadDN5tcoueIb0DXJtpHpk+Akodls1lke3BfBoYA1CDuQqDPNzql VWcJ9nTvdVikKsLR8GsNX00QP684hap0lzW6CpPbW6t48iV8p8ezrI2FFGeqosQLpAtP J4132V/DdPs5jWc6JRPctQEb6IKn4Z1GU47r+2MX9pFKGZd7BHIE/PBrL2YSN+negmpu nAgYoyCIMr0SKWSVHdICKwUEd4jPsHx48V2ZiLV129PKTmq0v3i5H2HMHd9aSigkya5i pdrNxUCqdRZaoJC9yriaUWNrzChpubXPBgHpxYuLAanNGsbbLtz4JcxkbcBw+tXR9GHO sGCA== X-Gm-Message-State: AJIora/NADITM7iofBzUEEqukOWZ84k/kSCqlF9VDXTD+N4LpQIKW0O6 aKbwICKQlmmaJoK4+4TCZj7AUVHwPcbnBQ== X-Google-Smtp-Source: AGRyM1sg+RSGf/dBUAskiPXRK5jdt7kum+RjprckF05gc4ksoH60I581QAhpE1MFVnlE3HRuDW87jg== X-Received: by 2002:a17:903:25ce:b0:16a:2684:8865 with SMTP id jc14-20020a17090325ce00b0016a26848865mr9458530plb.42.1655810300058; Tue, 21 Jun 2022 04:18:20 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-0606-f8de-cf8d-01d8.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:606:f8de:cf8d:1d8]) by smtp.gmail.com with ESMTPSA id s17-20020a17090a881100b001ec7d979da1sm7333943pjn.15.2022.06.21.04.18.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 04:18:19 -0700 (PDT) References: <87o7yn3117.fsf@localhost> <87fsjysqhk.fsf@localhost> User-agent: mu4e 1.7.28; emacs 28.1.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end Date: Tue, 21 Jun 2022 21:13:56 +1000 In-reply-to: Message-ID: <87pmj2p8n5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1032.google.com 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, 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=1655810369; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fiAfNfukf4KnEaawQXXRB+Nvq1Xfll0OKlIUc9Mpw6A=; b=ZSLgvXNr3ZEaTOfs2DeqKhuvWr0Tt9kFXpB8EL9Du1zDigUDSTuG2LNyQ6INtq045bDKAl CD7rFAJMyyQW3Vm8OKYtdbsmG4NLj0h4CI+wi0HkTVAz4HIvUJRIGhof+2GlR6WVYAt2v8 RRfBR2YUD2+z4SthTemVvMqeJmq6OTekRyloJ9T0Y7TbT5XyggYTPOf8CZXM4L+hpsFizm rtho6zFSva2WxmucmoMpeF7w1kZ2WRMNGp06lo184Q/gn8mS/LzyzTC8FwmjWjw2p04KHI OgWKeRCNY9x7iY1R4QmQu4Tfa0g2yUmq9eO93ubXe93QF8gNVmCRlB4EkC8I+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655810369; a=rsa-sha256; cv=none; b=hT82hbc35ZIuQyjxSsxqjyszWvdvGNSSFk7CBq7TZoCKlyJyVgWp/PZqwrTob+PuCnoea2 6aqR4wZuivZPAdsP25v9saY3bRcPI3LsNiQZMdDWD08vdK7NQIrxn1lDUQaWs8JGpdFJYX ENjNWSgLtTNXkHrIX/1h8dgisvHe+F191aYP0dzapXGCL90j1nUfcamN5QWk2W44oWwbCH bjgU+F9Ap0lq8MSB/8/VA6vszpDFJw42ZW/d8MIGhUKVSEEh66PgPB+50lmuHicWTGUEX7 Por5r56nl7LQuMSeYNvtI8nU5dGAnuN19d7VqzlqZgSN1VF7ikqmaZ723PU6Fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vorj35SJ; 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: -7.47 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vorj35SJ; 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: E52EE259D1 X-Spam-Score: -7.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: gBxbsm3ROxPy Tor Kringeland writes: > Ihor Radchenko writes: > >> Aha. Not saving is an important piece of information. >> (said the person with compulsive saving syndrome) > > Thanks! This fixes the bug (which was present in both Org 9.5 and 9.6) > for me. However, my original bug, which is only present in Org 9.6, is > still there. Do the same thing but set org-log-into-drawer to t. Then > > #+begin_example > * test > #+end_example > > > becomes > > #+begin_example > * tes > :LOGBOOK: > - Note taken on [2022-06-21 Tue 12:55] > :END: > t > #+end_example > > This bug also only happens if there is no trailing newline in the > buffer. Not sure if this makes any difference wrt your bug, but wanted to point out that your test example block is non-conforming. If you have a line starting with an '*', you have ot proceed it with a comma to escape the meaning of the start. If you use org-edit-special to edit the block contents, the escaping is done for you automatically. Running org-lint is also useful when you think you might have a bug as it will ensure you have a relatively clean and correct input file.