emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Jensen <aaronjensen@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Date: Sat, 30 Oct 2021 12:45:17 -0400	[thread overview]
Message-ID: <CAHyO48y1Tm7GRa12RTJrcMp3zkV2YmQLMpDcJJWdJ=Xmx6B1PA@mail.gmail.com> (raw)
In-Reply-To: <877dduo72t.fsf@localhost>

On Sat, Oct 30, 2021 at 11:37 AM Ihor Radchenko <yantar92@gmail.com> wrote:
>
> Aaron Jensen <aaronjensen@gmail.com> writes:
>
> > I don't have a consistent repro, but I am seeing this error often. At
> > different times it is in different files and lists different nodes.
>
> Thanks for reporting!
>
> > Warning (emacs): org-element--cache: Unregistered buffer modifications detected. Resetting.
> > If this warning appears regularly, please report it to Org mode mailing list (M-x org-submit-bug-report).
> > The buffer is: 20211025-journal
> >  Current command: nil Disable showing Disable logging
>
> Do you always see "Current command: nil"? If you do, do you have any
> minor modes that change text in Org buffers?

I don't know, but I'll keep an eye out for the next time it happens.
As for minor modes, yes:

https://github.com/awth13/org-appear
https://github.com/integral-dw/org-superstar-mode

And prettify-symbols-mode:

  (push '("[ ]" . "☐") prettify-symbols-alist)
  (push '("[X]" . "☑") prettify-symbols-alist)
  (push '("[-]" . "❍") prettify-symbols-alist)
  (prettify-symbols-mode)

And this to change the behavior of org-indent:

(aj-defadvice aj--org-indent--compute-prefixes-hanging-bullets ()
      :override #'org-indent--compute-prefixes
      "Compute prefix strings with hanging header bullets."

      (setq org-indent--heading-line-prefixes
            (make-vector org-indent--deepest-level nil))
      (setq org-indent--inlinetask-line-prefixes
            (make-vector org-indent--deepest-level nil))
      (setq org-indent--text-line-prefixes
            (make-vector org-indent--deepest-level nil))

      (let* ((indent 2))

        (dotimes (n org-indent--deepest-level)
          (aset org-indent--heading-line-prefixes n
                (make-string (- indent 2) ?\s))
          (aset org-indent--inlinetask-line-prefixes n
                (make-string indent ?\s))
          (aset org-indent--text-line-prefixes n
                (make-string indent ?\s)))))

I think that's it (and yes, that's a lot, heh).

Thanks,

Aaron


  reply	other threads:[~2021-10-30 16:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 15:17 [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)] Aaron Jensen
2021-10-30 15:39 ` Ihor Radchenko
2021-10-30 16:45   ` Aaron Jensen [this message]
2021-10-31  2:07     ` Aaron Jensen
2021-10-31  2:55       ` Ihor Radchenko
2021-10-31  2:48     ` Ihor Radchenko
2021-10-31  3:16       ` Aaron Jensen
2021-11-01  0:38         ` Aaron Jensen
2021-11-01 12:50           ` Ihor Radchenko
2021-11-02 23:19             ` Aaron Jensen
2021-11-02 23:32               ` Aaron Jensen
2021-11-03 11:40                 ` Ihor Radchenko
2021-11-03 11:45               ` Ihor Radchenko
2021-11-03 14:30                 ` Aaron Jensen
2021-11-04  3:18                   ` Aaron Jensen
2021-11-04 14:12                     ` Ihor Radchenko
2021-11-04 17:05                       ` Aaron Jensen
2021-11-12  4:25                         ` Aaron Jensen
2021-11-14  8:01                           ` Ihor Radchenko
2021-11-14 20:10                             ` Aaron Jensen
2021-11-17  6:05                               ` Aaron Jensen
2021-11-17 12:04                                 ` Ihor Radchenko
2021-11-18 14:15                                   ` Aaron Jensen
2021-11-18 14:30                                     ` Ihor Radchenko
2021-11-17 12:20                                 ` Max Nikulin

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='CAHyO48y1Tm7GRa12RTJrcMp3zkV2YmQLMpDcJJWdJ=Xmx6B1PA@mail.gmail.com' \
    --to=aaronjensen@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    /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).