emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Unregistered buffer modifications detected [9.6  (9.6-??-00adad9 @ /Users/h1/.emacs.d/.local/straight/build-28.1/org/)]
@ 2022-09-13  4:02 Andrej Močan
  2022-09-13 14:24 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Močan @ 2022-09-13  4:02 UTC (permalink / raw)
  To: emacs-orgmode



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

The error message below started to appear regularly whenever I save Org
mode buffer in Org Roam. It does not matter how I save the buffer (:w or C-c)

Error message:
Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected. Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The buffer is: *temp*
Current command: find-file
Backtrace:
nil Disable showing Disable logging

Emacs  : GNU Emacs 28.1 (build 2, x86_64-apple-darwin20.6.0, NS appkit-2202.70 Version 11.6.8 (Build 20G730))
of 2022-08-17
Package: Org mode version 9.6 (9.6-??-00adad9 @ /Users/h1/.emacs.d/.local/straight/build-28.1/org/)

current state:
==============
(setq
org-archive-location "archive.org::datetree/"
org-roam-db-location "/Users/h1/.emacs.d/.local/etc/org-roam.db"
org-link-elisp-confirm-function nil
org-directory "~/edocs/orgfiles/"
org-after-refile-insert-hook '(save-buffer)
org-indirect-buffer-display 'current-window
org-roam-db-gc-threshold 2305843009213693951
org-crypt-key nil
org-hide-emphasis-markers t
org-bibtex-headline-format-function #[257 "\300%1\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
org-num-skip-tags '("noexport" "nonum")
org-log-done t
org-load-hook '(+org-init-org-directory-h +org-init-appearance-h +org-init-agenda-h +org-init-attachments-h +org-init-babel-h +org-init-babel-lazy-loader-h
                 +org-init-capture-defaults-h +org-init-capture-frame-h +org-init-custom-links-h +org-init-export-h +org-init-habit-h +org-init-hacks-h
                 +org-init-keybinds-h +org-init-popup-rules-h +org-init-smartparens-h +org-init-roam-maybe-h)
org-log-into-drawer t
org-roam-buffer-window-parameters '((no-delete-other-windows . t))
org-num-face '(:inherit org-special-keyword :underline nil :weight bold)
org-startup-folded nil
org-babel-after-execute-hook '(+org-redisplay-inline-images-in-babel-result-h)
org-link-abbrev-alist '(("doom-repo" . "https://github.com/doomemacs/doomemacs/%s") ("doomdir" . "/Users/h1/.doom.d/%s") ("emacsdir" . "/Users/h1/.emacs.d/%s")
                         ("doom" . "https://github.com/hlissner/doom-emacs/%s") ("wolfram" . "https://wolframalpha.com/input/?i=%s")
                         ("wikipedia" . "https://en.wikipedia.org/wiki/%s") ("duckduckgo" . "https://duckduckgo.com/?q=%s")
                         ("gmap" . "https://maps.google.com/maps?q=%s") ("gimages" . "https://google.com/images?q=%s") ("google" . "https://google.com/search?q=")
                         ("youtube" . "https://youtube.com/watch?v=%s") ("github" . "https://github.com/%s"))
