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 mEJ0JBgSS2KbOgEAgWs5BA (envelope-from ) for ; Mon, 04 Apr 2022 17:43:20 +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 CFbgIBgSS2IhMQEAauVa8A (envelope-from ) for ; Mon, 04 Apr 2022 17:43:20 +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 29D8B24C8B for ; Mon, 4 Apr 2022 17:43:20 +0200 (CEST) Received: from localhost ([::1]:53404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbOrO-00034H-HU for larch@yhetil.org; Mon, 04 Apr 2022 11:43:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbOZw-0002QJ-PQ for emacs-orgmode@gnu.org; Mon, 04 Apr 2022 11:25:16 -0400 Received: from [2607:f8b0:4864:20::b36] (port=40665 helo=mail-yb1-xb36.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbOZv-0005fg-4V for emacs-orgmode@gnu.org; Mon, 04 Apr 2022 11:25:16 -0400 Received: by mail-yb1-xb36.google.com with SMTP id f23so18216947ybj.7 for ; Mon, 04 Apr 2022 08:25:14 -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=kBYKpiWr8CyGZp0Sx+rrAgODFgLlHVtzOhGi+QG8zMw=; b=U8L1/nFpTJ37nFJ/C+NK7lYhj5ql1lt9kT5YRXhPnVLZ15XAk9Ol1KyMWTe4LvtCCK zjeeuvKYMmygpVee4kh2gePmYmDX74xnBTYCrKOr3VdXpdyLrPuWLGRMomllRFI0htYD fOc7sl5/XPpCnvnPHSR4JJJ5JGVK93KcFETlXTusdpsHN3S5EcrNZf5Xsg/r5RVNo6Zj M/O6EnESqDeR39HBdNReSCgKlSxXJTMEFpEkMPf38ybv49PDQ6bLRYjBVo8Dc4MdaN17 yuLYj/Qv+2DJdTqCD+2Ou8+INbnIoGpaoyLrPozI/QGa/8/iXsx6GDeepAL4szJyPcCD 0amQ== 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=kBYKpiWr8CyGZp0Sx+rrAgODFgLlHVtzOhGi+QG8zMw=; b=YnRVlfhuWTJ0fqKjKISUfJswavcuYOtQdA/wRSO4h4lmOLHf0yFe5XjLoUcOH84ub6 vvXVAKiq9kVC9Y0mg/a6Dst3XXIMRAB7jKGF623ioFDVFw7dWlqIORgw0clQGWfQD7ld aOUvfUjoDGh6TACMuP3cGXks9BhXz2xDqgMvMn13kUah29Bm2zYmHJ5rPoPoJsymdT0L GdnmEQYkj6SL/z+p2qFUL/+RLkgKAENgsbfy8emBKxXFmvi6euOZFAtELmd2mc6Hj9U5 DvKIAXbPHKyrdqU1EWWBNeNgp4nicFLBP4Ss3a+FQd9lKyVnaL2vGcVyc3NiUyJiyybf nnuQ== X-Gm-Message-State: AOAM532v340Cl+NwAA4EWisTcRjz/ZDivzeyB2xk/z6P/uiYAjnexA3m hX5hLsaEUM2c7dOgro73rqZQQQU0miXA3nm0bm5Xp5BWTOYn3dhD X-Google-Smtp-Source: ABdhPJyQa/+ikQQHNoVrXmRy74U6LmeN3O7lmhq/ucr1Hf9k57HqEjAXedA7Pk9FMrHOmmhH2TrtsP4AtXS17O0BU0w= X-Received: by 2002:a05:6902:1502:b0:63d:4d6f:dc1 with SMTP id q2-20020a056902150200b0063d4d6f0dc1mr324007ybu.140.1649085913195; Mon, 04 Apr 2022 08:25:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Skip Collins Date: Mon, 4 Apr 2022 11:25:02 -0400 Message-ID: Subject: Re: buffer displays incorrectly after capture To: emacs-org list Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b36 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=skip.collins@gmail.com; helo=mail-yb1-xb36.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1649087000; 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=kBYKpiWr8CyGZp0Sx+rrAgODFgLlHVtzOhGi+QG8zMw=; b=lVka8rMm3FEDfAUXGQlKmoUgzE9wPWi8v2B/O2eoJBITwAEzOa8alVwZeha5gz2g/JKqr1 sqHy+335hndoLf6q+Ibbiq1iTIIbvFPslqCZrO1bi7qS/K6ilOWdc+fx+02FsBBBZF1sGZ gczW3NOY+50ExL61gTki1/8lvkB2femydWaUWjfv3sOo5ORSwugRYT+oq4voWmqz+QjsNc RoQenLj/1xXInasXhCQ50K161FAL3LW9geW813fzP/tOW5dMawpTPdcXitsZw2kDIDlMLS FGlKhmRkQ2qlZR5wPIZQXJpmJokJQzKiEh6fLDC+yHwIoqdIsmi8stGMNcDJpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649087000; a=rsa-sha256; cv=none; b=ZZl7QaOdjHv38ZKA/dv81KZGrPkfL+eq8gzPfRU/1VZfnCtqUbSAcxZsJ7qkuQVUma5boz k5l+udkVn7vw8QwsaROxRJ3stDWKa8fZ4YClqRmPF81fV0ZcYO+A0nNov/0AjzYkcJ5FDG tSLwl5DZn//xMUQgB2JkHXlfsCdkbefEW2a5yWHfsgU1UQC5ueZ13N26kRADi2SY9yT6DF FC/FoZsAfRY+nsPobKb2E+rJ3vDXkYLOzxUpQvZg3lMyOUNAOnCHtlf4sfFoI0w5+GLkpH Vyaeswam7XSaYXnJbCS08FvvODOYfBhw2q70SiJx3zC9k3tQy1Ua7fE8BWjNKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="U8L1/nFp"; 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: -8.88 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="U8L1/nFp"; 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: 29D8B24C8B X-Spam-Score: -8.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: HFR03EoY8kMS 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.