emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Feng Shu <tumashu@163.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87sfhvcs0p.fsf@163.com> (raw)
In-Reply-To: <87a643jui9.fsf@localhost> (Ihor Radchenko's message of "Sun, 04 Dec 2022 11:09:02 +0000")

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	other threads:[~2022-12-04 11:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-01  7:52 [BUG] warn when use org-capture [9.6 (release_9.6-3-ga4d38e @ /home/feng/emacs/emacs29/lisp/org/)] Feng Shu
2022-12-04 11:09 ` Ihor Radchenko
2022-12-04 11:44   ` Feng Shu [this message]
2022-12-04 13:22     ` 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=87sfhvcs0p.fsf@163.com \
    --to=tumashu@163.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /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).