From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8NeiEtUmbWGCewAAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 09:48:37 +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 4GZzDtUmbWF9bAAAB5/wlQ (envelope-from ) for ; Mon, 18 Oct 2021 07:48:37 +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 C12442FF41 for ; Mon, 18 Oct 2021 09:48:36 +0200 (CEST) Received: from localhost ([::1]:60876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcNNr-0004Wc-Uz for larch@yhetil.org; Mon, 18 Oct 2021 03:48:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcNN9-0004US-Pk for emacs-orgmode@gnu.org; Mon, 18 Oct 2021 03:47:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57992) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcNN9-0001dg-Gk; Mon, 18 Oct 2021 03:47:51 -0400 Received: from [185.24.184.132] (port=44051 helo=hal) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcNN9-0001WR-Ac; Mon, 18 Oct 2021 03:47:51 -0400 Received: by hal (Postfix, from userid 1000) id B68891E041C; Mon, 18 Oct 2021 09:47:48 +0200 (CEST) From: Bastien To: Ihor Radchenko Subject: Re: [feature proposal] Headline caching via org-element-cache = up to 2.5x performance boost In-Reply-To: <87h7dgp29c.fsf@localhost> (Ihor Radchenko's message of "Sun, 17 Oct 2021 14:57:19 +0800") Organization: GNU References: <87bl4p6n0m.fsf@localhost> <87a6k8esrl.fsf@gmail.com> <878rzs7r0c.fsf@localhost> <877dfcenze.fsf@gmail.com> <874kag7mmt.fsf@localhost> <87v92o1zev.fsf@gnu.org> <87h7dgp29c.fsf@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Date: Mon, 18 Oct 2021 09:47:48 +0200 Message-ID: <87sfwyrcyj.fsf@gnu.org> 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: emacs-orgmode@gnu.org, Timothy 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=1634543316; 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; bh=HhD6LXIywahxX/DWJricS7mKUK9LSw07VlRZgY+nbDI=; b=BxlberKGd6sG5NK/gQU748lOszB7z+4JmAMdeNDgBq6WCpsW7oDx0j1gYUIgYFR9/oqm+L uP7siXIJTCrCJCeJQs2VnwQOlajAIY9j1jxLkAAJzEvbd0GjduKjjG4ZNxPAhHPQnKuAmu wot+q839EwY7tIE+wMYrSi7VORNmdMeWfODBp/mMcmXu1p90jZMfgptxRLYcbojLEAnj3m YPZz0me0ErfS236yai9Hpn6hFss6aiarPOD0eUwtQO9wJuljiJcXp555ZhVlwH2PF85In6 30aOykbpnIUS/cEOh0q8AlmyrCXppqZxvDbrSjC8fnzr2SPrl3Fwzrsf68HA6w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634543316; a=rsa-sha256; cv=none; b=AwxIDXx3EcubF86RaYgsFYeuxrdCcSdOuGhtbL3oYprtpKg9RULz2ifaVhrufCpI06VkhV D7E3u7rEGBfWWmBLW0DsbnH1Ey0q+wyze126A1saSmORnMok+FVGyFvJNfkLqRWVJ6cTlt Zp9+1r3IUNsnru2M5O11LXX8Uvx69JtSS2uq6mP525PqvcOzX/YT3fqwSAaRRLxZSP7aPw 2vPzyOVHqbb9CUS0a9w8vtwmx4bOhPvyoi0unXJ1XYRLa/wtteGyXd/FJUwPTjdMuU7o+y C5saHRVQx5Xf/Di/kyTbGiPV1Y2h6Kx9XIrpn4ON06Kjs2iqESoe0sGWMJWZqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Migadu-Spam-Score: -3.52 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: C12442FF41 X-Spam-Score: -3.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: Y3BS1URlGNqW Hi Ihor, Ihor Radchenko writes: > Bastien writes: > >> If you feel confident the change is mature enough for being merged >> into the main branch, please go ahead, this will boost the feedback. > > Merged to main just now. with latest main, I cannot use S- (org-agenda-do-date-later) to update the entry at point. Here is the backtrace I get: Debugger entered--Lisp error: (error "Cannot find time stamp") error("Cannot find time stamp") (if (org-at-timestamp-p 'lax) nil (error "Cannot find time stamp")) (save-current-buffer (set-buffer buffer) (widen) (goto-char pos) (if (org-at-timestamp-p 'lax) nil (error "Cannot find time stamp")) (if (and org-agenda-move-date-from-past-immediately-to-today (equal arg 1) (or (not what) (eq what 'day)) (not (let ((save-match-data-internal (match-data))) (unwind-protect (progn (org-at-date-range-p)) (set-match-data save-match-data-internal 'evaporate))))) (progn (setq cdate (org-parse-time-string (match-string 0) 'nodefault) cdate (calendar-absolute-from-gregorian (list (nth 4 cdate) (nth 3 cdate) (nth 5 cdate))) today (org-today)) (if (> today cdate) (progn (setq arg (- today cdate)))))) (org-timestamp-change arg (or what 'day)) (if (and (org-at-date-range-p) (re-search-backward org-tr-regexp-both (point-at-bol))) (progn (let ((end org-last-changed-timestamp)) (org-timestamp-change arg (or what 'day)) (setq org-last-changed-timestamp (concat org-last-changed-timestamp "--" end)))))) Let me know if I need to investigate more. Thanks! -- Bastien