From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EAQyCuwiJ19tHgAA0tVLHw (envelope-from ) for ; Sun, 02 Aug 2020 20:32:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YKlPBuwiJ19VWgAAB5/wlQ (envelope-from ) for ; Sun, 02 Aug 2020 20:32:44 +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 97F12940214 for ; Sun, 2 Aug 2020 20:32:43 +0000 (UTC) Received: from localhost ([::1]:52492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2Kew-00020r-Hn for larch@yhetil.org; Sun, 02 Aug 2020 16:32:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2Kea-00020W-DL for emacs-orgmode@gnu.org; Sun, 02 Aug 2020 16:32:20 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:39876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k2KeY-0000yN-Ln for emacs-orgmode@gnu.org; Sun, 02 Aug 2020 16:32:20 -0400 Received: by mail-pf1-x432.google.com with SMTP id z188so9251183pfc.6 for ; Sun, 02 Aug 2020 13:32:17 -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=/zXp54aI/V4w4A1zxB2HThoIkwOpS2nnNpVOdVqWURI=; b=Cqyz/iMKRbEGRs2meQq4vft4zWqvFPHBxmK4dpyCiTZND/zuEk8AJtASYzeFwydnxo YrLb/aZ8W23pZkHkoa3flR+MogJ6IlopE44vsgwdnT9yAK8AGi1hRGYsxKcp2adoOlTb Bh+7I0TZc0HPjjqwhZ7pExgNu6ZEc9VmhVvAqX+3BBYBLl8hNMgaiPdhilYTn6jRWR7m F9DJfWridAw914XSnfft5pYJ/ft8Mi6cLqGE/uVMvlNA8J1Vpw2ZZukT5C75D6G0ODov av8/by2o9mMQVp5u7bYTnueD0DoQ3Y8DXnbrauFDKwbeHIYhDVJq2kOovto2NWuMg0KV OXOw== 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=/zXp54aI/V4w4A1zxB2HThoIkwOpS2nnNpVOdVqWURI=; b=rJ0/OItG2Xan4xgDzb0BUkAxu2oIeACcQ5TjyMPpgWbC1HocTTq0GrmEUISWwzXeUn RFz/PNbgdiD0wXAXaHcH7B6MoOxhSs+cLjQUrCwbsJbU7heu6ePBCBV2pGokbK923SxW bHmkDYNKdb+M51jAIpNB/od6o2nkz99wFsexVCgKZ4EP4GG/rcRx/A9nZAWtF/B9yzzW jwsRHH0suwY8O3apaVy8jSpqluwuF4CkCD46C90G/EwYPZ8Ew85IxNfYuk2ZgxDL63Ko JL5kh99xFzOYkz547vOyuNC9UC3PNlWYA+Zs6xnpvkagx0tXOX1fBOk5KAtRFGEL9To6 RMIQ== X-Gm-Message-State: AOAM531rDgzZhZsOeIY+tZQXwb0dOHrIumDVpC8EdvWu7LeklI7zLqiw dnRj6uZlcSuHpXsL65Ufwv+lEABFdWZwyxw1wbA= X-Google-Smtp-Source: ABdhPJyRRNFmdQneoeUxT8OUXuc5/QPACRl+70dSNOgdTvm/YUVTkz7nvzOl68TPNzhiW12QwcmdXwcoVOtYDcnfqRM= X-Received: by 2002:aa7:9424:: with SMTP id y4mr13297768pfo.287.1596400336460; Sun, 02 Aug 2020 13:32:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:8441:0:0:0:0 with HTTP; Sun, 2 Aug 2020 13:32:15 -0700 (PDT) In-Reply-To: <20200715121721.v7f7shcjibfz53bm@gmail.com> References: <20200715121721.v7f7shcjibfz53bm@gmail.com> From: Samuel Wales Date: Sun, 2 Aug 2020 13:32:15 -0700 Message-ID: Subject: Re: make org-refile auto-recache when needed? To: Adam Spiers Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=samologist@gmail.com; helo=mail-pf1-x432.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=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: org-mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Cqyz/iMK; 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-Spam-Score: -0.71 X-TUID: IP4FoETAKVEX i recall wanting this at some point also, and also did not figure out why one would not want it. perhaps it thinks you will use an alternate to refiling if you know it will be too slow. but it's worth keeping in mind that caching has, or had, bugs. in particular, if refile targets are filtered [and you might have more than one set], a single cache could seemingly get confused. of course a solution would be to filter late. if there is anything else that can be done to speed up refile and refile goto /without/ caching, that's definitely best. you have probably profiled, but make sure your completer [ivy, ido, helm] is not the bottleneck. i wish we could get rid of this cache. On 7/15/20, Adam Spiers wrote: > Hi all, > > I note that when org-refile-use-cache is enabled and the cache becomes > stale, attempting to refile results in this error message (originating > from `org-refile-check-position'): > > Invalid refile position, please clear the cache with `C-0 C-c C-w' > before refiling > > Is there any reason why it couldn't just automatically rebuild the > cache when needed? If it did that then I struggle to imagine why > anyone would ever *not* want the cache enabled, because in the worst > case org-refile would just behave the same as when the cache is > disabled, and in the best case it would perform a lot faster. > > Cheers, > Adam > > -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html