From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CFD+MB3g1mHWygAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 13:27:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4Jh7Lh3g1mFLPgAA9RJhRA (envelope-from ) for ; Thu, 06 Jan 2022 13:27:09 +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 69E2320247 for ; Thu, 6 Jan 2022 13:27:09 +0100 (CET) Received: from localhost ([::1]:57552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5RrI-0000vu-3w for larch@yhetil.org; Thu, 06 Jan 2022 07:27:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Ro3-0004uA-N1 for emacs-orgmode@gnu.org; Thu, 06 Jan 2022 07:23:47 -0500 Received: from [2a00:1450:4864:20::130] (port=37603 helo=mail-lf1-x130.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5Ro2-0006mR-5G for emacs-orgmode@gnu.org; Thu, 06 Jan 2022 07:23:47 -0500 Received: by mail-lf1-x130.google.com with SMTP id h7so4614669lfu.4 for ; Thu, 06 Jan 2022 04:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=b9pfLW1cY8+0zsqeE9RVG21d9b/5HXi3F741cmmA+iE=; b=Ay/mycr4FR7LAzg4h7PLcIxXejvw/kbZozWsJGlF0RF2u/G9PevkpxrUSxFd+OZknI Jj/ozwQyjkX6rpGXPGA8pAFKv99LDrwpOKdIiCUPphgVwxvq1uLNeiuE1DhtZ3IVuvaN IyL01yUvp77NSm+tC2GNciXvFTmY3RD6s2V/dbAq/+518WnWc5xuopIwDgfezEIgMJD4 9f9lGEP7uE+S/riR2Dz0O18aY8bMGk2jG0fnHtDQIV9PvtQ7vagDbNfeOBbZSK3oinEM 3xlnmHp1lrGJ/18LAV+2XJXoqBdrnc5UOt1/H7G82SJq3kdSdfutFERNZNEaKnqr4c9Q TnHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=b9pfLW1cY8+0zsqeE9RVG21d9b/5HXi3F741cmmA+iE=; b=RVjGXZQjFVRs3ja1zgXRF+z+Um8fUcGw73EqG5HBisMd0PeCVmtKMqyCOy+tGcWep7 WmMGYoXFEG7mQfvde+M7Ww1WpKWlDen1BiaBTu8TbMv2RHjVOOdQWSnY4X/sgsU62Ewq lrn1WDj2swBHKsll3HF3fn+H6RVtDa5n2nPCL4LXU8kqsNwY3A2dywZ9yRx2l/DUHZiN Pv98veueoZxOA8m36RkDFmcomySgAKOVC5PzBZ3E7WRS6J++SZ9+ZqX4mYjbDuwDuo7S ZW6ueA89lZ4iy6sO2+UydiAEWB0F6DnN+8zZ/jaXfcWvYvYL8lisdeMVI0qq5ruWCfgv ulmA== X-Gm-Message-State: AOAM530HGnep2vY2fVzvD18qDkUgSnr5JjiM59bPB5ILnmCpRPNiAoEf 5v/Lb7a3/8DI2XBFQcE4vbc= X-Google-Smtp-Source: ABdhPJwMtrjJ5leIaz83wPcuky89dNgVF7F4TZzEBvcHmNBS8nN96QzW/kxGcHBIge3HEveYFa5ojg== X-Received: by 2002:a05:6512:3f0c:: with SMTP id y12mr36042679lfa.227.1641471824314; Thu, 06 Jan 2022 04:23:44 -0800 (PST) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id f19sm156933lfg.298.2022.01.06.04.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 04:23:44 -0800 (PST) From: Ihor Radchenko To: Karl Voit Subject: Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)] In-Reply-To: <2022-01-06T12-13-17@devnull.Karl-Voit.at> References: <2022-01-06T12-13-17@devnull.Karl-Voit.at> Date: Thu, 06 Jan 2022 20:25:01 +0800 Message-ID: <875yqxhx0i.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::130 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=yantar92@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1641472029; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b9pfLW1cY8+0zsqeE9RVG21d9b/5HXi3F741cmmA+iE=; b=KCVFVvVu64Gt/eWLLwExnWKUL0PMQ95cKZNRAL0KgzYt1LkhCNuy+KnzlFoXMjPmsQX/SM IVN22gvOYbSXFOJBSmtssIPWWD0fZZ+CZ1CITiAbUxT2H8pIWMlN1UnFpKIrHN5hM0zKVa vPo1W6mgUajBEF0dRdd+kSufMwIHFnUWF+GKg0juR4X1GeMBCzVgzZlyh7rDv9bASceCeX vM/pRWLlBo20HmeWubJ8+ui8c07oT+cqIEZuqAzVJ8eFsPfaYUupBVtP/dylX/3upMsClp bssp3lezZPO543Cs/nbIixtPar8fs61ndwJQNfgNCRjO27O2bTmP4bij6FioRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641472029; a=rsa-sha256; cv=none; b=p0+S14ZVZ4cd71h1L3mlRc6E5ND2TgITsrZB8vV8bFgdVsb0FXUJhrpb8G1WFzAHjJAPEw w87sv8aIyPd1xEFzDRLpTMrRsRRrM2rk350k+EhjXhQA6Yr8ZMl8DsGIwoaN6GZU8/UJYd 04j4+yccSKhu3ZiK6QvLDX2yfikXuYItilVz0KERNNrBlb6WkWZL3jSkhtMibjlUiarnPt olLP3xp4mukbpLh0yTTkImy6q8hrhqsZBw2pkjq/3z0POZTHnqH8rKvJBwDLHm0Xobq4T1 KQQQDzdmI7qrPR/DacFZ9P3r8rh8Oc8AzDmuEs6z6hdYjUNJ+E/s/MhuV5djQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Ay/mycr4"; dmarc=pass (policy=none) header.from=gmail.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: -8.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Ay/mycr4"; dmarc=pass (policy=none) header.from=gmail.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: 69E2320247 X-Spam-Score: -8.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0mTZcsxgxFYi Karl Voit writes: > Every time I execute =my-title-capitalization()= from > https://github.com/novoid/dot-emacs/blob/master/config.org I get this: > > #+BEGIN_EXAMPLE > Warning (emacs): Unrecognized key: _i_ > Warning (emacs): org-element--cache: Unregistered buffer modifications detected. Resetting. > ... > Any thoughts? Just one: this is soooo annoying :( The problem is caused by `capitalize-word', which changes `buffer-char-modified-tick' even when no real change is made in buffer and `after-change-functions' are not called. This is one of the cases when we are trying to be smart and detect changes in buffers made with `with-silent-modifications', but Emacs built-in functions trigger false-positive. See https://list.orgmode.org/87ee7jdv70.fsf@localhost/T/#t Feel free to set org-element--cache-diagnostics-modifications to nil. It will disable the warning. Also, if you use that title-capitalization command frequently, caching will not be very effective. Cache is refreshed every time Org detects inconsistency in buffer modifications (even if the detection is false-positive, like in your case). You might try to set `org-element--cache-silent-modification-check' to nil to speed things up, but please read the docstring first. Best, Ihor