org-agenda-files '("~/edocs/orgfiles/")
org-capture-templates '(("t" "Personal todo" entry (file+headline +org-capture-todo-file "Inbox") "* [ ] %?\n%i\n%a" :prepend t)
                         ("n" "Personal notes" entry (file+headline +org-capture-notes-file "Inbox") "* %u %?\n%i\n%a" :prepend t)
                         ("j" "Journal" entry (file+olp+datetree +org-capture-journal-file) "* %U %?\n%i\n%a" :prepend t) ("p" "Templates for projects")
                         ("pt" "Project-local todo" entry (file+headline +org-capture-project-todo-file "Inbox") "* TODO %?\n%i\n%a" :prepend t)
                         ("pn" "Project-local notes" entry (file+headline +org-capture-project-notes-file "Inbox") "* %U %?\n%i\n%a" :prepend t)
                         ("pc" "Project-local changelog" entry (file+headline +org-capture-project-changelog-file "Unreleased") "* %U %?\n%i\n%a" :prepend t)
                         ("o" "Centralized templates for projects")
                         ("ot" "Project todo" entry #'+org-capture-central-project-todo-file "* TODO %?\n %i\n %a" :heading "Tasks" :prepend nil)
                         ("on" "Project notes" entry #'+org-capture-central-project-notes-file "* %U %?\n %i\n %a" :heading "Notes" :prepend t)
                         ("oc" "Project changelog" entry #'+org-capture-central-project-changelog-file "* %U %?\n %i\n %a" :heading "Changelog" :prepend t))
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-roam-backlinks-mode-hook '(turn-on-visual-line-mode)
org-refile-targets '((nil :maxlevel . 3) (org-agenda-files :maxlevel . 3))
org-export-before-parsing-hook '(org-attach-expand-links)
org-cycle-tab-first-hook '(+org-yas-expand-maybe-h +org-indent-maybe-h org-babel-hide-result-toggle-maybe org-babel-header-arg-expand +org-clear-babel-results-h
                            +org-cycle-only-current-subtree-h)
org-default-notes-file "/Users/h1/edocs/orgfiles/notes.org"
org-auto-tangle-default t
org-refile-use-outline-path 'file
org-publish-timestamp-directory "/Users/h1/.emacs.d/.local/cache/org/timestamps/"
org-archive-hook '(org-attach-archive-delete-maybe)
org-file-apps '((remote . emacs) (auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default))
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-ascii-format-drawer-function #[771 "%1\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change)
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-font-lock-set-keywords-hook '(doom-themes-enable-org-fontification)
org-modules '(ol-bibtex)
org-image-actual-width nil
org-attach-use-inheritance t
org-mode-local-vars-hook '(+org-init-gifs-h)
org-mode-hook '(er/add-org-mode-expansions +lookup--init-org-mode-handlers-h
                 (closure ((hook . org-mode-hook) (--dolist-tail--) t) (&rest _) (add-hook 'before-save-hook 'org-encrypt-entries nil t))
                 #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5]
                 #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec
                 org-babel-hide-all-hashes #[0 "\301\211%10\207" [imenu-create-index-function org-imenu-get-tree] 2] org-auto-tangle-mode
                 doom-disable-show-paren-mode-h doom-disable-show-trailing-whitespace-h +org-enable-auto-reformat-tables-h +org-enable-auto-update-cookies-h
                 +org-make-last-point-visible-h org-fancy-priorities-mode org-superstar-mode evil-org-mode toc-org-enable embrace-org-mode-hook org-eldoc-load
                 org-appear-mode)
org-src-window-setup 'other-window
org-id-locations-file "/Users/h1/edocs/orgfiles/.orgids"
org-roam-directory "/Users/h1/edocs/roam/"
org-superstar-todo-bullet-alist '(("TODO" . 9744) ("[ ]" . 9744) ("DONE" . 9745) ("[X]" . 9745))
org-agenda-span 10
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-priority-faces '((65 . error) (66 . warning) (67 . success))
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-reveal-start-hook '(org-decrypt-entry)
org-agenda-skip-unavailable-files t
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
outline-isearch-open-invisible-function 'outline-isearch-open-invisible
org-use-sub-superscripts '{}
org-roam-buffer-preview-function 'org-roam-buffer--preview
org-super-agenda-mode t
org-roam-buffer-prepare-hook '(hide-mode-line-mode org-roam-buffer--insert-title org-roam-buffer--insert-backlinks org-roam-buffer--insert-ref-links)
org-html-validation-link nil
org-startup-indented t
org-roam-mode t
org-highlight-latex-and-related '(native script entities)
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-auto-align-tags nil
org-agenda-mode-hook '(+org-habit-resize-graph-h org-fancy-priorities-mode evil-org-agenda-mode)
org-link-translation-function 'toc-org-unhrefify
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-roam-title-change-hook '(org-roam--update-file-name-on-title-change org-roam--update-links-on-title-change)
org-roam-dailies-calendar-hook '(org-roam-dailies-calendar-mark-entries)
org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize)
org-src-preserve-indentation t
org-roam-link-use-custom-faces 'everywhere
org-entities-user '(("flat" "\\flat" nil "" "" "266D" "♭") ("sharp" "\\sharp" nil "" "" "266F" "♯"))
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer doom-modeline-set-org-src-modeline)
org-appear-autolinks t
org-agenda-window-setup 'current-window
org-roam-title-to-slug-function 'org-roam--title-to-slug
org-superstar-headline-bullets-list '("⁖" "◉" "○" "✸" "✿")
org-tags-exclude-from-inheritance '("crypt")
org-clock-out-remove-zero-time-clocks t
org-hide-leading-stars t
org-todo-keywords '((sequence "TODO(t)" "PROJ(p)" "LOOP(r)" "STRT(s)" "WAIT(w)" "HOLD(h)" "IDEA(i)" "|" "DONE(d)" "KILL(k)")
                     (sequence "[ ](T)" "[-](S)" "[?](W)" "|" "[X](D)") (sequence "|" "OKAY(o)" "YES(y)" "NO(n)"))
