From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SGTfMlNzT2KlAgAAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 01:27:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AFJ5L1NzT2KiNwAAauVa8A (envelope-from ) for ; Fri, 08 Apr 2022 01:27:15 +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 5B43125B62 for ; Fri, 8 Apr 2022 01:27:15 +0200 (CEST) Received: from localhost ([::1]:54500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncbWz-0000vq-Pq for larch@yhetil.org; Thu, 07 Apr 2022 19:27:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncbWW-0000vf-Cg for emacs-orgmode@gnu.org; Thu, 07 Apr 2022 19:26:44 -0400 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:44738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncbWU-00056G-RV for emacs-orgmode@gnu.org; Thu, 07 Apr 2022 19:26:44 -0400 Received: by mail-yb1-xb2b.google.com with SMTP id x131so12216589ybe.11 for ; Thu, 07 Apr 2022 16:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2QFjL/3z9j1MHXpb4QF9+m7YrQDspOrtdUPA/Xcz+ls=; b=cRNSYbhMWWCmIBd0K3gGYiIzuIDB8dwr/Gb0jSMCy8WnyiXv8Ec7/skl8jkr+j5zJa hHUlxTInbvx2wbLiSaLZWxZZdxPs4KOLWzWsFOXamlOcv+WkbkSKHOzux3ppJhz99CNL QCefVHaroqSRVuxGqtWpH2CvcDa/u571mVt8MSaVN/sYwXn8NyIDfoJy0+5SqbHXgSLK /UGy7y+9twW/V1u1k28XBk0/IJKjCxIet8Sie52juHWrNV7MMESyEZMlfQgF/FLa12k7 FUuUFxcfH0QOtbAWCSaxErYRW6F5W0RFIT2LGkRn2RzOjpKjmp5+xtW5CWo5c+gXcCSJ ymbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2QFjL/3z9j1MHXpb4QF9+m7YrQDspOrtdUPA/Xcz+ls=; b=G8KpM+s9Ok+1LEvYbvg/tIJ6l8nX9xPsEV5rGXHkn1EZyJxns/6gysvZPZw46x54rZ JMn6oBQhLELDC0gombtCRUObgLiyPW/A1vmDVjR9HsLhS2vvxXRMDbheqyDMnRMxP7xb bD5U+c+b2Wm38yy56ydieyWJwNvJeJSjJ2D1Gu0kFnYhW8DrIeJ6acRTP0cYis94vu2Y y+ME6CCbFxAxE9rV8KNtAW38vpWYyak7dBqIlh0AZadYPXnq1wuPX+HLe5dc9DA+gBRu 2q4biMIAhJSuZU1DQZNDSKKN44lA3eroHPZaKWgci/+45MZ2baNC18QO9Arkk1i0+4ea 7mKw== X-Gm-Message-State: AOAM533tuKGFKHZMTNOczDjOnWVscWig5ik6QoR4RDcandY5r3FKA6VO 29HgF8ZSnIs8TPg+UyrYyEvO97gwJqJdaJV6RJynhSXz X-Google-Smtp-Source: ABdhPJw6Lu1XjyG75a5rJqIEDrrejOAD2noC6yQ/OEDAJja7vwBe1kvVpkFsxLbIrGd9Je1tVtUvATd3Icdy2mPGlOQ= X-Received: by 2002:a05:6902:1502:b0:63d:4d6f:dc1 with SMTP id q2-20020a056902150200b0063d4d6f0dc1mr11778675ybu.140.1649374001502; Thu, 07 Apr 2022 16:26:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Skip Collins Date: Thu, 7 Apr 2022 19:26:30 -0400 Message-ID: Subject: [BUG] buffer displays incorrectly after capture To: emacs-org list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2b; envelope-from=skip.collins@gmail.com; helo=mail-yb1-xb2b.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=1649374035; 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=2QFjL/3z9j1MHXpb4QF9+m7YrQDspOrtdUPA/Xcz+ls=; b=tNu0n4j8AUAUkI62oNlUVL90/iuF8T+ofaS1a359uk/ckvEjgGudsLM9wiHTba2m6/AlE0 OaUYIGldEKX8heaoAWLIRjN+OzYz/xJgioVag69rjVNRni0Rbc3gOSrwS4bZxFetSMUl5M VR42X8jHgzEtYiUY8kj4ujJDlDLBVBkfhzM7d6lHtWVhIQlNs6g6jzxH+l2bKiuxgFJPew oyl0Bxp5Wrd4RdcLAGZyBV1G7I1paLQKHCmKAk4IVaRSdeFpQeohZ5fPnoXsh8vspXm3xp d6vu7d+If7TIi+Pauyt9Du9YHvDlZt/x92k9Fh/sjpV9LT9ftjUvAS4NlXu45g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649374035; a=rsa-sha256; cv=none; b=Uq+LKoPshFLz8tHbV1oVrdzR80xoTGf8RyKDMafJxFhmF89BgaajkpbZfzli3W8tkJRB/5 AYCzpLHzVlcjd9r0CoqA4+rVX/rBfHJ/aqoK4i1PvCJNB5aCcwomzjGkUx3Fd38TVoXAyd nIQTeFbgYb5ZPq5VM1UMYDWmTYlAs/BiQwX7+FHeeQ/Z2DheOElwWCQt2dIO1rUMxqlfTt RzDqjV9YLmHbfSPPZVSYdFRn+f32Q/VR1pHCv2UZRZnYMBwUeXHJa0AHdNpfQCI2gnlrDr 7sh9Yzwxv/1tPqgTtCwFzq9K/PmVzwtn0AkQUYIzJnV3UDl2lBk1DuSOyv2m7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cRNSYbhM; 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: -5.86 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cRNSYbhM; 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: 5B43125B62 X-Spam-Score: -5.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: WcdRQdk0iU+r I think this is a real bug. Am I wrong? Seems like it should be easy to fix. On Mon, Apr 4, 2022 at 11:25 AM Skip wrote: > On Fri, Apr 1, 2022 at 3:46 PM Skip wrote: > > Another manifestation of the problem shows up when using > > auto-revert-mode. Starting with the single headline in a folded state > > as above, when I execute the following command in a shell, > > echo "* TODO bar :action:" >>capture.org > > then the capture.org buffer looks like this: > > * TODO foo :action:...* TODO bar :action: > > > > TAB unfolding the first headline shows up like this: > > * TODO foo :action: > > some text...* TODO bar :action: > > I confirmed that the buffer display bug occurs with emacs -Q. Steps to > reproduce: > 1. From a shell, open emacs with an empty file: > emacs -Q test.org > > 2. From emacs, enable auto-revert-mode: > M-x auto-revert-mode > > 3. From another shell, add text to the file: > echo "* foo\nsome text\n" >>test.org > > 4. From emacs, fold the headline: > S-TAB > > 5. From the shell, add more text to the file: > echo "* bar\n" >>test.org > > 6. Observe the incorrect display of the two headlines: > * foo...* bar > > 7. From emacs, fix the buffer display: > S-TAB > > 8. Observe the correct display of the two headlines: > * foo... > * bar > > This bug seems to trigger when text is added indirectly to an org-mode > buffer, via both capture and auto-revert. I suspect it would show up > via refile as well.