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 SC9qBVNRg2GxnwAAgWs5BA (envelope-from ) for ; Thu, 04 Nov 2021 04:19:47 +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 CAkbAVNRg2GVOAAAB5/wlQ (envelope-from ) for ; Thu, 04 Nov 2021 03:19:47 +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 3F160C577 for ; Thu, 4 Nov 2021 04:19:45 +0100 (CET) Received: from localhost ([::1]:50534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miTHz-00076P-BH for larch@yhetil.org; Wed, 03 Nov 2021 23:19:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miTHN-000762-VT for emacs-orgmode@gnu.org; Wed, 03 Nov 2021 23:19:05 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:35796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miTHL-0003eV-UW for emacs-orgmode@gnu.org; Wed, 03 Nov 2021 23:19:05 -0400 Received: by mail-pg1-x52a.google.com with SMTP id p17so4211331pgj.2 for ; Wed, 03 Nov 2021 20:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KLJjZYjxGqiXJFqKn6ItyIk++J0ICmAMjGKguRHLYgs=; b=HUNYZTHthoQ4xXRZbGu90Zk+Krp3axdfs6Wv2+uUHvLpb1sj5pBgLN7uGSHmfsXHI9 rRhmx+K08DDksc/g0b3PKWIHniNvNkD0+TZfxdEwRFXw66x1w8xq1UaW/GShuLQTFPZd xiAAHbnc7j2pkhmtMWY9zb7/yUIyK4uxa1+Hx33FNp3W2z2juQdjCkFKx3WGerR8yykq 07FfMnBN/PpemfEFozAwDQY0kTjD0TRnbl9sNHrG/g2R/Znsl4NduYmRSP1MutpDtlms mcBH9+8r1a6FsciigfYQpiCmA/7PMD2PXuyqM3G2KknlPCvWVAX64QCQtVHowwS+GtxV e3wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KLJjZYjxGqiXJFqKn6ItyIk++J0ICmAMjGKguRHLYgs=; b=mttTqKDmV9IhCmfXBmdNj7RsWbqTbNCyD5ySqOShZXk9EP0Ru44DWTvQNT1Y15U/Vk vdXeznuWgGaI01RdoYmtrsz/KL4tKcGDPa49UGygR5MihGbjk4Ko6QavwivsO5U5PPor jlV342zNXafiRjzJO2Fjln4YXo5IBaM4LDCsiu7HbLp8YtmqomWjgy8M9WkFn7eAAAzs ZEjKXZ3sIJA9R8+vXTEQdm3dQiBV/jTYfNWQdgwdKXz3TlVesi1plOpfNYpd8KK3u7Mu G+gnW54UJKoH6IGXN3Rg+iij/xEGgqIkrmjBZyzMyRvmSpkyq34KE2niYe1KIpZsKUea sLKA== X-Gm-Message-State: AOAM532SPQ0bQ4LtbypJzmrqNV2cfjSLVqm6nCozVmXU1vljeiba3mnj d9JaSLUKzxzvqwLLJ807FqKwJUTjaoQqOCuF/vg= X-Google-Smtp-Source: ABdhPJwW/78WbVpU6J8mKbUgUmVQ8a4Jis0P5GtB1UkKXU8dPlRZerRk1W0KDxBIU9IVFV7a5Iqn7OmUjPTQ0f1ix/w= X-Received: by 2002:a05:6a00:23ce:b0:480:fee1:5495 with SMTP id g14-20020a056a0023ce00b00480fee15495mr29403804pfc.71.1635995941836; Wed, 03 Nov 2021 20:19:01 -0700 (PDT) MIME-Version: 1.0 References: <877dduo72t.fsf@localhost> <874k8xoqoh.fsf@localhost> <871r40avly.fsf@localhost> <87bl31ea40.fsf@localhost> In-Reply-To: From: Aaron Jensen Date: Wed, 3 Nov 2021 23:18:50 -0400 Message-ID: Subject: Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)] To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=aaronjensen@gmail.com; helo=mail-pg1-x52a.google.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, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635995985; 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=KLJjZYjxGqiXJFqKn6ItyIk++J0ICmAMjGKguRHLYgs=; b=fBildvqY2Y/FzbSInFyCPEEorq4FIK6qIEnkZNt7btnGlYHCWeA9v7Z4LLRK51Fc9IP+2+ 5OEmW3CMnOzbr8HLfAXCkcvKo+7LbMb0b3VMnkcpH9vFyeTsfX7cB2P+p8KfSlrk6PWoVt Py3ad+4kIJkFO4Yw94Re7ov1N9/BuJKLfsd/qM3XOWHYZtkFPmaQVOz2KfBtkSaQ3N5qxY zp2le+X+5FwbNd3INlX9Kss733//VhfC4qYGb+GrxfDWjAQhQrHrQ6951WOrzgZ+FA1HQi CWsFbCSxj2PdNfQrqSFfChawKglezyC3emVVI4mzEO3E5mxCW8IotWS7zymGAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635995985; a=rsa-sha256; cv=none; b=dp3g8M0RgkyaCuavaqJB4HdSMC9e4P8D6B3kb7S/QL3Qn/GWD0e/WBeOqvY99XRAguPkQy 3xlpq5jfa/0dYKR4+kA6lTUIeVetqCJYni7WnPcExAD9K1O5K0Z4VoeioWzA34gnuf+5qJ vj1Kws9SX+Ai8dYvYc/fPF46ih212c3KDQzTVxP5Z2Hd66vdaGO2L4IenvCemAT0Mlbj4Y pWKCAtaiK/H/NBw5L1oG2i52C2NWZSgj6ZCXa9NgKuByXDi5RGtnGYSuGt6iOdXEKEsNSm yFg5tg9THJ3ZcZeO+EZbeeOttPZbGOQK9tibEFb+nhua3+eYd5W4EJpQCYRNLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HUNYZTHt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HUNYZTHt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3F160C577 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZgYkfb/Xiquk On Wed, Nov 3, 2021 at 10:30 AM Aaron Jensen wrote: > > On Wed, Nov 3, 2021 at 7:43 AM Ihor Radchenko wrote: > > > > Aaron Jensen writes: > > > > > Here is a backtrace. The package it mentions is my own: > > > https://github.com/aaronjensen/emacs-orgonomic and > > > https://github.com/Somelauw/evil-org-mode is mentioned too. > > > > The mentions are ok. Backtrace should mention every command that > > actually changes the buffer. > > > > > Unregistered buffer modifications detected. Resetting. > > > ... > > > Backtrace: > > > " backtrace-to-string(nil) > > > org-element--cache-sync(#) > > > apply(org-element--cache-sync #) > > > timer-event-handler([t 0 0 599999 nil org-element--cache-sync > > > > > Backtrace: > > > org-element-cache diagnostics(20211101-journal): Nothing to remove. > > > No elements in cache after 361. Terminating. > > > > It looks like cache complete the synchronisation successfully, but some > > command bypasses modification detection. Unfortunately, I cannot catch > > the problematic command from backtrace. It acts "stealthily" for cache. > > Is there a specific kind of edit sequence that you did right before the > > warning appeared? > > > > Best, > > Ihor > > I don't recall, but I'll view-lossage next time it happens. I got a warning when I did an org-agenda-todo to mark something as done. https://gist.github.com/aaronjensen/163913c0937376c9699eaa71eaa0959a No idea if it's related, but after a refile I save all org buffers eventually (defvar aj/org-save-all-timer nil) (defun aj/org-save-all-org-buffers-eventually (&rest _) (when aj/org-save-all-timer (cancel-timer aj/org-save-all-timer)) (setq aj/org-save-all-timer (run-with-idle-timer 2 nil 'org-save-all-org-buffers))) (use-feature org :config (advice-add 'org-refile :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-schedule :after 'aj/org-save-all-org-buffers-eventually) (add-hook 'org-trigger-hook 'aj/org-save-all-org-buffers-eventually)) (use-feature org-agenda :config (advice-add 'org-agenda-quit :before 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-todo :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-deadline :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-schedule :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-refile :after 'aj/org-save-all-org-buffers-eventually))