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 uB5RLTR+Jl/5JAAA0tVLHw (envelope-from ) for ; Sun, 02 Aug 2020 08:49:56 +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 eEUKKTR+Jl9uQQAA1q6Kng (envelope-from ) for ; Sun, 02 Aug 2020 08:49:56 +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 BFE2D940214 for ; Sun, 2 Aug 2020 08:49:55 +0000 (UTC) Received: from localhost ([::1]:36050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k29gn-0000vt-7C for larch@yhetil.org; Sun, 02 Aug 2020 04:49:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k29gR-0000vk-T1 for emacs-orgmode@gnu.org; Sun, 02 Aug 2020 04:49:31 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:51793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k29gQ-0001Wz-9z for emacs-orgmode@gnu.org; Sun, 02 Aug 2020 04:49:31 -0400 Received: by mail-pj1-x1031.google.com with SMTP id c6so9365091pje.1 for ; Sun, 02 Aug 2020 01:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=gO7IOokDVFW1dIaFeIFhA8gRsZ0ml6j3PfuQ2aC+x7s=; b=GiIbumfdcPqACrIlrWUffbaNlmi5SNnZ4znfOur/8vaiWbewwznGUj5wta1E7BM+ht 1Lct3xRuD3qm7wpEpmW5ZDaGoPkX/vcNjIg7pxjks5GChlys3c3EAy//eOTvYWbuGqjj NJwu4NvfOr0s32mCcyprwRf+Nme13T50WQEalfef1zZvvTq1MctSqjxARogCLzMIHK7z hvl6UOX2/7tg0MB3vTxRKmnvGm+aSyahGW5pdaELG4xH+SC/Sl56cSDuxCJSKDzrl+5k eboNdi7qIpc5CUK3FKnJXcisxixT5ZFq9v+YnlzYRPrF99p+g4rTrMggcWPuinuxyZHF HBZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=gO7IOokDVFW1dIaFeIFhA8gRsZ0ml6j3PfuQ2aC+x7s=; b=KrAj4NEzxHgruOCbEZ90tJ/d3xtnQ0xCdbekKxjuy+xr3YmAXIzAQnlowA8tBj/nID MtVqcuPKjo1SsP+4lVHNuNvyRj3cwmrQnaW2TLZKB4aMRAEA1xoB3PLgnLzsprPv0lgI hgkQcGkOSWzfGwVpx1ycIXHe2OWjhQ+Oqb0ENvlmto72B9EIbFdKtyTBcmuFoNAUn23B fp9vYStKJPTgzS7v9a/HD4Wv7iTTcFDTLJDM3Ych6NW6MEnySOkbZ3EPH0Qx0OeTxDZ0 Dvx2PRSaQL5+2JG+bQXXXRdzz6QCAuLYXUghDY0UzwfFuSFNgAE+7drmdmaGhtd33iwn kNWA== X-Gm-Message-State: AOAM530i00bX78qbGcNNTbCfB7U0zrfjhfpZ4YFx9hjLQYXEkigzfW/a B3PcKTclgFW4KMFPHFkMP9ScfEgzkZE= X-Google-Smtp-Source: ABdhPJzgLJi2Ya3ZmQhBRvxbwOxE43+9XXWS3s+4yEaifmL4/KAmFoquAKY24zYe9xC585+MhciCBw== X-Received: by 2002:a17:90a:5d15:: with SMTP id s21mr12186079pji.154.1596358168790; Sun, 02 Aug 2020 01:49:28 -0700 (PDT) Received: from localhost ([208.115.232.2]) by smtp.gmail.com with ESMTPSA id i68sm15285924pgd.32.2020.08.02.01.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 01:49:27 -0700 (PDT) From: Ihor Radchenko To: Adam Spiers , org-mode mailing list Subject: Re: make org-refile auto-recache when needed? In-Reply-To: <20200715121721.v7f7shcjibfz53bm@gmail.com> References: <20200715121721.v7f7shcjibfz53bm@gmail.com> Date: Sun, 02 Aug 2020 16:48:44 +0800 Message-ID: <873655zb4j.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1031.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: -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: , 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=GiIbumfd; 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.21 X-TUID: VvwbTfWQ1AX3 Seconding this. Ideally, refile should also try to perform refiling after rebuilding the cache. Best, Ihor Adam Spiers writes: > 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 > -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg