From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oAQKEHRCx2O3wAAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 01:51:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MM4pD3RCx2NlOQAAG6o9tA (envelope-from ) for ; Wed, 18 Jan 2023 01:51:00 +0100 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 0091A1F042 for ; Wed, 18 Jan 2023 01:47:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHwae-00050X-V1; Tue, 17 Jan 2023 19:46:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHwad-0004zX-6y for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 19:46:07 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHwab-0006tp-8I for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 19:46:06 -0500 Received: by mail-wr1-x42c.google.com with SMTP id r30so7965876wrr.10 for ; Tue, 17 Jan 2023 16:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=WxGf0pjdkC+n52nfNVZ+xIC+BbQnTXfgpZT/HJtNziM=; b=BkLS4DYqguzrPUBhC96SJDV3SgNbcnSPTNGb1knGOax7w/p8jq0uks9P5KNrNyiM2q kg/4b6C8QS/1CumlC2gTTI4HEe16VPw5/GZ+ka4vUZ0MKKUygCj3r7N0UvrCUOGMi7p6 GVeDhBBdH3grSqY6+JptYKxauIufW+2Tna4Xq4Z+xSqkuns35O4WusNPBT7jQbjBBXPE 6IdfF3LP8AVYW+rIwAJn0EhQbihQpJyeKCQ6qQYBTL1zdT9T6wNh3tMZJDm657WjIh57 nGbb6maeggBIT4roJisDl7+O/j75s4Cnxyl+Rahzkx63CLQd1ir6kyLdC+C7mMXRylIu CDhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WxGf0pjdkC+n52nfNVZ+xIC+BbQnTXfgpZT/HJtNziM=; b=pTi6FN6vgAvLfN85SeL34U1Bry5FtfV+oKueNoWt6IkFv67nlOAoRDPFO2MxvcWBcT ktj6bjmTPHU+dWTzYccjVbCf980bLRSWBMUgrYdPo5NGq7zcgoKit4Zy6vcag2OXioPU HUv5LX7jGts8gZNA5F2XTlCEitzCs1tN8J+J5ZoanLDxVnFBQFeh7dgHVdSSMf1UOuD8 oqWkWlG7RPmZOEixWPHj0xXS9slX4+TAw21n1QvyP3BhpNZL4f93vr9v54/9iEFpOTBd sIjmMNVv9z551bviftBFvFe/jq8I3Pm7Zgvm3zP8+NDjkGRhw3lIYjYA2WTfoWSdkBTr oq3Q== X-Gm-Message-State: AFqh2kprtgF1iGWXN84tudpMmR94fpf2I9mnRWEUJQrDH4CjIXJL5Tg6 R6FHf5zDtDKyTgHl/xWgRebvxvJ4xcg= X-Google-Smtp-Source: AMrXdXtd5wfEeIpqbanY+ScqtIGH8Eu++uAcrCki8z67pVvsKSeXfGHyN4yU7i0DghQRi149F98IdA== X-Received: by 2002:a05:6000:789:b0:2bd:e738:a58b with SMTP id bu9-20020a056000078900b002bde738a58bmr920709wrb.4.1674002762125; Tue, 17 Jan 2023 16:46:02 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id bu9-20020a056000078900b002be1dcb6efbsm3492394wrb.9.2023.01.17.16.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 16:46:01 -0800 (PST) From: zimoun To: emacs-orgmode@gnu.org Subject: [BUG] org-agenda: definition is void: org-element--cache-active-p Date: Wed, 18 Jan 2023 01:45:55 +0100 Message-ID: <86r0vszn3w.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674002846; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WxGf0pjdkC+n52nfNVZ+xIC+BbQnTXfgpZT/HJtNziM=; b=s2Vbs6X1OqoxH77dquCm3pCgZq2BKMu05k369hrinewb/e888/OBytSdeJu0efMWpJzoT9 HJrA/zlN0YCxWj3YfpKIJsZltvs1tR7U+FK834Cgmy4jpz/yXLHr5kQx9WPs8K5PlTWSw9 ELtDoKyms2tOlqQhWGh8ixgDlhpkkIVr+eKA4ET+3/EaGun0RbiZQhrWU1juS+tHJ234Ww mv/LvsBzOYVCIDQbCSRFf/kMyxIItVHRSrKwPasvS4qdlPNlcP7NWPQrGvIr03NYX3idLb f4SuwnKBN86XIwXS74DasLCNY5ElijgVzXzXHZkuAKVxSUMSp0eP+goVz/FySw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BkLS4DYq; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674002846; a=rsa-sha256; cv=none; b=WTDRZi7qceWZUoCbMmT239iNUkQ6+kenfTWA1Lrr3E3sKeHbQFfqYd9Olevm+9xfmSRqZF V6citzmFXin8FASzCisxwgJIVqfVhZdbJQ/FpJkO8Lvign0SVatI31zoPF0TFl/OlJ1vRf VRaMj5P9Z8UTnVnwc2agId/HfOxrfvc/i+goW+neouNwCZPZsT+Ig97lZUF32gTrnwtqUc h3Kjje+9mankx7AzZsn3Uz+dpoyqccuKfF/H7GShAMpnbfbGskZD+CU5JIN2cWJ6xp1tj/ ZbQtvsdcbsFs2UcAmRFXQDutcXTgQvZH+dZCvQzFmEmwjAyIwhyyyxvgJI2d7g== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.29 X-Spam-Score: -6.29 X-Migadu-Queue-Id: 0091A1F042 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BkLS4DYq; 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-TUID: x69OLxyD/hF4 Hi, The reproducer using Emacs 28.2 and Org 9.6.1 both from Guix (29efa27): --8<---------------cut here---------------start------------->8--- $ cd /tmp/ $ cat config.el (setq org-directory "/tmp/" org-agenda-files '("example.org")) $ cat example.org * TODO Stuff $ emacs -q -l config.el -f org-agenda Press m Match a TAGS/PROP/TODO query Error: org-get-buffer-tags: Symbol's function definition is void: org-element--cache-active-p $ emacs -q -l config.el --eval '(org-batch-agenda "m")' --batch Debugger entered--Lisp error: (void-function org-element--cache-active-p) org-element--cache-active-p() org-get-buffer-tags() org-make-tags-matcher(nil) org-tags-view(nil) funcall-interactively(org-tags-view nil) call-interactively(org-tags-view) org-agenda(nil "m") #f(compiled-function () #)() funcall(#f(compiled-function () #)) (let nil (funcall '#f(compiled-function () #))) eval((let nil (funcall '#f(compiled-function () #)))) org--batch-agenda("m" nil nil) (org-batch-agenda "m") command-line-1(("-l" "config.el" "--eval" "(org-batch-agenda \"m\")")) command-line() normal-top-level() --8<---------------cut here---------------end--------------->8--- To be precise, it is run inside a Linux namespace container: guix shell --container emacs emacs-org -E TERM \ -- emacs -q -l config.el -f org-agenda This message [1] about a similar topic leads to this commit 791ea50528df55bac110fe5e2731af056989bedb [2]: --8<---------------cut here---------------start------------->8--- * lisp/org-element.el (org-element--cache-active-p): Fix compiler warning Using `defsubst' here is impractical because some code above does call `org-element--cache-active-p'. Moving would trigger major refactoring for little gain. Hence, move back to using simple `defun' until we modularize lisp/org-element.el better. Reported-by: No Wayman Link: https://orgmode.org/list/874jws2v87.fsf@gmail.com --8<---------------cut here---------------end--------------->8--- and I guess it is related. Especially with release note 9.6 [3]: Element cache is enabled by default and work for headings Obviously, loading org-element fixes the issue: $ emacs -q -l config.el --eval "(require 'org-element)" -f org-agenda Therefore, maybe the addition of such requirement in org-agenda.el could be enough? 1: [BUG] org-element: defsubst org-element--cache-active-p used before defined Tue, 27 Sep 2022 20:32:36 -0400 id:874jws2v87.fsf@gmail.com 2: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=791ea50528df55bac110fe5e2731af056989bedb 3: Cheers, simon