From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QMTHOGcGtGI5OQEAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 08:21:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oEyFOGcGtGKTDQEAauVa8A (envelope-from ) for ; Thu, 23 Jun 2022 08:21:27 +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 7C8D615E86 for ; Thu, 23 Jun 2022 08:21:27 +0200 (CEST) Received: from localhost ([::1]:40450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4GDW-00057N-0t for larch@yhetil.org; Thu, 23 Jun 2022 02:21:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4GBg-00056O-QN for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 02:19:32 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:40918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4GBf-0001KT-6y for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 02:19:32 -0400 Received: by mail-pl1-x62d.google.com with SMTP id k7so17304650plg.7 for ; Wed, 22 Jun 2022 23:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=jBzb3r4iHUCEu5oTru8MpzjgUMzmYvyIWzCWs1Eaq0I=; b=EUyDLUEbzIwSBsZh60xEzhsCbeUylmD/dKR/wwnHByx8E46ido4JHwCJkq/MrCY6L8 VThT1dhoxSi/jEdqusyqz3QSGjhkaYDVF3ho4opp/EU1w6sTvhe3IyaiVBL79/pCfU4u Prvju+Hcu2vQdKM2xhI8amY0g5VmYqVPOtU/WdQgRKPoNQYtYW5qgoiqNF771BmwC/6E atYUVoEi4NpSbFP4G4EEnAh/IxtDg3jRYaTAUt3sBg2Q6zW0Q6zlFb1zPY+pG9KfoW7H H8+z6mHnwG1pjREZo7l38jqf2Qr8kuxKlhdio5FqImxrrPqi4y+s5I0IKbTHZNF57MkS Fz8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=jBzb3r4iHUCEu5oTru8MpzjgUMzmYvyIWzCWs1Eaq0I=; b=TuBhp2ZrrSAcQavnp7Rov9hpaKdIbx10UoI5TNQBp9P9u6dOceE652RLf1gEoMH05C vHmjweMsdNhQxgBWnZx0L9Js19CwuaZ9a4aDdq+3NHV3hM/jgR20a6QypKwzv6uY5ZQ9 8W7jekuxFuNAO5d0dsYES1qlwYBsDrS139ZGoC1TlF2eIHKLRJekfWykuHBNaYcBplsN oAb/fmpqw+yoNVz8MpX1rZTlA1BYIJOMtt0K+Adr3hAJIjy4rIZWMtjRr9pbAvAERPUJ MYQxPaxJAxIXRDpIF4MUji2wtru2oVKCBvMcouS8iwVL8S+lUVFlCGrA2fzGQPRx0l2n Grrg== X-Gm-Message-State: AJIora+l8onv1+atySHnSy856rpWhE7D0npMRppqOjn8srQ28eipZH/7 4WfTj498YGkdtYejY+b3S5w91wULSGh2Yw== X-Google-Smtp-Source: AGRyM1seg/WnSFDoKMLWT1Bd6OMIbUoD0itT1oxlAjEooTNBU4ABX4Q+fMHh+xQLhHsO+4sx+Cdk4g== X-Received: by 2002:a17:90b:4a12:b0:1e3:15ef:81e1 with SMTP id kk18-20020a17090b4a1200b001e315ef81e1mr2392051pjb.246.1655965168843; Wed, 22 Jun 2022 23:19:28 -0700 (PDT) Received: from localhost ([107.158.194.90]) by smtp.gmail.com with ESMTPSA id j26-20020a62e91a000000b00525203c2847sm8250840pfh.128.2022.06.22.23.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 23:19:28 -0700 (PDT) From: Ihor Radchenko To: cristi.constantin@posteo.ie Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)] In-Reply-To: References: Date: Thu, 23 Jun 2022 14:20:39 +0800 Message-ID: <87fsjv7vew.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62d.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=1655965287; 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=jBzb3r4iHUCEu5oTru8MpzjgUMzmYvyIWzCWs1Eaq0I=; b=hJK8QLYn+gMVkreas+ZnpiP4kCg/z5tzxzmvVvceoXLEXMPqMnnpwiln676q2KX8FIYaz5 yOUcM0eoQ6S3ODwCvm+ZPRkbeiD57lBZpIpBYR02ONra1B6TnCWg1kv3CIiqtJg24OlyTU hlf1KaMyzQ1NunrT9Q8rJdmbQbAg7sVHNVcBYpX7GLoo+JQuz2Mkyuf+qnq1m31GoTgqhc /sCS2ljU4hYSqDdfiwRoF6pPwuCZYtPN9tFvJ3E/3lCKgYzeDDtU+ltZ6qPQY+ho7DJnvq H8CLyjYC0+uaZSyizVUsq1Q9QLy95jOn6FB5ng2RPPh3EB1sP3f2HB7ktbsnKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655965287; a=rsa-sha256; cv=none; b=VYLlEfK+0ZT63cLrcOPgbmmujkh990Do5CS0AUQrqjXaBslqTM/9Cm1tsMjbGYWsq4g3W4 flj4duPV285AaKPqN/9fRCtRtWORPeYoy6i3JDBGrQbls08Ma7I0GLO+gwyZer2OPJGqxP 2+yuXjAHJSqC1i+rKpNtMi1BquCzQ0jvWlVwQSaUeyRFkytvxr5yIl72511K/wurTvf3Tk SDB9oeM7SEDj6uR2wJMCv+nYzqDueiCeyvYkQlABewda9Sfe7/4Ua6ukTW9fwAR/SKX5zM 7VIcvvka4xzlCClOfWxw5BQ7r3wz2rayIxwBeuBuNs3/XTC6ArPi5UC2XxQNvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EUyDLUEb; 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: -8.77 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EUyDLUEb; 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: 7C8D615E86 X-Spam-Score: -8.77 X-Migadu-Scanner: scn0.migadu.com X-TUID: oPBuRHdFnjqP Cristi Constantin writes: > I'm just editing my normal org log files and I started seeing the errors > above after I upgraded to latest org-mode. > I think I didn't upgrade for a month, so this bug is pretty new. > It doesn't seem to do anything weird, but I see this traceback a few > times a day. > > This is the full error, so I'm reporting as requested: > > > Warning (org-element-cache): org-element--cache: Org parser error in > 2022-log.org::178496. Resetting. > The error was: (error "Invalid search bound (wrong side of point)") > Backtrace: > " backtrace-to-string(nil) > org-element-at-point(178496) > org-element--cache-persist-before-write((elisp org-element--cache) Thanks for reporting! Will it help if you add the following to you config? (defun org-persist-clear-caches (&rest _) "Clear read/write caches for org-persist." (clrhash org-persist--write-cache) (clrhash org-persist--read-cache) nil) (add-hook 'org-persist-before-read-hook #'org-persist-clear-caches) (add-hook 'org-persist-before-write-hook #'org-persist-clear-caches) Best, Ihor