From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2GchCHX1eGF9owAAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 08:45:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IJKzA3X1eGEGPQAAbx9fmQ (envelope-from ) for ; Wed, 27 Oct 2021 06:45:09 +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 781DC2D68D for ; Wed, 27 Oct 2021 08:45:03 +0200 (CEST) Received: from localhost ([::1]:40424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfcgG-0006WY-Te for larch@yhetil.org; Wed, 27 Oct 2021 02:45:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfcfE-0006Ub-JG for emacs-orgmode@gnu.org; Wed, 27 Oct 2021 02:43:56 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:34456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfcfC-0004Ka-Ts for emacs-orgmode@gnu.org; Wed, 27 Oct 2021 02:43:56 -0400 Received: by mail-pg1-x52b.google.com with SMTP id h193so2010710pgc.1 for ; Tue, 26 Oct 2021 23:43:54 -0700 (PDT) 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:content-transfer-encoding; bh=C9/xhJnHWfduicckf3GKeHLISUGJsMnun4kuGs2mg6M=; b=lw/g6NsJ0KtpYp0cB1cx8/IAtWm3eHy8IYVl+cEX4w/HHbeLNOvL0Evq4QAj3LJObf y/K3enDjpkS6vY2xhMfUEV/9D2kIGq6rNs61iS1xoHupMvCRdEklL8HKF0yi03UJoSxl 80rCzfUNOs9Z7DwVjEd/8L1dHeEsbt0ORMLxmaQfiUIRaKxdqNoV7N0AhAgp/33vGFvs SHqTPH4xixG8HHdspILOl5+algdewHlz7FttYY52XjO4opsrf3eMIY7pYFGav5NKDndg aehMpsl7k0KnB3nl+JN8IWiZzMfl4fULWoAULDVD+9vIbLmgmJBaXSa8LPipNKaei2KJ SjcQ== 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:content-transfer-encoding; bh=C9/xhJnHWfduicckf3GKeHLISUGJsMnun4kuGs2mg6M=; b=uqez2fnoH3kivOHZB0+gCtgyKNpJUJTiSFAYAsO46sVh3ASRoGK+pav4B79NbiN9YC EtqQIRxGdQ23zphIxviuCNqKcGKivl8xrRnas4MjA7QYgkCVmDPvhYeaQG5urtXDX2nm OB2ypmHtN4/y0sxuP8EMSXmvlarlvKqe+9J4If+5tpRBLEoNpWNY0hy+vyI03QMkMxNV tZ4H4M2nwsVDVyGsKayWgsEAbJI6UFn3RHQVlqDh7E7ZZl4lFw5oHU2Gb7WyT2pPNcg/ DpPF5n3POkz9MzHoFckzT2foKYRx0jq5wE/kXBryykU6a12mjYY+EdV9seZbe6LKUNuF Yb3A== X-Gm-Message-State: AOAM531eMfroejort7qcG+5UQcZo40wyjeaib8YxwAL4Dildhp94F+nn Q/bTsfOQXNC5jLJ2SxNA6IY= X-Google-Smtp-Source: ABdhPJyC9MfPvYkjEMGUg/fDr8yollan1E+S8onlq3AQGeK0Ji6Mcm48kKdAW5BAaIndDys6qKfIZw== X-Received: by 2002:a63:18b:: with SMTP id 133mr22053921pgb.156.1635317033389; Tue, 26 Oct 2021 23:43:53 -0700 (PDT) Received: from localhost ([103.125.234.161]) by smtp.gmail.com with ESMTPSA id p4sm1743144pfo.73.2021.10.26.23.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 23:43:52 -0700 (PDT) From: Ihor Radchenko To: Colin Baxter =?utf-8?Q?=F0=9F=98=BA?= Subject: Re: org-persist warning when archiving In-Reply-To: <87sfwn1xwf.fsf@yandex.com> References: <87wnm0rw3b.fsf@yandex.com> <87sfworvq8.fsf@yandex.com> <87cznsuj05.fsf@localhost> <87fssng83r.fsf@yandex.com> <874k93vnan.fsf@localhost> <87sfwn1xwf.fsf@yandex.com> Date: Wed, 27 Oct 2021 14:45:19 +0800 Message-ID: <871r47yni8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, 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.23 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=1635317103; 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=C9/xhJnHWfduicckf3GKeHLISUGJsMnun4kuGs2mg6M=; b=n6I4bh3K3JNlotUDgjfSgMnQ/8SiStljfbG0hQkUFXMnU8LRtOiZwZoI7eSEq4eYWouAUa Ytrpvl0ydYmGbnUkGy7MEHL29PSaozbeMHgI45fnF4oWz6NNKCG/Kz/R89L5jypQhATmEi 27ZYzdELc4WvkqCkzKPkHFUrfnxJ47Gf9ndGMmuhNbiPcEfGrJ6QG1tUiUwFur/NC1kIj9 JlnOFGB/E55hEc6u6XzjamU7xyuEv6dQeGUco9QTg41787FcPVfBfSE6ktdUOX6xi4M8HA KSG3PNd/hUAWlohj2e/F8kQkh9rx8wKjOCm7G2lbQB1wmxkg+Kil3rmO1hv9yQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635317103; a=rsa-sha256; cv=none; b=UegIw764vCryXMhuYObQVisDJOjb7b+oYZl90ADIq51e6KT7XxTA4Sm2knIDc6NsmO056A Jksi8kJ2LMkoxn5mgFuGA8Dko5VSdkgbFSIcDRc+u0EmTdRslCRAoBHCPvupxPuA3N9bPN 1aJY3AqRbKlu0jJhatPEs14sfNDQ+qpIKwqei8FvQzuaBFRC0Gtl8/XmJ8XjhQECDKXvjB tkV3TlFPFEjLNIoscQE6XX5p45OTaEKPP9+/11O5C3PRSxIEqZcS7NyFG9o4jMe6tEXJHG z/oYS14vDE2Yi/Uly9CEjYc9aypP4Vi4g4RiNnu0xfwfpjsL7cNEIIWKQ1/5sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="lw/g6NsJ"; 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: -1.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="lw/g6NsJ"; 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: 781DC2D68D X-Spam-Score: -1.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0/8C5n8gVJlq Colin Baxter =F0=9F=98=BA writes: > Ok, I now applied your patch and remade org-mode. Unfortunately, I don't > see any change. I still get the warning on all the archive commands: > org-agenda-archive-default, org-agenda-archive and > org-agenda-archive-default-with-confirmation. I've appended the warning > for the latter command. Thanks for testing! My guess was incorrect and I am still unable to reproduce using agenda (previously, I just tried archiving from inside Org buffer). > --8<---------------cut here---------------start------------->8--- > Warning (emacs): org-element--cache: Unregistered buffer modifications de= tected. Resetting. > If this warning appears regularly, please report it to Org mode mailing l= ist (M-x org-submit-bug-report). > The buffer is: todo.org_archive > Current command: org-agenda-archive-default-with-confirmation Disable sh= owing Disable logging > Warning (emacs): org-element--cache: Unregistered buffer modifications de= tected. Resetting. > If this warning appears regularly, please report it to Org mode mailing l= ist (M-x org-submit-bug-report). > The buffer is: todo.org_archive > Current command: org-agenda-archive-default-with-confirmation Disable sho= wing Disable logging > --8<---------------cut here---------------end--------------->8--- > > I've not tried it on emacs -Q yet. For that, do I need to start afresh > and first delete the org-persist-directory? You can simply start from emacs -Q + a new file (the new file will not have any cache). In my testing, I just created a new org file, opening it from emacs -Q -L /path/to/latest/org/lisp -l org /path/to/the/new/file.org Then, I added a new TODO heading, opened todo agenda for current buffer, and tried to archive the heading from agenda. No warning on my side. You can repeat my steps and see what happens. If nothing, you may try archiving from your todo.org (but still using emacs -Q). If still nothing, it may be something about your config. The original intention of the warning you are seeing is catching external packages that change buffer text silently. That's a no-go for Org cache because unnoticed changes could make the cache incorrect (for now, they just force cache reset making cache useless). Best, Ihor