From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 YAAaF/V3aGKAgAEAbAwnHQ (envelope-from ) for ; Wed, 27 Apr 2022 00:53:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kOUqFvV3aGIoRQEAG6o9tA (envelope-from ) for ; Wed, 27 Apr 2022 00:53:41 +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 BB0D916A26 for ; Wed, 27 Apr 2022 00:53:40 +0200 (CEST) Received: from localhost ([::1]:54476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njU3v-00039h-Pd for larch@yhetil.org; Tue, 26 Apr 2022 18:53:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njU3H-00039X-O9 for emacs-orgmode@gnu.org; Tue, 26 Apr 2022 18:52:59 -0400 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:44688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njU3F-0006c9-Te for emacs-orgmode@gnu.org; Tue, 26 Apr 2022 18:52:59 -0400 Received: by mail-yb1-xb2b.google.com with SMTP id e12so275071ybc.11 for ; Tue, 26 Apr 2022 15:52:53 -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=intEKdzaKoRbo2PBg5VtcmgijsoivmC1CsM5v+lqwhI=; b=C/YtIG20mTzC3Q89kYXowwFFGTu0JNfOgbWfvPoH3yhMQBh0HOF46G5YMA294CpYmz +IRT0hEgKmVDaFuzYbvHpnwLFLuPX4bR7/Dgg/DmTZGcIXPrEwk+FS65qmCXbEWGflth o9l9eJ2jS+QUgXxJ4botBoaSC2xSJRfHBzpRNJc1ZOxhRU3Fo/5lt3JTv+iV1+d5WyTr CsBpmX/jxKIRVsNFHq1tuC7Kc6l6eYpQaXRxLzN4bDCX7Aa9ljCUayjAW8h/Ia0vq3LE efYBAli2Fp5Al/iIfzRXEZ4JljB3MOnXIJqQvQQonOVoTToLK9hZJEoOe1VluPMOPuqe QsRw== 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=intEKdzaKoRbo2PBg5VtcmgijsoivmC1CsM5v+lqwhI=; b=ybGpnXthYpfcqRaKuLXOfyxathzTlvgvFDuBkiAPc84am1sRJEuJzhzNuhO3Vvz0r8 dhufEOagnqVuX9sVmCanBbav+eaA3qvqvI/A/GzkyOdcEM6d90HlVaa6pO+SbSG65m28 VcsSmEuTg7I/iB3kKj9GILYUPqQcLTkU371umi70EYenHF53AeFdieNgrAGTqaSqLO5H OI+MouioMdx1F6fpNwohyrzO7TyiwzFVLHX7Adg+ddFkr7PsvhpK6oy2tgKIhGgjixmF Xu2SCNA17TPyfHK7ByKHmZuFfpFSIuxsbGh7UOtRQqV7cuuSuym/lCNWGUehM+9lQT+Q JqFQ== X-Gm-Message-State: AOAM533ODEYOvSbGUhT0neuMy1cTIVqtug6XVAkj0yu/mtCzBIE5qRUL O4vtG3729FEULzy/OepTDw/1gm9QleicH8ibDHh50ttaf4SB4g== X-Google-Smtp-Source: ABdhPJxXKGJGKLrsdaBTvmgfsLojc+E1L7zRWxle7wLmn0EnFcxiZ2LMBZG7PQM3bpGh+tja7etWNs2YKAX4YwOcq9A= X-Received: by 2002:a05:6902:392:b0:633:621f:166f with SMTP id f18-20020a056902039200b00633621f166fmr24510420ybs.166.1651013572842; Tue, 26 Apr 2022 15:52:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Skip Collins Date: Tue, 26 Apr 2022 18:52:42 -0400 Message-ID: Subject: [BUG] buffer folds incorrectly 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=1651013620; 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=intEKdzaKoRbo2PBg5VtcmgijsoivmC1CsM5v+lqwhI=; b=ZE7Ts21r31oGc62BhCNNP/lFJBC2zAGN2MLaSWFWsAaJJcwdq3HVoX/wpFexYJPipxU/40 K5U46/5eQ4xOgtRqI5Ur/97PCe6zCpIn9JJ9E6V6yz0bdhE8fS/kEmaQRuSWEn8fmHaI2l aaAD346Mn0InMmc9R8awNchAYd6nmSRk7nVxB7BTYAPFyl5q1FhRnuMGxfPjtJ2MKGzKEi WoURQObEk+sp3fkn6naMW4axSw7QlzBlC4ykICKqwYd31ePB5fLF+WpmsPaTAMGogptHAJ /f7DQn6CbDQlJWItUcqJlRSf+jUGVgCXU/Z1e2uF0FsplC8fWngKwf+c4jmGZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651013620; a=rsa-sha256; cv=none; b=k1fVD/K4xGOguAlkzI0pi9ex7txj/y3F2OSUI0J+f2f6GOr2tUnA0buI8CF52L6B7nlwRD 2+iLOmEMJenIux0iL/j5FGKWTEEWP+0TSQXK1xmq0v8MQbM24imu57NEdB2YelGH0gSViT hxsVf5bVK76NssuiNIn1CFQiYsU9CgmLgD6hdd2XBFmBAbcrTSh8/Kho2R4TwBcxvHUSOq JGo+smDW1AMwI7s5uvvoIhRyfcJwODc85I2QnBqzBZ4VhW6+G6g6ZqEkTfRzyfh1TtFAJt EnTPwJ5ZHwq/ByS7I2crVuQXmuzLoslc0XXuXRFpT9jsg3gd/5VjWN13xMBN6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="C/YtIG20"; 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.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="C/YtIG20"; 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: BB0D916A26 X-Spam-Score: -5.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: dUuE+4Oyu+DM I confirmed that an old emacs (25.1.50.1) running on Linux with an old stock orgmode (8.2.10) does NOT exhibit the folding bug. The incorrect behavior still happens on my up-to-date emacs/org (Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /opt/homebrew/Cellar/emacs-mac/emacs-28.1-mac-9.0/share/emacs/28.1/lisp/org/)) On Thu, Apr 7, 2022 at 7:26 PM Skip wrote: > > 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: > > 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.