emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] warn when use org-capture [9.6 (release_9.6-3-ga4d38e @ /home/


From: Feng Shu
Subject: Re: [BUG] warn when use org-capture [9.6 (release_9.6-3-ga4d38e @ /home/feng/emacs/emacs29/lisp/org/)]
Date: Sun, 04 Dec 2022 19:44:38 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Ihor Radchenko <yantar92@posteo.net> writes:

> Feng Shu <tumashu@163.com> writes:
>
>>  ■  Warning (org-element-cache): org-element--cache: Unregistered buffer 
>> modifications detected (143649 != 143748). 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: projects.org
>>  Current command: eh-org-capture-schedule
>
> Thanks for reporting!
> It looks like some of the packages you are using is bypassing
> before/after-change-functions.
>
> Do you see the warning frequently? If so, would you be able to bisect
> your config and find out which part is causing the issue?

emacs -Q

----------------------
(global-set-key (kbd "C-c c") 'org-capture)
(setq org-adapt-indentation 'headline-data)

(setq org-capture-templates
      (let ((file (concat "~/1.org")))
        `(("s" "Schedule" entry (file+headline ,file "待整理")
           "* TODO %?
  SCHEDULED: %t
  :PROPERTIES:
  :created: %U
  :END:

%i"))))


-----------------------
 ■  Warning (org-element-cache): org-element--cache: (org-capture) Cached 
element is incorrect in CAPTURE-1.org. (Cache tic up to date: "no") Resetting.
If this warning appears regularly, please report the warning text to Org mode 
mailing list (M-x org-submit-bug-report).
The element is: "(node-property (:key \"created\" :value \"[2022-12-04 日 
19:43]\" :begin 63 :end 95 :post-blank 0 :post-affiliated 63 :mode 
node-property :granularity element :cached t :parent (property-drawer (:begin 
47 :end 103 :contents-begin 62 :contents-end 95 :post-blank 0 :post-affiliated 
47 :mode property-drawer :granularity element :cached t :parent (section 
...)))))"
 The real element is: "(node-property (:key \"created\" :value \"[2022-12-04 日 
19:43]\" :begin 63 :end 97 :post-blank 0 :post-affiliated 63 :mode 
node-property :granularity element :parent (property-drawer (:begin 47 :end 105 
:contents-begin 63 :contents-end 97 :post-blank 0 :post-affiliated 47 :mode 
property-drawer :granularity element :parent (section ...)))))"
 Cache around :begin:
(node-property (:key nil :value nil :begin 62 :end 63 :post-blank 0 
:post-affiliated 62 :mode node-property :granularity element :cached t :parent 
(property-drawer (:begin 47 :end 103 :contents-begin 62 :contents-end 95 
:post-blank 0 :post-affiliated 47 :mode property-drawer :granularity element 
:cached t :parent (section (:begin 18 :end 103 :contents-begin 18 :contents-end 
103 :robust-begin 18 :robust-end 101 :post-blank 0 :post-affiliated 18 :mode 
section :granularity element :cached t :parent (headline (:raw-value "%?" 
:begin 7 :end 102 :pre-blank 0 :contents-begin 18 :contents-end 102 
:robust-begin nil :robust-end nil :level 2 :priority nil :tags nil 
:todo-keyword "TODO" :todo-type todo :post-blank 0 :footnote-section-p nil 
:archivedp nil :commentedp nil :post-affiliated 7 :scheduled (timestamp (:type 
active :raw-value "<2022-12-04 日>" :year-start 2022 :month-start 12 :day-start 
4 :hour-start nil :minute-start nil :year-end 2022 :month-end 12 :day-end 4 
:hour-end nil :minute-end nil :begin 31 :end 45 :post-blank 0)) :CREATED 
"[2022-12-04 日 19:43]" :title "%?" :mode section :granularity element :cached t 
:parent (headline (:raw-value "待整理" :begin 1 :end 102 :pre-blank 0 
:contents-begin 7 :contents-end 102 :robust-begin 9 :robust-end 100 :level 1 
:priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 
:footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 
:title "待整理" :mode first-section :granularity element :cached t :parent 
(org-data (:begin 1 :contents-begin 1 :contents-end 102 :end 102 :robust-begin 
3 :robust-end 100 :post-blank 0 :post-affiliated 1 :path "/home/feng/1.org" 
:mode org-data :CATEGORY "1" :cached t))))))))))))
(node-property (:key "created" :value "[2022-12-04 日 19:43]" :begin 63 :end 95 
:post-blank 0 :post-affiliated 63 :mode node-property :granularity element 
:cached t :parent (property-drawer (:begin 47 :end 103 :contents-begin 62 
:contents-end 95 :post-blank 0 :post-affiliated 47 :mode property-drawer 
:granularity element :cached t :parent (section (:begin 18 :end 103 
:contents-begin 18 :contents-end 103 :robust-begin 18 :robust-end 101 
:post-blank 0 :post-affiliated 18 :mode section :granularity element :cached t 
:parent (headline (:raw-value "%?" :begin 7 :end 102 :pre-blank 0 
:contents-begin 18 :contents-end 102 :robust-begin nil :robust-end nil :level 2 
:priority nil :tags nil :todo-keyword "TODO" :todo-type todo :post-blank 0 
:footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 7 
:scheduled (timestamp (:type active :raw-value "<2022-12-04 日>" :year-start 
2022 :month-start 12 :day-start 4 :hour-start nil :minute-start nil :year-end 
2022 :month-end 12 :day-end 4 :hour-end nil :minute-end nil :begin 31 :end 45 
:post-blank 0)) :CREATED "[2022-12-04 日 19:43]" :title "%?" :mode section 
:granularity element :cached t :parent (headline (:raw-value "待整理" :begin 1 
:end 102 :pre-blank 0 :contents-begin 7 :contents-end 102 :robust-begin 9 
:robust-end 100 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type 
nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil 
:post-affiliated 1 :title "待整理" :mode first-section :granularity element 
:cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 102 :end 
102 :robust-begin 3 :robust-end 100 :post-blank 0 :post-affiliated 1 :path 
"/home/feng/1.org" :mode org-data :CATEGORY "1" :cached t))))))))))))
nil


----------------------

-- 




reply via email to

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