From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iEJgB5iIjGP24wAAbAwnHQ (envelope-from ) for ; Sun, 04 Dec 2022 12:46:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aFU7B5iIjGMgcgAAauVa8A (envelope-from ) for ; Sun, 04 Dec 2022 12:46:32 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C47759B52 for ; Sun, 4 Dec 2022 12:46:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1nQa-0001tO-H9; Sun, 04 Dec 2022 06:45:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1nQZ-0001sx-5J for emacs-orgmode@gnu.org; Sun, 04 Dec 2022 06:44:59 -0500 Received: from m12.mail.163.com ([220.181.12.217]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1nQW-00016i-4f for emacs-orgmode@gnu.org; Sun, 04 Dec 2022 06:44:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=pqRgux3uYQBq96GZcPJ8trm8je2h5wDtzRtJu9osvSw=; b=GCorawcopcfqCjbG0P5OVoD7SlL4OekL903tdaMTwpFs++oP+bZWR7K3T4Eqg6 1BUt84sAtwUl252HMRQksdiQC0Ox6Cq1hGbMIKi0UQ6NBK/HojTOpdhofC397WcA 0UcsWKrxyynHFS5x584f8n2uf5v2JIk2D11OP5MKyUgT8= Received: from Guix (unknown [49.88.144.183]) by zwqz-smtp-mta-g4-0 (Coremail) with SMTP id _____wD3mCkmiIxjKVxnAA--.1604S2; Sun, 04 Dec 2022 19:44:40 +0800 (CST) From: Feng Shu To: Ihor Radchenko 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/)] In-Reply-To: <87a643jui9.fsf@localhost> (Ihor Radchenko's message of "Sun, 04 Dec 2022 11:09:02 +0000") References: <87359z8ssb.fsf@163.com> <87a643jui9.fsf@localhost> Date: Sun, 04 Dec 2022 19:44:38 +0800 Message-ID: <87sfhvcs0p.fsf@163.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wD3mCkmiIxjKVxnAA--.1604S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxuw1xGw1xJF4kKw17ZFWxtFb_yoW7uw1fpF Zaqa1xCF1Fqa4fXa1vkF1fJr1Yg3s8J3yDA347Wrs3Ja17Awn7Wr109rySkrW7ArnFy39x Zw4kKFn8Xw15ZrJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UepBhUUUUU= X-Originating-IP: [49.88.144.183] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbB3xTN1GBHNIU03wABsu Received-SPF: pass client-ip=220.181.12.217; envelope-from=tumashu@163.com; helo=m12.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670154391; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pqRgux3uYQBq96GZcPJ8trm8je2h5wDtzRtJu9osvSw=; b=RPl5ZJKoEuB6IbNREx0lIkEmhh1VjmFkN29QIefNvWvZ5EIK6oipLDcDFxoKi9SjVr3znY T2hsK7oECR3tdF8Sz6HVsuME7630Yo+eBejnPM+F4+qdtpAVNsGEo3XrLRG8Xgy2wlYcIi 2A8u0wWxgimqON1zliUYLFUXYXrK3yVoI0i9q0OfIngmAIWuY0oBAaKCzRfbkdB8mG3GZR 1DukAiwrK2xkGU0UFt7cYhFVyqyJMKyk6sHZqrsyPdRnXHj8Z1465Y8u2M9AvnnGY5FrgM EBUBVu1avtNdD5kPdNbPefPMEeIWu0QX+bPrc4JtvR6lhr6j+V6W2f/4f5UDuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670154391; a=rsa-sha256; cv=none; b=tE5H2f02exsap8nSKbO7TyIRR52kO37puO929ya0lE4/Z61QXCmz/BYmT++7ULH1oF/sra uGlQE1uWdgQo94XQvZuVG5YIt1SuTXpQhWX+yTciPiUdtpQSb/oRVadYEg7ECO2219JIFe M03aPbW9ls+i+vqR85uAQT3g6T39n8OyfuDvWRlEJ096R+uXMnjEvIVXtE1mLLcPug/7FC fc5udAOS4AJOFIyrvuLqeYdtdFsIUsvR+ghji/T+MU7FmY5ebYpVDTGk2W1bpTGIFEyAtc u23kWcrnrNN27Jh416swGHU7PadQ4AXbS7vB3qa0UUyp2V/WUXAHFEyBJyxA+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=GCorawco; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.47 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=GCorawco; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C47759B52 X-Spam-Score: -2.47 X-Migadu-Scanner: scn1.migadu.com X-TUID: yJOrsWuasJh/ Ihor Radchenko writes: > Feng Shu writes: > >> =E2=96=A0 Warning (org-element-cache): org-element--cache: Unregistere= d buffer modifications detected (143649 !=3D 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 "=E5=BE=85=E6=95=B4=E7= =90=86") "* TODO %? SCHEDULED: %t :PROPERTIES: :created: %U :END: %i")))) ----------------------- =E2=96=A0 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 mo= de mailing list (M-x org-submit-bug-report). The element is: "(node-property (:key \"created\" :value \"[2022-12-04 =E6= =97=A5 19:43]\" :begin 63 :end 95 :post-blank 0 :post-affiliated 63 :mode n= ode-property :granularity element :cached t :parent (property-drawer (:begi= n 47 :end 103 :contents-begin 62 :contents-end 95 :post-blank 0 :post-affil= iated 47 :mode property-drawer :granularity element :cached t :parent (sect= ion ...)))))" The real element is: "(node-property (:key \"created\" :value \"[2022-12-0= 4 =E6=97=A5 19:43]\" :begin 63 :end 97 :post-blank 0 :post-affiliated 63 :m= ode 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-a= ffiliated 62 :mode node-property :granularity element :cached t :parent (pr= operty-drawer (:begin 47 :end 103 :contents-begin 62 :contents-end 95 :post= -blank 0 :post-affiliated 47 :mode property-drawer :granularity element :ca= ched t :parent (section (:begin 18 :end 103 :contents-begin 18 :contents-en= d 103 :robust-begin 18 :robust-end 101 :post-blank 0 :post-affiliated 18 :m= ode section :granularity element :cached t :parent (headline (:raw-value "%= ?" :begin 7 :end 102 :pre-blank 0 :contents-begin 18 :contents-end 102 :rob= ust-begin nil :robust-end nil :level 2 :priority nil :tags nil :todo-keywor= d "TODO" :todo-type todo :post-blank 0 :footnote-section-p nil :archivedp n= il :commentedp nil :post-affiliated 7 :scheduled (timestamp (:type active := raw-value "<2022-12-04 =E6=97=A5>" :year-start 2022 :month-start 12 :day-st= art 4 :hour-start nil :minute-start nil :year-end 2022 :month-end 12 :day-e= nd 4 :hour-end nil :minute-end nil :begin 31 :end 45 :post-blank 0)) :CREAT= ED "[2022-12-04 =E6=97=A5 19:43]" :title "%?" :mode section :granularity el= ement :cached t :parent (headline (:raw-value "=E5=BE=85=E6=95=B4=E7=90=86"= :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 :comme= ntedp nil :post-affiliated 1 :title "=E5=BE=85=E6=95=B4=E7=90=86" :mode fir= st-section :granularity element :cached t :parent (org-data (:begin 1 :cont= ents-begin 1 :contents-end 102 :end 102 :robust-begin 3 :robust-end 100 :po= st-blank 0 :post-affiliated 1 :path "/home/feng/1.org" :mode org-data :CATE= GORY "1" :cached t)))))))))))) (node-property (:key "created" :value "[2022-12-04 =E6=97=A5 19:43]" :begin= 63 :end 95 :post-blank 0 :post-affiliated 63 :mode node-property :granular= ity element :cached t :parent (property-drawer (:begin 47 :end 103 :content= s-begin 62 :contents-end 95 :post-blank 0 :post-affiliated 47 :mode propert= y-drawer :granularity element :cached t :parent (section (:begin 18 :end 10= 3 :contents-begin 18 :contents-end 103 :robust-begin 18 :robust-end 101 :po= st-blank 0 :post-affiliated 18 :mode section :granularity element :cached t= :parent (headline (:raw-value "%?" :begin 7 :end 102 :pre-blank 0 :content= s-begin 18 :contents-end 102 :robust-begin nil :robust-end nil :level 2 :pr= iority nil :tags nil :todo-keyword "TODO" :todo-type todo :post-blank 0 :fo= otnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 7 :sch= eduled (timestamp (:type active :raw-value "<2022-12-04 =E6=97=A5>" :year-s= tart 2022 :month-start 12 :day-start 4 :hour-start nil :minute-start nil :y= ear-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 =E6=97=A5 19:43]" :title "= %?" :mode section :granularity element :cached t :parent (headline (:raw-va= lue "=E5=BE=85=E6=95=B4=E7=90=86" :begin 1 :end 102 :pre-blank 0 :contents-= begin 7 :contents-end 102 :robust-begin 9 :robust-end 100 :level 1 :priorit= y nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-se= ction-p nil :archivedp nil :commentedp nil :post-affiliated 1 :title "=E5= =BE=85=E6=95=B4=E7=90=86" :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 "/ho= me/feng/1.org" :mode org-data :CATEGORY "1" :cached t)))))))))))) nil ---------------------- --=20