From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wDsQIVtC315BNgAA0tVLHw (envelope-from ) for ; Tue, 09 Jun 2020 08:03:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SEHXHFtC315dUAAAbx9fmQ (envelope-from ) for ; Tue, 09 Jun 2020 08:03:39 +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 6E667940985 for ; Tue, 9 Jun 2020 08:03:38 +0000 (UTC) Received: from localhost ([::1]:47194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiZEP-0003pj-2f for larch@yhetil.org; Tue, 09 Jun 2020 04:03:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiZE2-0003pD-2x for emacs-orgmode@gnu.org; Tue, 09 Jun 2020 04:03:14 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:38437) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiZE1-0004FJ-9Z for emacs-orgmode@gnu.org; Tue, 09 Jun 2020 04:03:13 -0400 Received: by mail-wm1-x333.google.com with SMTP id f185so2116412wmf.3 for ; Tue, 09 Jun 2020 01:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=395YxFtF8gJ5jR6SO86k6TRwYEbZZ9tRUB7jtIu2zyE=; b=E3pmaMk6j99Y0YLIWW4/NEzQgU7pfoaC0Sb2vJ4NT2LEeaD0kIf3NVTXMfe7weisOs DmPHj6vSB/qLxVfH93IH7kpFPcLzRi+lWcCJngehXpAPnd2UB71XDV1HtJNxam/eCMmS xHHTAN6vquj36YnD17Qg6QPLk7DoK5JD6BKooZhRJha/zIOES3SCD1PjmlLu2EsJeWep 5SoMc9qVM8dl/DnwjKruMSYjLNUoH1dFZ/vu+ikws02HeX35vbjS8SExGIDVM6Y00VRN XfneLXZsoe/zdzaaaiCF6hzfKdyPvZl1gy6v6zwLsrvmCJDks5wLN1878UGHt9hyJmWt XeXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=395YxFtF8gJ5jR6SO86k6TRwYEbZZ9tRUB7jtIu2zyE=; b=qTGKuK5sAx/RD4xbbBPngkxXQx/0Z0xrKWLfagklWwa17cyyEGsWEQ7s7Cr9quLY94 OSswjTanXxdrnniLSMNkELcizQH6onDamwHmYR+utJVRlczNkMALEcpC1YJReEtk6BBF BJWwENyPHbzIOZr+0SgxX/dy+6vcjG4z/gVSlG0XLDS/3UqBVzHACyyzeXCoiHcc3xcM Y7Jc3tpp7WpDQJi/6B49mdcMmDAUEI6hFG7du99JIP4I55gqLINFUYB3cxaIoJE2AN+1 IU0aDLtW2/skFhhpN2VwRaVXFfhGVVZEWG6CZ0vadTilFK0mAArE5PuuGMnRi1aN80Oa wcvA== X-Gm-Message-State: AOAM531UPWF3KQXknXeKyOheCRXaRFGb2oDk0ijW93V+NuKAg8Z9mjbe fopAYCgebs77rSRMVNpsmboRtDU= X-Google-Smtp-Source: ABdhPJyZ3N3knx6qduWbdqggY+d5823D/RGg1nGInK+WkNBIJJSpbdlECsdMNEe+sfAMooBjHNeRCQ== X-Received: by 2002:a1c:8107:: with SMTP id c7mr2746293wmd.20.1591689790897; Tue, 09 Jun 2020 01:03:10 -0700 (PDT) Received: from thinkpad.localdomain (5.7.9.93.rev.sfr.net. [93.9.7.5]) by smtp.gmail.com with ESMTPSA id a124sm2001021wmh.4.2020.06.09.01.03.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 01:03:09 -0700 (PDT) From: Leo Vivier To: emacs-orgmode@gnu.org Subject: [PATCH] org-element.el: Update comment Date: Tue, 09 Jun 2020 10:03:09 +0200 Message-ID: <87pna8wts2.fsf@hidden> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=leo.vivier+dev@gmail.com; helo=mail-wm1-x333.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_PASS=-0.001 autolearn=_AUTOLEARN 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=E3pmaMk6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.59 X-TUID: JMlXKVshmBaQ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi there, I=E2=80=99ve noticed that a comment on the caching of org-element wasn=E2= =80=99t up to date, so I went ahead and updated it. I=E2=80=99ve also fixed a missing qu= ote for one of the variables. HTH, --=20 Leo Vivier --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-org-element.el-Update-comment.patch Content-Transfer-Encoding: quoted-printable >From bf1fcc1c0650c30e1e12244df084ab344a2cac59 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Tue, 9 Jun 2020 09:57:03 +0200 Subject: [PATCH] org-element.el: Update comment MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * lisp/org-element.el (org-element-normalize-contents): Update comment The comment mentions that caching for `org-elements' is enabled by default, but this isn=E2=80=99t the case anymore since bbdecd1e64a07b3821714d905a58eaca12828cb6, cf. `org-element-use-cache'. --- lisp/org-element.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index ac41b7650..a5641e6ee 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -4821,10 +4821,12 @@ indentation removed from its contents." ;; ;; A single public function is provided: `org-element-cache-reset'. ;; -;; Cache is enabled by default, but can be disabled globally with +;; Cache is disabled by default for now because it sometimes triggers +;; freezes, but it can be enabled globally with ;; `org-element-use-cache'. `org-element-cache-sync-idle-time', -;; org-element-cache-sync-duration' and `org-element-cache-sync-break' -;; can be tweaked to control caching behavior. +;; `org-element-cache-sync-duration' and +;; `org-element-cache-sync-break' can be tweaked to control caching +;; behavior. ;; ;; Internally, parsed elements are stored in an AVL tree, ;; `org-element--cache'. This tree is updated lazily: whenever --=20 2.26.2 --=-=-=--