From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OE7aIXQNimBtBwEAgWs5BA (envelope-from ) for ; Thu, 29 Apr 2021 03:35:48 +0200 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 mIV+HXQNimBySwAAB5/wlQ (envelope-from ) for ; Thu, 29 Apr 2021 01:35:48 +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 6AC0D13A39 for ; Thu, 29 Apr 2021 03:35:47 +0200 (CEST) Received: from localhost ([::1]:50560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbvaj-0000WC-Ut for larch@yhetil.org; Wed, 28 Apr 2021 21:35:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbva0-0000W1-AA for emacs-orgmode@gnu.org; Wed, 28 Apr 2021 21:35:00 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:33476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbvZy-0007Ak-Ip for emacs-orgmode@gnu.org; Wed, 28 Apr 2021 21:35:00 -0400 Received: by mail-lj1-x22b.google.com with SMTP id a5so37498327ljk.0 for ; Wed, 28 Apr 2021 18:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=53+O2nn5PqYTq/wAeuckMSzDFtqsayw6SXwndU13wIA=; b=UVQH0jMHxOdoL+ua7w9L0KeUCj+I6XY9olUvAuTSXO2qMZlu5nlLcXpeC+yvFwTtYl 53WJCyPig0QZ/jDQonPYDTXMICiv0M+giQKN6pji/GH14sxDnYgtnh00T+unT7PpU9Ah pjLfzSOY146LgqpMC2CLKi5XoWnLINfaT4tLcvNFi8uYrQfXMmmpyCgBLnU3a0GSnEzK ZviP8EYjgigpB9ns8aAjwc3hT7qhET8tVVqTilvtc8RFqVwImLXnVBMbMbnHtPu22yc9 Ktcw8puTLzVGx8NbuPlgXLrZDBkqpeY/PceBlrw8wpgfqkHsXPHdxqkO3sVCcLlWDiPx zb5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=53+O2nn5PqYTq/wAeuckMSzDFtqsayw6SXwndU13wIA=; b=oGs+pPTW/83SlXCM+ZxPiBijIPtD5zQKLcRfdh6AtMAnkJWmDOd72CEsWms+M3KIXg NOlfqRqIqZtlZ5JSLomIkt6NDgr59veNORyGbAtd4DZuI09fCo7nOY4v/Kc02SsDANmA V8tLwrRF4WjVyQeEJwjkyqBoBn8wZPYgP40eKUzMwygZC2RWx6P8FtLevrf+FMQj7aXY sAjLWY/OngVQCYBDV0s++ZLs3ylgjcQupoatD6khm+/2QF7ZUAFDvyA/CNZdAmClOMTf Usthz/KwviiTKFda+IEOgC3OCd5NsPtBuZam+2lk+OmxVdc9RwNwqO83VzL1khRt3dML 1DcQ== X-Gm-Message-State: AOAM530FjqPCakoG8rhXLmWsj4QPUFar0+6F9uzu/VzzQVju+69G3Ro6 7XMfiZg0ZK9ij/fd4DmNjglQqUle35A9jq552Oo= X-Google-Smtp-Source: ABdhPJx0m1HAtA3SYxkRoabTPFVDVWsGIxFc2vEjqXwa3FlQtBu8syI58twBIBOhAX9OCEzfFbulYFof1vIrRieJ0u0= X-Received: by 2002:a2e:9a15:: with SMTP id o21mr1174336lji.39.1619660096569; Wed, 28 Apr 2021 18:34:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6504:5f6:0:0:0:0 with HTTP; Wed, 28 Apr 2021 18:34:55 -0700 (PDT) In-Reply-To: <87v98598un.fsf@localhost> References: <87v98598un.fsf@localhost> From: Samuel Wales Date: Wed, 28 Apr 2021 18:34:55 -0700 Message-ID: Subject: Re: [PATCH] Bug: fragile org refile cache To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=samologist@gmail.com; helo=mail-lj1-x22b.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxim Nikulin , 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=1619660147; 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=53+O2nn5PqYTq/wAeuckMSzDFtqsayw6SXwndU13wIA=; b=D5mZujdLWEvjBUjFwXtkrBIc4EsARF4T6zPsoeqZEvqFjgqzqfHsDu+wJB/1RBtJ+7poSi bPfsXiX38IIHgq6uD2UC3z2lSXdqfqZ5r2KFwjR4azXQyWkBHQZgqLY20/U13Eo3PPsKix rFlUZ8OXCwPAlI1zV682Z+jYbE+4eK8GVxX2Ni0oCCtlAP/KdfPU2C7ED5D9JIjTzc2kq7 F8AEWxSdgFrC3bXqO6zIWCiOqOORWTS0At0LkAtmnt11kKJpvdv1mU2kKHnTiubhlPnfhi RYDQs2MQU90A8LoTGTaXd8+J5agvRc83PRg6PF8rEyE2ityp/naNdtyqwo/5ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619660147; a=rsa-sha256; cv=none; b=KaAq7ljGGcfBSkNqJYz19SghnXIxjmYlnntXhJL3jmALAmhqGw24Rdx/RHcKYESVhrQLaz scIPU3QGIQBLe+Wln5yTDs+laXghmN+x87DTdVvxgKUnQckfQ2OE/YRzU9wb0n9owEYvp/ 3nm24ITZ8xfbPzpPBRmgN/q6mrg+oBZVT0Xdvxm1u8GxtE972DnNeyKcaxTWKNJHYjZdsP +u0Z3kvXr+YKC9QtHdJ7LeDhHLjBBkfvv4ilfMJhbmQHWUIk/Bu9ue4B7Q7usb7CG9i3PK GMrVdO9pKRun8lTHWwwnXzzlLsntGsxaqVbxHhaCdy0wpBOjiqy2DOb+NRtTGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UVQH0jMH; 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.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UVQH0jMH; 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: 6AC0D13A39 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: DA4bUBiusuPk thanks for reporting that you use it. would it be more useful if it automaticaly generated the cache instead of telling you to runt he command to do so? if a solid, perhaps unified, cache existed, would org-id use it too? On 4/28/21, Ihor Radchenko wrote: > Samuel Wales writes: > >> long ago i used to use the refile cache. i think it is probably not >> widely used, or maybe even not at all. > > At least, I do use it. A lot. I rely on it. > > I do not observe the breakage as described in the first message, mostly > because I use refile cache exclusively for org-refile. Yet, I often see > "Please regenerate the refile cache with C-0 C-c C-w" when I do a lot of > batch refiling. A faster, more reliable, caching would be certainly > welcome. > > In general, various parts of Org mode code base implement different > types of caches in parallel. I am aware at least about org-element, > org-scan-tags, org-agenda, org-refile, and org-goto. Probably Org mode > could benefit from unified caching mechanism? A good implementation > coming to my mind is org-ql [1]. It implements tag caches, outline path > caches, and can even be used to cache results of an arbitrary function > with point at heading. Basically, all (except org-element) types of > caches Org mode uses now are already implemented in org-ql in unified > way. > > WDYT? > > [1] https://github.com/alphapapa/org-ql > > Best, > Ihor > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html