From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:403:4876::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id IODTOsxfWmXwEgAA9RJhRA:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 19 Nov 2023 20:19:41 +0100
Received: from aspmx1.migadu.com ([2001:41d0:403:4876::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id IODTOsxfWmXwEgAA9RJhRA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 19 Nov 2023 20:19:41 +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 5958E206F3
	for <larch@yhetil.org>; Sun, 19 Nov 2023 20:19:40 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=E3SsYIsk;
	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";
	dmarc=pass (policy=none) header.from=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1700421580;
	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=jTHjqxwCk/RHwSFkxPfuncPJW835vLgR5fzigJep5s4=;
	b=fXgSPg8v60kW0c49N4QaC60ZrzBQBDEmCE4nAGNij7qrTwGfOWasYrXVkYd+gfIyqESdjr
	5AlTVQ2PCSmQMhTBGcNT7CtRZYxDrl0b/yABSiePMeYPlEUIiNtX7KenemNHqWOGyq/ARL
	zzZcLqJ1qyHrm6IF2QoJJA9PY49xM4gjn+mBe1JK05pC5ggnJxr4EDhxG8XB1Rb1QrGwKe
	hWLncRdJBO95sZnOx+MUhfcjCvmywiiR+WdSXHD63KvKiWbFeOZyHu2NsIJL+SyQVwy+i9
	yOxKKwEtKUaYWC/5LHhC1N4hdyzrQduvYRzLqKi13HaWWR6JqAzUMEzaYUi8Zg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=E3SsYIsk;
	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";
	dmarc=pass (policy=none) header.from=posteo.net
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700421580; a=rsa-sha256; cv=none;
	b=QWG95NkhWj9vpOFnIeJLa7sB4lq7bNE6IHSMpvPVhqRX1u5lV6aealiS33X8GZpz9BtmJQ
	td7zu0eRjbnr/5dELZeNSfbE3iCN6DqpKUFZMI0kNYQmxhMN1XM3+hXga4qLu7sfYW0Cis
	aVUO6voADHq7QEzkLKEfUv3aY4K5XcoNrn0qU57NUWVpzFbdzglfPReyWhxmqgWyX3M0Cp
	39efyt/Rz1lrH6JqTHyzbS0xd3xWWVMIo4h7jzT/z88nzfm4zqK4ugME/Y6M79MmlOmvi2
	UO2uRccJpGlrQGAnYvgIiqMfrhY140E6fUPYT7ldlDeNoczfVA0x3X8/8PTAhw==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1r4nJm-0005A2-5s; Sun, 19 Nov 2023 14:18:54 -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 <yantar92@posteo.net>)
 id 1r4nJk-00059o-JG
 for emacs-orgmode@gnu.org; Sun, 19 Nov 2023 14:18:52 -0500
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1r4nJi-000121-At
 for emacs-orgmode@gnu.org; Sun, 19 Nov 2023 14:18:52 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id AEE80240103
 for <emacs-orgmode@gnu.org>; Sun, 19 Nov 2023 20:18:47 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1700421527; bh=ZbKefPGcr6MlxJ1AHQPjqUgjhojSechFKvHJMa01fi8=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=E3SsYIskPjmF/XE9YjigKIOCaRbppbPMTVcIxwhHJH5WQ6wqm9uZ54fznvF/1S7Gk
 PXl7+Q8yW9J9X31XAMr5BL3U8nMwa8zn2+GrdzuovtryX59dkM2SwrYjbO+vKH58sU
 eFrKXFWQeJeWRX9URvE5Hsat/mq9k4SZ472RdfsqjsdYaZSl4RXZ9+HuiGoj7ZSoxa
 rlkB9IZmf3xq0QQxn5FZmkj1FeWqsComzhTb7yHzt6lBBvwj/lrhmrsCRQebWYaffD
 qjoXMgWPuVNVAbeBN2Q7SLTqbkLi9vKU6rRHO3i+QSwyP4gg4GMknnByaTVYbP1gX7
 2arYRtR3Vxpqw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4SYL5z0kXXz9rxF;
 Sun, 19 Nov 2023 20:18:47 +0100 (CET)
From: Ihor Radchenko <yantar92@posteo.net>
To: Gregor Zattler <telegraph@gmx.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Warning (org-element-cache): org-element--cache:
 Warning(notmuch-startpage.org): Org parser error in
 notmuch-startpage.org::8690. Resetting.
In-Reply-To: <87zfz9vaqn.fsf@no.lan>
References: <87zfz9vaqn.fsf@no.lan>
Date: Sun, 19 Nov 2023 19:21:10 +0000
Message-ID: <87ttphv9ax.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net;
 helo=mout02.posteo.de
X-Spam_score_int: -53
X-Spam_score: -5.4
X-Spam_bar: -----
X-Spam_report: (-5.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01,
 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Country: US
X-Migadu-Flow: FLOW_IN
X-Migadu-Spam-Score: -8.99
X-Spam-Score: -8.99
X-Migadu-Queue-Id: 5958E206F3
X-Migadu-Scanner: mx10.migadu.com
X-TUID: ionLb/sQG9om

Gregor Zattler <telegraph@gmx.net> writes:

> Hallo Org Mode developers, Ihor,  I just caught this,
> after Upgrading packages which might have temporarily
> mixed up Org Mode from the elpa-package (a dependency)
> and Org Mode from the git repo, which I'm actually
> using.
> ...
> Warning (org-element-cache): org-element--cache: Warning(notmuch-startpage.org): Org parser error in notmuch-startpage.org::8690. Resetting.
>  The error was: (wrong-number-of-arguments ((t) (element) "Return type of ELEMENT.
>
> The function returns the type of the element or object provided.
> It can also return the following special value:
>   `plain-text'       for a string
>   `org-data'         for a complete document
>   nil                in any other case." (cond ((not (consp element)) (and (stringp element) 'plain-text)) ((symbolp (car element)) (car element)))) 2)

This does look like mixed installation.
`org-element-type' got extra optional argument in Org 9.7, but you are
getting "wrong number of arguments" error that indicates an older
version of this function.

-- 
Ihor Radchenko // yantar92,
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>