From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6DIAFxFmhGJDQQEAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 05:20:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GAPdFhFmhGL9NAEAauVa8A (envelope-from ) for ; Wed, 18 May 2022 05:20:49 +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 0D0F5D09 for ; Wed, 18 May 2022 05:20:48 +0200 (CEST) Received: from localhost ([::1]:46780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrAEx-0000ls-L7 for larch@yhetil.org; Tue, 17 May 2022 23:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrA7y-0007Ki-JL for emacs-orgmode@gnu.org; Tue, 17 May 2022 23:13:34 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:39889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrA7x-0004rq-61 for emacs-orgmode@gnu.org; Tue, 17 May 2022 23:13:34 -0400 Received: by mail-pf1-x42d.google.com with SMTP id v11so907094pff.6 for ; Tue, 17 May 2022 20:13:32 -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=Beg2BlS7NjB1wyggsTg5uND8EgUsc3S3LR6hTC5kEoA=; b=bKlu+csCv340yvx1FDmghxV+01vWM8+I2YN8RDL6pdcbaONdXXQDVKSCJHTOcs32JV ku6BcIoW6MS7FLbZIqF5orIyBYWDUWU8zyk/ctmSUpGq1wbrnGwATuOOZue9dUXephVD H1531BLMR2rElHTIjyCYVi4A0nByEdhbv0BvIIXsBN32gtiwDnlookK0VU9Jb24yVkdn lRhQp8Y0MPITl140NcNkqDZKdLa8p0mkTp9L7SK8yHpTY5qmStjC7vcheTv2AFErbXzS P4E9PVSKdui14XpQcN9JPJYktvetpJ170IZRVmQzCFMJ3XQaeIuj2cnBCGgmdlhlJzJY Ssgg== 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=Beg2BlS7NjB1wyggsTg5uND8EgUsc3S3LR6hTC5kEoA=; b=JQYGAQ/r8alzmDoVLoJmGC+0EfuVy68awqwNRU1+IECkynEGJXmD6KGL7T9HEEV0Q3 cokc6jGA3+zLuABj3cDiDuwRRRXCHtzWDxjprhhddF4Rlp3q9SkGnfhccRDMxJYketzX Hl8HKnhlZu82Ub0fMORaiT8CycN5uLlUcB/nPJC0nVHH5xODRczvh+kHicDcRwzjkVo+ Qw8s8+sJoyA4ApVxkLJjHtbfWIfPvkRzVJD309bLfTQzhIT6GFAXhk0/iTgAHdS5PkF3 mc9DUdYYaXcK54iCGtIR//tSK/bHTWRcj63sZYwVL/PHaHcsorGDFD5iZM7mDJ2i0ht5 N2wA== X-Gm-Message-State: AOAM530vgDm7gHk/UY4+gasyWY+w+L5H/ZODKBhUu3IDGpNa/aTpI2kG VGaUXwhPrOlH6Ts4LcbOqKQ= X-Google-Smtp-Source: ABdhPJxatXJyuH0UZYpLiU/TUd3llORRadzb3OLjJqQEmhUDkxSIEOSIpTXXPvM8VjfMg5SXDktbzw== X-Received: by 2002:a62:be14:0:b0:505:a43b:cf6e with SMTP id l20-20020a62be14000000b00505a43bcf6emr25397033pff.33.1652843611520; Tue, 17 May 2022 20:13:31 -0700 (PDT) Received: from localhost ([134.73.242.163]) by smtp.gmail.com with ESMTPSA id y19-20020a170902d65300b0015e8d4eb2e4sm326011plh.302.2022.05.17.20.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:13:30 -0700 (PDT) From: Ihor Radchenko To: William Denton Cc: imymorror wang , emacs-orgmode@gnu.org Subject: Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" In-Reply-To: References: Date: Wed, 18 May 2022 11:14:12 +0800 Message-ID: <87v8u3r0qj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42d.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=1652844049; 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=Beg2BlS7NjB1wyggsTg5uND8EgUsc3S3LR6hTC5kEoA=; b=kiL5OObPWH2y0rjodJJQhc5OZnh8zcEn7HXZ9Y0mFDdOJE/fH1obThfxYgKN7EHQCZXEVF wDYy6C/gOGe/4EysO2giuoGFN2btxqPehLchOoYmvGb4+98xYXMv4S1h0UMKLrtIwtnxaU TKizjV665cmL2JFl3dEPm8TWpiLvOgngY2/NMRNbpAdA5NDNcjJyJ7B2Ek66toEEmDzKng NBBVuB2Dio+m6Mp779pxJ1H8zzmOJrXoposVFeHCdzMtV0kpGof+An4PaE8GD2zm4MCyfd 2N/IVqma9mad0i1pKpWmqPphBW4p3gaXjMCZecJY/aTJyRBLp8L8x/I+x+p6ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652844049; a=rsa-sha256; cv=none; b=XYZvZINFVms69IXvDx7uMXiZknyQ+nSbL1Ml4iXEmsB8hLBY8kEImswlFzAaDmVZHwUdk7 zAHSu4ur8xb9r0sJViMi9KMPI1A0vnLPTHmJx3OROlRGV7mJ7m7IOOPk0sbY2VM4dnHBvc 0B1nq3Frtq3UpxpW0UkrrBS4ij3wWM8gqbFXjRHa/uqrjDtmb8B2EBD1MQpQ0ZNNWXP2YC RSgP1eqHEbkswkPZlrVLGT7YAtjIGHdzI6rs0R/NqmahYTJ7uvQwPgGVEU1yb3Uh4rK9oX WqbQjPjax8WvLMSmLv+yhS3p9j1DDZLxxga9GFCu4W2NMLoKvZP0A3JZAG5+2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bKlu+csC; 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.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bKlu+csC; 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: 0D0F5D09 X-Spam-Score: -3.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5AZnhULfKox+ William Denton writes: > I'm also having problems like this with large files. I haven't been able to > narrow it down but I'll try what you say about org-startup-folded. > > Do you also have a problem where sometimes TAB or SHIFT-TAB on a heading has no > effect? Some Org files seem to get broken after editing them for a while, and > some folding no longer works (that is, some headings stay closed, while others > can be cycled), and the only way to fix it is to reload. > > I'll turn on debugging and see what that says. Before you try anything weird, can you do the following: (1) Update Org to the latest version and make sure that M-x org-version reports Org 9.5.3 (2) Remove org-persist-directory (3) Try to see if the error persists Best, Ihor