From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OO7dI39UrGG45wAAgWs5BA (envelope-from ) for ; Sun, 05 Dec 2021 06:56:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2DiEH39UrGHISwAAB5/wlQ (envelope-from ) for ; Sun, 05 Dec 2021 05:56:15 +0000 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 177F41206B for ; Sun, 5 Dec 2021 06:56:15 +0100 (CET) Received: from localhost ([::1]:53776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtkVR-0005FB-BQ for larch@yhetil.org; Sun, 05 Dec 2021 00:56:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtkUa-0005Eu-OP for emacs-orgmode@gnu.org; Sun, 05 Dec 2021 00:55:20 -0500 Received: from [2a00:1450:4864:20::230] (port=41902 helo=mail-lj1-x230.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtkUZ-0002Ls-7B for emacs-orgmode@gnu.org; Sun, 05 Dec 2021 00:55:20 -0500 Received: by mail-lj1-x230.google.com with SMTP id d11so14476237ljg.8 for ; Sat, 04 Dec 2021 21:55:18 -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=16ngAv+16zxIErC9MSiJcx7pP6a8KeJUaalVc5pP6bc=; b=hZs/HSXi1polRqLiUIFrdZGM5M75L3wXfD3uLpsHOpwIrEn49C6q0yM+HCGOCWDlq5 JBixyuUdEeb81IvA0t6YhcNXChtB9GcV6w2nVgP20mZ9eAAdboQBPrGh+/sSzyUDXRiI Kzf3hJoYdJSXRlnKSAvubHhzXezuZljjJAndf20TF1KKeklEB860kPvAEiLDEfbDBu4R 4212bAO+0FobQEvyzLDFGV6lLwtQhIkhJmLUwGnlVSGrqiXHCQq+p6HJ4ZXPfD1FN2jn JgqhPMpMR64TeFZvTeZXCB/LD/9Cj69JuxLXC2tJ77vRsFBmiXOdiAL5RMuUF13j/CGQ wFfQ== 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=16ngAv+16zxIErC9MSiJcx7pP6a8KeJUaalVc5pP6bc=; b=wbsOxK1Ld3KJ8ACstzwdFcNdipxnMX/0zdP2VoojxGalvQCMOEL0SpX2Qd+Tu507TD HVfpnddKFdM38QkglcuYhWYZX3nbg5hxJ3CkxTM8pc5RF9aVL9cX24fXIoQs/u5vTwF7 5oZ9u078YYt0JRfKitg9Qa3VuRFpMbF/nI47KiSb86sg36kKf8zMhVgodBiPhVsy0jCz 8dYCV/nHobSQTpl1Ij0ED5Wj5Q3jWjkelkWwu9aEmQ6C+JjjFYczapI7IujbW93V2a06 xFsj4upLMykKvsraz/SuWJfcXVfMH1IVCzAw9s6u7JwvPOcKvpXB0zscAfDKk0vLHHAj T5YQ== X-Gm-Message-State: AOAM532LPVRYlkDY7vhusbxnhL69LvCzw8sGXEUWmvxaRn9iVnOkiea+ KLm9jYyQHAl497IQckT3ebM= X-Google-Smtp-Source: ABdhPJyaj4A2cYW6kwRD3tUB/P9fVtWG8SuER8drEPsHbBwsypsvUhMVb+3FLqv75O5dH6cEWjxD+w== X-Received: by 2002:a05:651c:a04:: with SMTP id k4mr28572583ljq.12.1638683716778; Sat, 04 Dec 2021 21:55:16 -0800 (PST) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id w10sm987674lfn.308.2021.12.04.21.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Dec 2021 21:55:16 -0800 (PST) From: Ihor Radchenko To: Max Nikulin Subject: Re: [BUG] C-c C-* causes "org-element--cache: Unregistered buffer modifications detected." In-Reply-To: References: <87pmr6lu1y.fsf@localhost> <87ee7jdv70.fsf@localhost> <87czmtvrbz.fsf@localhost> <871r2x953m.fsf@localhost> <87o85z7p5d.fsf@localhost> <87lf12gv8c.fsf@localhost> Date: Sun, 05 Dec 2021 13:56:42 +0800 Message-ID: <8735n7d279.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::230 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=yantar92@gmail.com; helo=mail-lj1-x230.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, PDS_HP_HELO_NORDNS=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=1638683775; 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=16ngAv+16zxIErC9MSiJcx7pP6a8KeJUaalVc5pP6bc=; b=f3c4xFtna0QxTdJmRwuLClq1M9RlL3LnqUDqYVctreMsXNnHIy66S3wRzsEvgHkQfJWIU4 F13jtlK0qPfjT2FxubWIkg6rvCGAiGMsUkKjyAU9Wep/JtBG0rKJNuO4mnWZAYGn7reC9N SgcKpPDepnYtApL0iIlH2/hbcLru/yTNZ3Ce9BUpzNZr5cCrP3qifHCKL7ItPMKXsjVz6d ptutMA+pIpg3OWKno3+jvM5xIisAA+ruovD7HBHc37WBnlKV2yNK/L+J3QrEhUJULhu/Ws WmbQEcL113UNoq8hkj0NVJJOGs/nbe9DbquZtW4oohOENv0XYXox9fqcPtK60g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638683775; a=rsa-sha256; cv=none; b=kLphvZ0GLfNpoq/K4dk1gUkVAOvmX7hY6zV+0+Xezwp38JzZTFF+NKinfNm891yguo5r7x G+tWB0TGciT4xwPwxb0wmSzrJ7yMeeA/sOMvwf0ZQUupzXKxvfemch1ewdDBNbsrLLetr5 M2yUJVTW05qZZEMUmnXXaZj6X9zrSRB7IzYkCBnM2vI8JX2Yeebf4FFoyqyCsFEs/bGRgn bYTWCFTC1x6GJWdSZVYtqplUOdQmhp7XkPqhMlvEz6YW7rlE2NlCy+5NcFx0gBI4oHPQpW fJN9qc6/MAjDnWLcwJUIrvcqfCBRcK1ZyJkbk/lbpZAbd5gyA/rpRcedv1Xlmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="hZs/HSXi"; 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: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="hZs/HSXi"; 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: 177F41206B X-Spam-Score: -3.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: RD2WHTup90Sv Max Nikulin writes: > ---- >8 ---- > * A > B > ---- 8< ---- > > C-c C-* while cursor is at the end of second line Thanks! I was able to reproduce. And it is bad news. > Current command: (nil 26 30) > Chars modified: 26 > Buffer modified: 30 This has the same footprint with (let ((inhibit-modification-hooks t)) (insert "* This is going to break the cache\n")) So, I pushed a change that suppresses the warning completely for Emacs <28 and silently resets the cache. I see no other way around it. Fortunately, all the problems you reported in this thread do not happen in newer Emacs versions. Best, Ihor