From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IHENKlZLUl9yLAAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 14:12:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ICsHJlZLUl+jXQAA1q6Kng (envelope-from ) for ; Fri, 04 Sep 2020 14:12:38 +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 316729400C7 for ; Fri, 4 Sep 2020 14:12:38 +0000 (UTC) Received: from localhost ([::1]:46914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kECSD-0006kA-3t for larch@yhetil.org; Fri, 04 Sep 2020 10:12:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kECRp-0006k0-7O for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 10:12:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43377) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kECRn-0001iV-R5; Fri, 04 Sep 2020 10:12:11 -0400 Received: from [2a01:e35:2fe1:f780:8527:1161:6222:31b3] (port=48514 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kECRn-0005Lj-04; Fri, 04 Sep 2020 10:12:11 -0400 Received: by guerry (Postfix, from userid 1000) id 081B91A60D3F; Fri, 4 Sep 2020 16:12:09 +0200 (CEST) From: Bastien To: Adam Spiers Subject: Re: make org-refile auto-recache when needed? Organization: GNU References: <20200715121721.v7f7shcjibfz53bm@gmail.com> Date: Fri, 04 Sep 2020 16:12:08 +0200 Message-ID: <878sdpmy13.fsf@bzg.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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=none; dmarc=none; 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.01 X-TUID: lMfpWiQOa+Tz Hi Adam, Adam Spiers writes: > 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 we can rebuild the cache for refile target in a reliable way, sure, we should do this. I had a quick look and this isn't straightforward, so help is welcome. I note the idea for after 9.4. Thanks, -- Bastien