org-agenda-inhibit-startup t
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
org-preview-latex-image-directory "/Users/h1/.emacs.d/.local/cache/org/latex/"
org-fontify-whole-heading-line t
org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-clock-persist-file "/Users/h1/.emacs.d/.local/etc/org-clock-save.el"
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-eldoc-breadcrumb-separator " → "
org-super-agenda-groups '((:auto-dir-name t))
org-latex-prefer-user-labels t
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-persist-directory "/Users/h1/.emacs.d/.local/cache/org/persist/"
org-export-backends '(md ascii html icalendar latex odt)
org-enforce-todo-dependencies t
org-confirm-babel-evaluate nil
org-fold-core-isearch-open-function 'org-fold--isearch-reveal
org-export-with-smart-quotes t
org-clock-in-resume t
org-M-RET-may-split-line nil
org-clock-persist 'history
org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
org-persist-before-write-hook '(org-element--cache-persist-before-write)
org-tab-first-hook '(+org-yas-expand-maybe-h +org-indent-maybe-h org-babel-hide-result-toggle-maybe org-babel-header-arg-expand +org-clear-babel-results-h
                      +org-cycle-only-current-subtree-h)
org-link-shell-confirm-function 'yes-or-no-p
org-agenda-finalize-hook '(org-fancy-priorities-create-overlays +org-exclude-agenda-buffers-from-workspace-h +org-defer-mode-in-agenda-buffers-h)
org-babel-pre-tangle-hook '(save-buffer)
org-roam-completion-everywhere t
org-agenda-loop-over-headlines-in-active-region nil
org-fontify-quote-and-verse-blocks t
org-agenda-start-on-weekday nil
org-attach-id-dir "/Users/h1/edocs/orgfiles/.attach/"
org-todo-keyword-faces '(("[-]" . +org-todo-active) ("STRT" . +org-todo-active) ("[?]" . +org-todo-onhold) ("WAIT" . +org-todo-onhold) ("HOLD" . +org-todo-onhold)
                          ("PROJ" . +org-todo-project) ("NO" . +org-todo-cancel) ("KILL" . +org-todo-cancel))
