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 ms5.migadu.com with LMTPS id uEosK5SPsGIFkAAAbAwnHQ (envelope-from ) for ; Mon, 20 Jun 2022 17:17:40 +0200 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 YPk0K5SPsGIInQAA9RJhRA (envelope-from ) for ; Mon, 20 Jun 2022 17:17:40 +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 EDB30367B9 for ; Mon, 20 Jun 2022 17:17:39 +0200 (CEST) Received: from localhost ([::1]:33956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3J9m-0001hZ-Jo for larch@yhetil.org; Mon, 20 Jun 2022 11:17:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3J4P-0005GG-6N for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 11:12:05 -0400 Received: from mailgw101.it.ntnu.no ([2001:700:300:3::177]:59850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3J4M-0008VB-2X for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 11:12:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1655737916; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version : from; bh=H7TkROE9/tVBpLwZXYqltg1GB2MyPPDupzrcPIBFUvg=; b=Hqj4KbLPwUfqCXVG4YJd7HCpxJMuRvMGXbwR3NZz9scSpd7FAsFcOXp04K0w20WwRnBKK mica5Yn/mFOmzoTfBCNaNA4WJJioPXgaESB0jquORdSbm7iPkdpOcdGxKkbDY8neMJ3CkR8 RY/5sT7N84aL9x94JGZnPN1k0tgSneqVGovZNEtvjWJj3rGLb/9hl+33D2hBcegpcEQ2Vcn AEVEszeGkvmMcAQr2FXIJnpCO0XplUzcCuToDiNDOlcTUN8xyLQ4Sh9tEkInqJEhW/xjYwW qiRrmv2I5YFXCTrx8XGlb4/jB6dNIbN0SS7UMkDKJDxoAyXlrqJBpTvXjW0Q== Received: from localhost (localhost [127.0.0.1]) by mailgw101.it.ntnu.no (Postfix) with ESMTP id D09931DE02E4; Mon, 20 Jun 2022 17:11:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw101.it.ntnu.no Received: from mailgw101.it.ntnu.no ([127.0.0.1]) by localhost (mailgw101.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eSkbNsRNVtWI; Mon, 20 Jun 2022 17:11:56 +0200 (CEST) Received: from NOR01-SV0-obe.outbound.protection.outlook.com (mail-sv0nor01lp2044.outbound.protection.outlook.com [104.47.30.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw101.it.ntnu.no (Postfix) with ESMTPS id 0FDE81DE0044; Mon, 20 Jun 2022 17:11:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YHp3Lu011+MvrwMm/OrI445RH4Cjg9zDHglHlC5otl9KRPNrMt6Q7Vl1b4hMNOHVq2GPlAbwRkRaCDzeD/DptXwBEEyvmTG52HA9BufuOxqGX2zxSSZvi/O69FnF7gDWnwJND3u0vPbfzZOeSidizIIVHFNk7cu+eDrlibArJvvZ+dTz/S06myQ3uCRIv/s4UH6JyN9Lgcub0E+PONzojMqVAbJ4wfdhxnvifHIqmKwpZvy77japQ7PxlkM2G64WvIonP2T5D3Hg6iTLLBcvgMug1/UKHqe6bT0IerDmS6gkcVqxWHL1k9u1flU3bMLJftDDgdh7Hg6wITIbPp577Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q2IKFYLvuM4OIipzebkDqifSyZSRqhczAzYdMUhjDSo=; b=Tqlv9ccZ4Rbg3lW7theRMitVNakCZQEab7bQqMVzCumGaGGxTaNFbwW1gI6jDeGRoEvilvrXqFUfFLcTGaRQ/L410aPFVopHu174o5TJ5UD+VsZQ5M9OTEZzHZ/Rpm1V5ImpR+WQlFy1ZrRpAMdodoFp9jXfiJeExc9bz2Fq/kA+bECAPYBhznnGBHJzSROV6SGqkbwgCwkb0W9OuaH+VSxBDjZOHcQcEGDstlbZKjkPAovvs+KAjc6XHLOvuaodjx0sWkccOUL8wzK2nJ+nE453TlZcsJlIstK4np8BenKWicHO26YUBIY8lwPawNcd0SAKynAH7GqQlIo4LGm0Xw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ntnu.no; dmarc=pass action=none header.from=ntnu.no; dkim=pass header.d=ntnu.no; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studntnu.onmicrosoft.com; s=selector2-studntnu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q2IKFYLvuM4OIipzebkDqifSyZSRqhczAzYdMUhjDSo=; b=FQP8ZPdUWb6/qwsFovGohcuihvoCyVD0ZVdrIZ4+kEL06MK+ZBKV5cKSm3G+JXq5UTbeoYYdq5q3vqO7wmzMWm2f/H7+RumczbrYPwhxUdxutTvzJlRzNviv997vE0aOPvxyBKwOQ/+1vJ64wVMYEYqRR2rwuJQofOsw21aQWyk= Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:11::15) by OS5P279MB0646.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:20::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.13; Mon, 20 Jun 2022 15:11:55 +0000 Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa]) by OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa%7]) with mapi id 15.20.5353.022; Mon, 20 Jun 2022 15:11:54 +0000 From: Tor Kringeland To: Ihor Radchenko CC: "emacs-orgmode@gnu.org" Subject: Re: [BUG] Adding note to heading without newline at the end Thread-Topic: [BUG] Adding note to heading without newline at the end Thread-Index: AQHYhDyASblWoZjddEuOnSdcIRbfra1YTmQAgAAZSQA= Date: Mon, 20 Jun 2022 15:11:54 +0000 Message-ID: References: <87o7yn3117.fsf@localhost> In-Reply-To: <87o7yn3117.fsf@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ntnu.no; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 68baa94d-a75e-43ec-44fe-08da52cf364e x-ms-traffictypediagnostic: OS5P279MB0646:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4c5eTBegEkMpcMRaoEH4Nrxxq8WQreP5cILZylqNSvZrOqGJ0C6CEUPSkaT8LypHvc3u3IhzJ6T1hu2Jqq7c1aC+V2v4B7EFs4FcL+UoANoIQngmMVHNS8Zclvd96QRQMpYvD0zl1bl18BYxvW0ydVpm5ymIZbgzHwrjNVH30T1seK0ADiQI1lC5QrlgvJcbMxNooN22aG7NllMT9XnpUNdZFHXHU2XxniK10J/UGj7HJ1ioiLo1SLhdiXKs+8jKIdydfQ3UeF+vEWCqoODIytWCxSKLniJbnoG8T1cAfwYL+1lZb2OC5RzN7oRaiEAzhk963latSB/JuTuFEV7C8HpJwOApZ/gRsLT/Kc1yTrkEHyHIRJZuRH+lBItHBkM5xV/VxfyPsu63xASmEdQHLrGsp1tk421FnfGX5Uv2tQRGdCbYEvLe4gukLPhApPo6NODeOB0syUQwAm4NW81ug8092B1zxb8UgDoKfGSYqo8Bg90bsM4tvf/x3PMShRwink0jtCOEdjnFtWhI1WVnNyBTUNYUWtgeNfy9CrHFJBj7f0Leyzngl2b8neKIeov8kdxv4b8uvhc4jhFOTjTi2eym+eEUCSTE4O0rRojAEbneHWiVrmelRQOXOpiGuPwgn8HNRzr6qr+9u1rhXH9OV9jglzjdU+rVSXvVpH/qAOoQpxhk9SmN4+y+zeB5XFHXN78KlvuyidkEN8SchJ6SjQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OL1P279MB0194.NORP279.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(6486002)(8936002)(91956017)(66556008)(2906002)(4326008)(36756003)(66476007)(66446008)(66946007)(76116006)(186003)(498600001)(8676002)(38070700005)(64756008)(316002)(71200400001)(786003)(38100700002)(6512007)(2616005)(44832011)(6916009)(26005)(5660300002)(122000001)(86362001)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?1RlXScgQejjsHTWPDsVQFeY8Kw5LB9VFC4ujHaO+NxC5lWNL9Gp8bJBYM6?= =?iso-8859-1?Q?ErbPtOOnOV97Nl4/p7ehYicmRRRzfnPANbN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+imNL4UssCqx/GoCRkfEeW497T4JJb5oGTYPWmMHrhfOrusfpaqPzDw?= =?iso-8859-1?Q?Pu+n/6VEoJArzhwmXpHlRk5frC8Eg85mGpxl4TTSF8izdLB+SSDIL3djG1?= =?iso-8859-1?Q?HrXHsYekCjZFb/qUWF7WpfndSdqlZeGOQHDE7FFYUrGNwDFjqb4D3tHVVx?= =?iso-8859-1?Q?ZnyViLkWHZQISpNbnndsUgAWKLKVOWRRNhQEnHUY9Um2H+bTIdSYwQMFSV?= =?iso-8859-1?Q?SPEMLI9QI9nMh43CAZ3w+sWBNfQXl9HWgo8r+pcjDmmIjYM1zv4hIMLVLH?= =?iso-8859-1?Q?Ric3tENPe5GEGfEkqPf4SQWOyedoIHzO6em+zrqUob+cJE/41nGC7/Ye5O?= =?iso-8859-1?Q?fWeSk6ARDnj9McI2luzj2+xsMBVfQ7Gp8RI97v9o6ukiO+23BNucUGLUnd?= =?iso-8859-1?Q?MQZd1u9qxChxPQVhE5ct3ZNbEMwjiENcP1g3LC8paTqBjT7Drf/qHe+oIZ?= =?iso-8859-1?Q?TejgS6/mXukD445dCHCtx0bxZg32bXYLjqZZcc/sLM1Y/YpQ7bevbMg8S4?= =?iso-8859-1?Q?z55cEhiFhEyiJfm7Z3mRd2IybhiMbKMJZlB8F7HrAfx1F89amHJ5lyVpwx?= =?iso-8859-1?Q?HnBDFry9lqXh6sMdRQKQh9O5Af3joK7XFkUytnrgAnwbnKnCnfg1KZM28k?= =?iso-8859-1?Q?8Av4lTB3xcxp49HUJi6Ifcnw/Rc6yVPkrwiihWPBlqjjkHwtyFswXSm9jp?= =?iso-8859-1?Q?AzCpUNTCY+S2CDqh79HqVY7ljg+9/CbcDveVfNUshVATcuVQCjRaZVdUD8?= =?iso-8859-1?Q?C9FlAERK87m2fBxp1+qoizzboTdycKlvKUBq42twGdyQrBzuFkU3V3rJGs?= =?iso-8859-1?Q?Y1n2x59fsg=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ntnu.no X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OL1P279MB0194.NORP279.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 68baa94d-a75e-43ec-44fe-08da52cf364e X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2022 15:11:54.8997 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 09a10672-822f-4467-a5ba-5bb375967c05 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OyHM2KsztnUB3QoTUbk0jFfaAd2tI16h6P6iVN8Y7/JIYxaB5avtnU27jYh5gQ/qChBiGjBJWLM1wW2f3MIbXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS5P279MB0646 Received-SPF: pass client-ip=2001:700:300:3::177; envelope-from=tor.kringeland@ntnu.no; helo=mailgw101.it.ntnu.no X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655738260; 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=Q2IKFYLvuM4OIipzebkDqifSyZSRqhczAzYdMUhjDSo=; b=EgogXo5946zOPMBqpginHMKFe21eZNqQQlwimJeHuoek4P3pcIVHA6AB7G3nHkR5ytH5Gi caUHJMUOiQZf2yGnPTckh/LhvMOOFC/xZU3P2bLwHlWFG7+1G0BoZM/75CpBRRCfMDRmWz sytiFedzB8sskjn7ES49RUVCRb3s23Fbjx8hYLW2IN+AcRQ7uz6z0HhAakguf+r/NAeC6H bSrNTTVhJukEpwt9r/jHvoGc2ZkrpfQq0bcn8fB8/X2i2aGtbrReIIkpsRtzNYcVcDtZIX V+zRV/QFI8RkUt+04vYlHq2YuRIVrzEwVqM/tUkqsaLoMagVHNnfIXkOIBH64g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1655738260; a=rsa-sha256; cv=pass; b=XtO4uJL7p6a6nivSo88z5Iywb7qZ7ADomlNL2Xlb2gNbzFyOI4ZFtTIe7FGEIJP/uVn+bx qL5KAacmoH/w1f1wTEWr2r/dJP4e9B3r1M4ATKRZagj9Z5nfFgVSc878N5AmM1oldvcQQg OQ+Pb6YqM6rcQrQieyJW8Y1jtAWRhLKTZaTXjN1OnTqH7TAjOOTxdYpzMGxV9pDP8rgSeE DPYkpksG7Ednl5rDKVHpOGGLlN625osHwLiUGaYY0n3D8JeBdN00S+RIi+fSx4tb3np4TW gOvXFSkz/fNHo0+wc2pT5IRxsoUhMR8wiHoO0jaXKo+qHI5ZF164/laapd+l3g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ntnu.no header.s=s1-1909-ntnu header.b=Hqj4KbLP; dkim=pass header.d=studntnu.onmicrosoft.com header.s=selector2-studntnu-onmicrosoft-com header.b=FQP8ZPdU; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=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: -13.47 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ntnu.no header.s=s1-1909-ntnu header.b=Hqj4KbLP; dkim=pass header.d=studntnu.onmicrosoft.com header.s=selector2-studntnu-onmicrosoft-com header.b=FQP8ZPdU; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=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: EDB30367B9 X-Spam-Score: -13.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4e20fSqnHkCy Ihor Radchenko writes: > Can you reproduce the problem starting from emacs -Q? I did. The bug only occurs if there is no newline at the end. So for example if you open a new buffer and don't save it, the bug should occur. Similarly, in my own config (where I have enabled org-log-into-drawer), the note gets inserted below as is correct but the last letter of the heading gets inserted at the end, like: #+begin_example * tes :LOGBOOK: - Note taken on [2022-06-20 Mon 17:07] :END: t #+end_example (it doesn't seem to matter /where/ in the heading you are when you insert the note --- it's always the last letter falling down). I haven't been able to reproduce this with emacs -Q yet, though, but I suspect the source of the error is the same. Anyway, running Emacs as before with -Q and inserting a note, the result is: #+begin_example - Note taken on [2022-06-20 Mon 17:07] * test #+end_example Again, if there is a newline at the end (as would happen if you first save the file) the bug doesn't occur. I'm using a recent build of Emacs 29.=