From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EMdbHYMSpmGImAAAgWs5BA (envelope-from ) for ; Tue, 30 Nov 2021 13:01:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sGbfGIMSpmF3eAAAB5/wlQ (envelope-from ) for ; Tue, 30 Nov 2021 12:01:07 +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 062C521347 for ; Tue, 30 Nov 2021 13:01:07 +0100 (CET) Received: from localhost ([::1]:33792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms1on-0005rC-Qi for larch@yhetil.org; Tue, 30 Nov 2021 07:01:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms1nJ-0005k7-2V for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 06:59:33 -0500 Received: from ciao.gmane.io ([116.202.254.214]:45388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms1nH-0002iG-Iq for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 06:59:32 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ms1nC-0006iM-So for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 12:59:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [BUG] C-c C-* causes "org-element--cache: Unregistered buffer modifications detected." Date: Tue, 30 Nov 2021 18:59:17 +0700 Message-ID: References: <87pmr6lu1y.fsf@localhost> <87ee7jdv70.fsf@localhost> <87czmtvrbz.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <87czmtvrbz.fsf@localhost> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-2.211, NML_ADSP_CUSTOM_MED=0.9, 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: , 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=1638273667; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=SeBobsQ/erzNO/WLb2eV9xRnjX2i/aTah/ARRErwT6E=; b=Ffpv9SUB8Xf3JnrZHCWJsWjBT1PN61u9m0do4JTx07ZdySg3MnF++vOeha/Coh96bh1ccx 2qRPDTUgey8efLQozwu06obqMMPPjmfMcgnALy+5Nll9kkY93g93h43eYETxOngqX4VSdp 08TVj/UYT4TDz3GDpOavAEdbEKVLhKklBEq+MP+hGlyJ3TJsN/ntELymF2qBO57YxfTPIv h3mRUgpgEKyF9HTKxY0szm1FdYm3Ci1b9uZ3LmkwH8rF38IF2mzYvKd31211vdmky10lhl K+Vt5Amo7k1qI1OZVZQ26bVlFjGv+bFvHIRn7pzD9QhztL0h0Py+6id8dJRKqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638273667; a=rsa-sha256; cv=none; b=P9XeOJSkXTP3qlFOuPwkAc9AaID98HwdtEaDrwQPEkdoAtvC3YHLrRi02TFbCTrECmUfiJ BeKDZ/xV749Txia4QR5GHIzYgX9eIJjH/owz9RKSW3ji5n9aRiRzeA51z6+B0aPxSD/tpG NI0J2QmQWk7aJdz9fw5bWHgL0lFWjPUIsSkF6GSkPIXIxbxBKMmKQRcEyRMvWpnpgi5fsc auSDjsYj4fP2XGn6r3uEufALxSkXRZ1FAfEO7p+sInR69UY6R85z+sK//4OjymZGn9Th7g gO8cL59IoKbeLLYX9Cg2odwQWvQJkfK15l+LfkGOnIjLBf9uiHP0vrmY4IXcmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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.31 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 062C521347 X-Spam-Score: -2.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: Es89QIFAAqZq On 21/11/2021 15:35, Ihor Radchenko wrote: > Max Nikulin writes: > >> C-\ russian-computer RET >> A >> C-* >> >> Latin "A" to type Cyrillic "Ф" > > Apparently, C-* on >> Ф Put cursor on this line and hit =C-c C-*= to make it a heading > and just >> Ф > are producing different buffer-chars-modified-tick/buffer-modified-tick > signatures. I have added this kind of edit and the one from your other > report [1] to the exception list. The commit is 28d47cfb8 (main). Ihor, thank you for your work related to such issues. I had a hope to thank you for the fix, but I faced a warning again in a bit modified scenario. This time it is soft indent mode. ---- >8 ---- #+startup: indent Do not forget to activate settings above by =C-c C-c= * H Try =C-c C-*= on this line ---- 8< ---- Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected. Resetting. If this warning appears regularly, please report it to Org mode mailing list (M-x org-submit-bug-report). The buffer is: new.org Current command: (nil 312 320) Chars modified: 312 Buffer modified: 320 Backtrace: nil First letter of new heading must be a capital one, though it can be Latin. Converting top-level "H" heading by C-c C-* does not cause such warning. > Given the growing number of such "special" cases, I also changed to code > to reset cache all the time but for "self-insert-command" in > russian-computer. Just to be safe. The warning will not be shown though. > > [1] https://orgmode.org/list/sn5uaa$ehd$1@ciao.gmane.io I am not an active user of main branch (I was merely hunting for another bug), so I can not estimate performance penalty for large files due to continuous cache resetting. I do not follow emacs-devel mail list last weeks. Have you managed to negotiate with Eli concerning changes required in Emacs code? I mean some followups of https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51766 #51766 29.0.50; Return value of buffer-chars-modified-tick changes when buffer text is not yet changed before inserting a character for non-latin input methods