org-capture-mode-hook '(+org-show-target-in-capture-header-h evil-insert-state)
org-agenda-deadline-faces '((1.001 . error) (1.0 . org-warning) (0.5 . org-upcoming-deadline) (0.0 . org-upcoming-distant-deadline))
org-fold-reveal-start-hook '(org-decrypt-entry)
org-occur-hook '(org-first-headline-recenter)
org-capture-after-finalize-hook '(+org-capture-cleanup-frame-h)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-link-parameters '(("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
                       ("orgit-rev" :store orgit-rev-store :follow orgit-rev-open :export orgit-rev-export :complete orgit-rev-complete-link)
                       ("orgit-log" :store orgit-log-store :follow orgit-log-open :export orgit-log-export :complete orgit-log-complete-link)
                       ("orgit" :store orgit-status-store :follow orgit-status-open :export orgit-status-export :complete orgit-status-complete-link)
                       ("doom-changelog" :follow
                        #[257 "\301\302\b\303\"!\210\304\305%2\"\207" [doom-docs-dir find-file doom-path "changelog.org" org-match-sparse-tree nil] 5
                          "\n\n(fn LINK)"]
                        )
                       ("doom-source" :follow
                        #[257
                          "\303\304\b	%4$\210\305 \306\307%2\"\216\310\311%3\"\205%1c\312\313!\312\314!B)\262%1\211\203,%0\211%1A\262%2\242\2023%0\315\316\317%3GD\"\211\320\267\202L%0\321\322%3\n\"!\207\323\324\325\326\327\330%6\a#\"!\207\303\331%2\"\207"
                          [source
                           
                                                                                                                                                                                                                                                                    url
                           
                                                                                                                                                                                                                                                                    doom-modules-dir
                           
                                                                                                                                                                                                                                                                    user-error
                           
                                                                                                                                                                                                                                                                    "-- %S %S %S"
                           
                                                                                                                                                                                                                                                                    match-data
                           
                                                                                                                                                                                                                                                                    make-closure
                           
                                                                                                                                                                                                                                                                    #[0
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                   "\301\300\302\"\207"
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                   [V0 set-match-data evaporate]
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                   3]
                           
                                                                                                                                                                                                                                                                    string-match
                           
                                                                                                                                                                                                                                                                    "^\\([^:]+\\):\\(.+\\)$"
                           
                                                                                                                                                                                                                                                                    match-string
                           
                                                                                                                                                                                                                                                                    1
                           
                                                                                                                                                                                                                                                                    2
                           
                                                                                                                                                                                                                                                                    signal
                           
                                                                                                                                                                                                                                                                    wrong-number-of-arguments
                           
                                                                                                                                                                                                                                                                    (source . url)
                           
                                                                                                                                                                                                                                                                    #s
                           
                                                                                                                                                                                                                                                                    (hash-table
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       size
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       2
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       test
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       equal
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       rehash-size
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       1.5
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       rehash-threshold
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       0.8125
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       purecopy
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       t
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       data
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       ("doom" 57 "contrib" 64)
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                       )
                           
                                                                                                                                                                                                                                                                    org-link-open expand-file-name browse-url format "https://docs.doomemacs.org/modules/" replace-regexp-in-string "::\\(.+\\)$" "#\\1" "%s is not a valid module source"]
                          10 "\n\n(fn LINK)"]
                        )
                       ("doom-user" :follow
                        #[257 "\300\301\302\303\304%5!\305%2\x02\"\203%18\211%2G\306O\266\202\202%1a\262%1\"!\207"
                          [browse-url format "https://github.com/%s" "@" doom-docs-read-link-desc-at-point string-prefix-p nil] 9 "\n\n(fn LINK)"]
                        :face #[257 "\300\207" [org-priority] 2 "\n\n(fn _)"])
                       ("doom-ref" :follow
                        #[257
                          "\300%1!\301 \302\303%2\"\216\304\305\306%4\"\203'%0\307\310\311\312\313%6\a\"\206%1e\314\312\315%6\b\"$\202G%0\305\316%4\"\203C%0\307\317\311\312\313%6\a\"\206:%0\314\312\315%6\b\"$\202G%0\320\321%4\"!)\207"
                          [doom-docs-read-link-desc-at-point
                           
                                                                                                                                                                                                                                             match-data
                           
                                                                                                                                                                                                                                             make-closure
                           
                                                                                                                                                                                                                                             #[0
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                         "\301\300\302\"\207"
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                         [V0 set-match-data evaporate]
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                         3]
                           
                                                                                                                                                                                                                                             browse-url string-match "^\\([^/]+\\(?:/[^/]+\\)?\\)?#\\([0-9]+\\(?:#.*\\)?\\)" format "%s/%s/issues/%s" "https://github.com" match-string 1 "doomemacs/doomemacs" 2 "^\\([^/]+\\(?:/[^/]+\\)?@\\)?\\([a-z0-9]\\{7,\\}\\(?:#.*\\)?\\)" "%s/%s/commit/%s" user-error "Invalid doom-ref link: %S"]
                          11 "\n\n(fn LINK)"]
                        :face
                        #[257 "\300%1!\301\302%2\"\204%11\301\303%2\"\203%13\304\207\305\207"
                          [doom-docs-read-link-desc-at-point string-match "^\\([^/]+\\(?:/[^/]+\\)?\\)?#\\([0-9]+\\(?:#.*\\)?\\)"
                           "^\\([^/]+\\(?:/[^/]+\\)?@\\)?\\([a-z0-9]\\{7,\\}\\(?:#.*\\)?\\)" org-link error]
                          5 "\n\n(fn LINK)"]
                        )
                       ("face" :follow
                        (closure ((fn . describe-face) doom-docs-org-mode-abbrev-table doom-docs-org-mode-syntax-table t) (link)
                         (let ((desc (doom-docs-read-link-desc-at-point link)))
                          (funcall fn (or (intern-soft desc) (user-error "Can't find documentation for %S" desc))))
                         )
                        :face (font-lock-type-face underline))
                       ("fn" :follow
                        (closure ((fn . helpful-callable) doom-docs-org-mode-abbrev-table doom-docs-org-mode-syntax-table t) (link)
                         (let ((desc (doom-docs-read-link-desc-at-point link)))
                          (funcall fn (or (intern-soft desc) (user-error "Can't find documentation for %S" desc))))
                         )
                        :face (font-lock-function-name-face underline))
                       ("var" :follow
                        (closure ((fn . helpful-variable) doom-docs-org-mode-abbrev-table doom-docs-org-mode-syntax-table t) (link)
                         (let ((desc (doom-docs-read-link-desc-at-point link)))
                          (funcall fn (or (intern-soft desc) (user-error "Can't find documentation for %S" desc))))
                         )
                        :face (font-lock-variable-name-face underline))
                       ("roam" :follow org-roam-link-follow-link) ("yt" :follow org-yt-follow :image-data-fun org-yt-image-data-fun)
                       ("id" :follow org-id-open :face org-roam--id-link-face) ("img" :image-data-fun +org-inline-image-data-fn)
                       ("doom-module" :follow doom-docs-doom-module-link-follow-fn :face doom-docs-doom-module-link-face-fn)
                       ("doom-package" :follow doom-docs-doom-package-link-follow-fn :face #[257 "\300\207" [(:inherit org-priority :slant italic)] 2 "\n\n(fn _)"])
                       ("kbd" :follow
                        (closure (doom-docs-org-mode-abbrev-table doom-docs-org-mode-syntax-table t) (_)
                         (minibuffer-message "%s" (doom--display-docs-link-in-eldoc-a)))
                        :help-echo doom-docs-read-kbd-at-point :face help-key-binding)
                       ("doom-modules" :complete
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-modules-dir) (key . "doom-modules") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-modules-dir) (key . "doom-modules") t)
                         nil (if requires (mapc #'require (ensure-list requires)))
                         (+org--relative-path (+org--read-link-path key (funcall dir-fn)) (funcall dir-fn)))
                        :follow
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-modules-dir) (key . "doom-modules") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-modules-dir) (key . "doom-modules") t)
                         (link) (org-link-open-as-file (expand-file-name link (funcall dir-fn)) nil))
                        :face
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-modules-dir) (key . "doom-modules") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-modules-dir) (key . "doom-modules") t)
                         (link)
                         (let*
                          ((path (expand-file-name link (funcall dir-fn))) (option-index (string-match-p "::\\(.*\\)\\'" path))
                           (file-name (substring path 0 option-index)))
                          (if (file-exists-p file-name) 'org-link 'error))
                         )
                        :requires nil)
                       ("doom-docs" :complete
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-docs-dir) (key . "doom-docs") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-docs-dir) (key . "doom-docs") t)
                         nil (if requires (mapc #'require (ensure-list requires)))
                         (+org--relative-path (+org--read-link-path key (funcall dir-fn)) (funcall dir-fn)))
                        :follow
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-docs-dir) (key . "doom-docs") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-docs-dir) (key . "doom-docs") t)
                         (link) (org-link-open-as-file (expand-file-name link (funcall dir-fn)) nil))
                        :face
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-docs-dir) (key . "doom-docs") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-docs-dir) (key . "doom-docs") t)
                         (link)
                         (let*
                          ((path (expand-file-name link (funcall dir-fn))) (option-index (string-match-p "::\\(.*\\)\\'" path))
                           (file-name (substring path 0 option-index)))
                          (if (file-exists-p file-name) 'org-link 'error))
                         )
                        :requires nil)
                       ("doom" :complete
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-emacs-dir) (key . "doom") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-emacs-dir) (key . "doom") t)
                         nil (if requires (mapc #'require (ensure-list requires)))
                         (+org--relative-path (+org--read-link-path key (funcall dir-fn)) (funcall dir-fn)))
                        :follow
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-emacs-dir) (key . "doom") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-emacs-dir) (key . "doom") t)
                         (link) (org-link-open-as-file (expand-file-name link (funcall dir-fn)) nil))
                        :face
                        (closure
                         ((dir-fn closure ((plist) (dir-var . doom-emacs-dir) (key . "doom") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . doom-emacs-dir) (key . "doom") t)
                         (link)
                         (let*
                          ((path (expand-file-name link (funcall dir-fn))) (option-index (string-match-p "::\\(.*\\)\\'" path))
                           (file-name (substring path 0 option-index)))
                          (if (file-exists-p file-name) 'org-link 'error))
                         )
                        :requires nil)
                       ("org" :complete
                        (closure
                         ((dir-fn closure ((plist) (dir-var . org-directory) (key . "org") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . org-directory) (key . "org") t)
                         nil (if requires (mapc #'require (ensure-list requires)))
                         (+org--relative-path (+org--read-link-path key (funcall dir-fn)) (funcall dir-fn)))
                        :follow
                        (closure
                         ((dir-fn closure ((plist) (dir-var . org-directory) (key . "org") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . org-directory) (key . "org") t)
                         (link) (org-link-open-as-file (expand-file-name link (funcall dir-fn)) nil))
                        :face
                        (closure
                         ((dir-fn closure ((plist) (dir-var . org-directory) (key . "org") t) nil (symbol-value dir-var)) (requires) (plist)
                          (dir-var . org-directory) (key . "org") t)
                         (link)
                         (let*
                          ((path (expand-file-name link (funcall dir-fn))) (option-index (string-match-p "::\\(.*\\)\\'" path))
                           (file-name (substring path 0 option-index)))
                          (if (file-exists-p file-name) 'org-link 'error))
                         )
                        :requires nil)
                       ("attachment" :image-data-fun +org-inline-image-data-fn :follow org-attach-follow :complete org-attach-complete-link) ("file+sys")
                       ("file+emacs") ("shell" :follow org-link--open-shell)
                       ("news" :follow #[514 "\301\300\302%4Q%2\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("mailto" :follow #[514 "\301\300\302%4Q%2\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("https" :follow #[514 "\301\300\302%4Q%2\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] :image-data-fun +org-http-image-data-fn)
                       ("http" :follow #[514 "\301\300\302%4Q%2\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] :image-data-fun +org-http-image-data-fn)
                       ("ftp" :follow #[514 "\301\300\302%4Q%2\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file :face org-roam--file-link-face)
                       ("elisp" :follow org-link--open-elisp))
org-roam-capture-function 'org-capture
org-html-format-headline-function 'org-html-format-headline-default-function
org-fancy-priorities-list '("⚑" "⬆" "■")
org-metaup-hook '(org-babel-load-in-session-maybe)
org-superstar-leading-bullet 32
org-num-format-function 'org-num-default-format
org-agenda-include-diary t
org-imenu-depth 6
org-display-remote-inline-images 'cache
org-outline-path-complete-in-steps nil
org-special-ctrl-a/e t
org-tags-column 0
org-src-lang-modes '(("md" . markdown) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++)
                      ("ditaa" . artist) ("desktop" . conf-desktop) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script)
                      ("shell" . sh) ("sqlite" . sql) ("toml" . conf-toml))
org-clock-history-length 20
org-attach-store-link-p t
org-id-locations-file-relative t
org-archive-subtree-save-file-p t
org-list-allow-alphabetical t
)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Unregistered buffer modifications detected [9.6 (9.6-??-00adad9 @ /Users/h1/.emacs.d/.local/straight/build-28.1/org/)]
  2022-09-13  4:02 [BUG] Unregistered buffer modifications detected [9.6 (9.6-??-00adad9 @ /Users/h1/.emacs.d/.local/straight/build-28.1/org/)] Andrej Močan
@ 2022-09-13 14:24 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-09-13 14:24 UTC (permalink / raw)
  To: Andrej Močan; +Cc: emacs-orgmode

Andrej Močan <andrej.mocan@me.com> writes:

> The error message below started to appear regularly whenever I save Org
> mode buffer in Org Roam. It does not matter how I save the buffer (:w or C-c)
>
> Error message:
> Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected. Resetting.
> If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
> The buffer is: *temp*
> Current command: find-file
> Backtrace:
> nil Disable showing Disable logging

Thanks fore reporting!
Can you please share the value of your before-save-hook variable in Org
buffers? (go to an Org file and run M-x describe-variable <RET>
before-save-hook <RET>; then share the contents of *Help* buffer).

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-13 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13  4:02 [BUG] Unregistered buffer modifications detected [9.6 (9.6-??-00adad9 @ /Users/h1/.emacs.d/.local/straight/build-28.1/org/)] Andrej Močan
2022-09-13 14:24 ` Ihor Radchenko

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).