emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Skip Collins <skip.collins@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: [BUG] buffer folds incorrectly
Date: Tue, 26 Apr 2022 18:52:42 -0400	[thread overview]
Message-ID: <CABUh-75=tY6WXHstXAUuaOJJf-HrNyHN7r+k7eV9YBjgNMgC9A@mail.gmail.com> (raw)
In-Reply-To: <CABUh-74vvn7i06T3zB=38_BFfBKS9J9H8NxGp_-eecoAPgygoQ@mail.gmail.com>

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.


  reply	other threads:[~2022-04-26 22:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01 19:46 buffer displays incorrectly after capture Skip Collins
2022-04-04 15:25 ` Skip Collins
2022-04-07 23:26   ` [BUG] " Skip Collins
2022-04-26 22:52     ` Skip Collins [this message]
2022-04-27  8:49     ` Ihor Radchenko
2022-04-27 15:58       ` Skip Collins
2022-04-27 23:37         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABUh-75=tY6WXHstXAUuaOJJf-HrNyHN7r+k7eV9YBjgNMgC9A@mail.gmail.com' \
    --to=skip.collins@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).