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:478a::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id gPMxGZWW32RdvQAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 18 Aug 2023 18:04:37 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:478a::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id QGbwGJWW32T5pgAA9RJhRA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 18 Aug 2023 18:04:37 +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 C201B5E557
	for <larch@yhetil.org>; Fri, 18 Aug 2023 18:04:36 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=d96XIR5N;
	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=1692374677; a=rsa-sha256; cv=none;
	b=r2BNlAsVfUDuYxm1RBYS+d7jXkHGn0LT9gjdbSEiObJNIOB0Z8Vq+mJWA+6dCJGbKC1zet
	il/DZgOLgjNtW7hkIazKzLbs87fp1JGu9dj0o3o+N/SLA5QVJt1E1QvUyqJTNKCefiORhH
	ieD2f3+238L2dwGYh4izLNFOFoqQ6xJbejV4OzJ63lvO6wbgofynTjjnl8az1CbezjkfA7
	/HXe7h6E1IDdoO6WmCG4IIsGv1N9zaKbr9F4pGhB8TD61tkJLydNJp/vBxZIFE44BDGpQh
	4mamM94ZeDejRBzqA7mQIyO/kR7hFFYZRBk9gayesYyQReA7XJJwPB6jvuwV0g==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=d96XIR5N;
	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=1692374677;
	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=NzvrjgVZ7xNuwZ3P72dmzd3y0RtrnqFSok2odLrHkIM=;
	b=DajCH9hvdZmXio0KZ84mgXdEmu5yjqpiKKnlADNj5OLtLgWMwl0HIz5mURDZsvCdV0WgZD
	9ZxtjUHJIymt3t1eTz1Guz0Zk19o1CsIuIK2U3L1TYkCLeM3uUZFPKm0bslm2nWFUmCjWZ
	S+QWuOvgAkx/8abdAjAtVIf39bwAG8E0LF3L0GTZs5NOT9xPnxgLIHdVDPuu5wA5mubssh
	oK+W4J4VN/v5BimyeP4MpPP3/UniLN7QY708iPnBOjfQS46utMNvQJb9M06I1e+4OzF8TQ
	75XxQnEiW1Dam4kgcoglam38hRkx1ijuTByJWU5r5/yquwTVRWfF8LbFnv5pIw==
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 1qX1x8-0003ri-Et; Fri, 18 Aug 2023 12:03:58 -0400
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 1qX1x3-0003r6-Ad
 for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 12:03:53 -0400
Received: from mout01.posteo.de ([185.67.36.65])
 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 1qX1x0-0005rI-HD
 for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 12:03:53 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 33789240028
 for <emacs-orgmode@gnu.org>; Fri, 18 Aug 2023 18:03:48 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1692374628; bh=ZWuR9EMLG8fPttUcFYkZPUOE1akUFUzAt+Vza8g55VQ=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=d96XIR5N3P5a5hEAB7ZKcG11JEOTmIsI326fRTrgFAAwQfot8HT+eC4s6D6hl1p71
 3OcOLbxjvYXuIzlUs0B6/h0dOB6qZ6Rim/ZeCqnUC4Uu0YMX4i3STM6/d8zrM9kufo
 PXhb0/+OKx4XFLmY5MP+3JeUyku2VZFaA7PWpMmuTm8wNxtJ04rz5MPU+cy9pJv8Tu
 A7aEtRXYpC0wFuxBJ7jCDXpOmGZVpumK3Hs3IJnqLZH/g32CNMIPXPomvkm+jQUAh+
 8Wbu76b2fAXmLOWOzEtQesaW+jhYUgOjoAvBRSR4FvZp0rADj1zDOnU2rWfFUAfXtw
 caApW9xKe1iXw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RS69v5gB0z9rxK;
 Fri, 18 Aug 2023 18:03:47 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Edgar Lux <edgarlux@mailfence.com>
Cc: Emacs Orgmode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Warning when creating preview
In-Reply-To: <1650384805.753459.1692364837267@ichabod.co-bxl>
References: <1650384805.753459.1692364837267@ichabod.co-bxl>
Date: Fri, 18 Aug 2023 16:04:17 +0000
Message-ID: <87ttsw8hha.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net;
 helo=mout01.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.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=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Scanner: mx0.migadu.com
X-Spam-Score: -9.26
X-Migadu-Queue-Id: C201B5E557
X-Migadu-Spam-Score: -9.26
X-TUID: qP9GUwRBRbMc

Edgar Lux <edgarlux@mailfence.com> writes:

> I don't really need help with this. Org has been telling me for days
> that I should report this, but I don't really want to share my
> configuration publicly, and I thought that it was only for a file on
> which I was working. It seems to be general for my configuration. I
> hope that it helps. If you have an encrypted personal account to which
> I can send my config file, let me know.

You do not have to. If you wish, you can disable the warning by clicking
on Disable showing or Disable logging.

However, the warning indicates a problem with Org parser cache. Org
recovers from it, but not necessarily immediately. You may get certain
edits bugging out if the parser cache is not correct. For example,
certain edits may "lose" first star of a heading behind. That's why we
are so into the face of users with this warning you are seeing.

> * What happens
>
> When I type some equations and get the preview, I get this warning
>
> #+begin_quote
> \begin{gather}
> t = 0
> \end{gather}
> #+end_quote
>
> * My "system"
>
> Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6)
>  of 2023-01-03
> Package: Org mode version 9.4.6 (release_9.4.6-13-g4be129)
>
> * The message
>
> Warning (org-element-cache): org-element--cache: Org parser error in t.org::35. Resetting.
>  The error was: (error "Invalid search bound (wrong side of point)")

The Org version is very strange. Emacs 28 ships with Org 9.5.5 and the
latest stable version of Org available on ELPA is Org 9.6.7. The warning
comes from Org >9.6.

It appears to me that you have some problem with Org installation.

May you try to install the latest stable Org first, following
https://orgmode.org/manual/Installation.html? You should get M-x
org-version printing Org 9.6.7.

Then, let us know if the warning keeps appearing.

-- 
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>