emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @


From: Aaron Jensen
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

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 via email to

[Prev in Thread] Current Thread [Next in Thread]