From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8DUVLotiEGMqjgAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 09:43:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UPAdLotiEGMGDgEA9RJhRA (envelope-from ) for ; Thu, 01 Sep 2022 09:43:07 +0200 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 5F4DC2C81C for ; Thu, 1 Sep 2022 09:43:07 +0200 (CEST) Received: from localhost ([::1]:42102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTeqw-0000kL-HO for larch@yhetil.org; Thu, 01 Sep 2022 03:43:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTeO4-0004oT-CM for emacs-orgmode@gnu.org; Thu, 01 Sep 2022 03:13:17 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:40955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTeO0-0006N6-Eo for emacs-orgmode@gnu.org; Thu, 01 Sep 2022 03:13:16 -0400 Received: by mail-pl1-x630.google.com with SMTP id x23so16280432pll.7 for ; Thu, 01 Sep 2022 00:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=TnM1c8BpwjQUnbALsK9lUmF6J0L+QoJkLxHcyrAnTJc=; b=ds8prsNTpCrbpZs4WW6cod4aBefYgoVs7oHY9e/iG2TYZGlP26JBXvF/lB6LRyL1Ju WNfOzPwChsgEcwj3kE15obJPyqHIFebjmKQTeGoHq4cIGZWSI724YAHqCLzBfDProht3 2WoKf0GzZhLLeEOPtL1plQZ9pW04Sa2/5NSEoHZGt8k84v1/RemTefwslehEnPRL7ohg ro6KjLjx8QhaAJ3XWTZ2ypahDJ5PC0z8h8XC097LCMBYnNLhdE+jZmmxuU2K8XBbPDmp Eh86NsHxoNe+mm7GAhD0RXkngmBR3OQYXeonGoOdTzAJEbn3AFq2WEMBK/jzhx6p+/Yg +tjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=TnM1c8BpwjQUnbALsK9lUmF6J0L+QoJkLxHcyrAnTJc=; b=d5p/w6K3XfY/eFC7uyA5RiSgY86iJd7e8HqHB/OKjLPhYnm/+0ZZXnznlb6ehXN5De UbtGmbfe+y9BPYuh79iN3P6ZZX1vVfEgMc+r1x5IsZrQGdc+XbP5QZIuwGShL8vdXals SqMtzhqB1nNncJJZhvbTESxghJ2qUfA5GCKa75wyVFMAnwjcn/NjXwdyI1P7XLPnc+MD fnY0eBsFU4UHb6jse6tBZ4O2q945xeVonaX8F6yJeNuyVppk62XIo+3n7T80ouP5MWyK zy5wlVkJ8YanSx+bx4mM72fneZdJ2IJdpUXvBadChYGuBx3GA+XcG50HMgmokAGdnAFv cxGQ== X-Gm-Message-State: ACgBeo34E62vU3oWdo/Hn2+QdXf7eb/dXXzoK5f6UcAxoE/yuQPkb/5e kAQrHV6i+IyFhvii/J1pEN0= X-Google-Smtp-Source: AA6agR5ht4vrg0JEs4nah1zYeHJ3UulwBLxq0IQsLkDmkEkY+mXHiQnUugx/tjrnOCOkb5akSM2Kbg== X-Received: by 2002:a17:90b:314b:b0:1fd:e5ba:3cab with SMTP id ip11-20020a17090b314b00b001fde5ba3cabmr7365187pjb.96.1662016390825; Thu, 01 Sep 2022 00:13:10 -0700 (PDT) Received: from localhost ([2409:8a70:2b3:c8a0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id a15-20020a1709027e4f00b0016ed20eacd2sm12907942pln.150.2022.09.01.00.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 00:13:10 -0700 (PDT) From: Ihor Radchenko To: Esa Palosaari Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] visibility cycling does not work because org-element--cache-active-p defined later than it is used in org-element.el In-Reply-To: References: Date: Thu, 01 Sep 2022 15:14:10 +0800 Message-ID: <87czcfo9bx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=yantar92@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662018187; 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:dkim-signature; bh=TnM1c8BpwjQUnbALsK9lUmF6J0L+QoJkLxHcyrAnTJc=; b=dU/WRsac0LQmuXbrM9WdaGpH32kt5hEYByQe+8i/P083fQvXGs9sA69LI7JZxkxk2kcWI5 /Pfn6lbCVbDOq4I1DRAE7pHpx6ZeokGwwvhM8TA3s+QZ1r+BxvQW79M2PLo3wrY3oRC7bJ wTJQx9ahrKPj4Q7UDze+qcDjomxc+BhoNXspLmWjGBsqwvU0tmxjr770aq89Uhlk/3y/Ed k9+YQeQIRFfKjpJHAvtUDzissVwGYTwJWtG2ckZxefEN2h5+Ir7ikJmvjKyEBHkQUCwH/G QNpsJo+4swEtNImUAIkxal9hJqAWgVjJ5TAccdV0JQ0sWWoRSAlG9rfrgRF2DA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662018187; a=rsa-sha256; cv=none; b=b7lJ6+CRAcHIWUkIW9hrdzTi93IS5MxuwG9r7jbYQizjf0zisALnuY76zUKgZxDnJYMoDh jq/NxiL/mI995LQqn7WrwTTIAOZWmNy9SdNfFZu+I+SlvcRqFxlsJWr+UyAzTIgou75WRk ieb1VwGm9r0YCwkjpQ24Bi1CYAhqqS16IlusTCLWmOZ7JIgjRuoT2LyQhRk4O+DPT4NYVY PazHsGxorf/Z6/4HF9VcpwxL0QAx1BPq+o+/yVzl0BAWIWdpYewXRqdAVIneZo8dTaQF4V mZh+Ex1TqLHX+eHOTiea1y/A64ZzSa3xiUYUF7DcK6+6lAYnT0ctkq9CRRqT/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ds8prsNT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ds8prsNT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5F4DC2C81C X-Spam-Score: -3.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: 22h3sATgZndN Esa Palosaari writes: > The expectation is that using TAB cycles subtree visibility. What in > fact happens is nothing but a "function definition is void: > org-element--cache-active-p" error is shown in the minibuffer. > > The bug is a "function definition void" error when using tabulator > for subtree cycling on macOS using ARM [9.5.4 (9.5.4-g202744 @ > /Users/esapalosaari/.emacs.d/straight/build/org/)]. The fix is to move > the function definition (defun org-element--cache-active-p) e.g. to line > 4128 in org-element.el before it is used by other parts of the code. `org-element--cache-active-p' function is defined as long as you load Org correctly. You are likely experiencing "mixed" Org installation when parts of built-in Org mode are loaded together with the newer files from Org. Please make sure that you have (straight-use-package 'org) early in your config. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92