From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 qJjmKLbPg2JcSgAAbAwnHQ (envelope-from ) for ; Tue, 17 May 2022 18:39:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WP/eKLbPg2LlHgEA9RJhRA (envelope-from ) for ; Tue, 17 May 2022 18:39:18 +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 DF20B16CFC for ; Tue, 17 May 2022 18:39:17 +0200 (CEST) Received: from localhost ([::1]:37390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nr0E8-0004UA-OI for larch@yhetil.org; Tue, 17 May 2022 12:39:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr0DI-0004SP-5c for emacs-orgmode@gnu.org; Tue, 17 May 2022 12:38:24 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:57505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr0DG-0004xp-80 for emacs-orgmode@gnu.org; Tue, 17 May 2022 12:38:23 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 69B00135CBF; Tue, 17 May 2022 12:38:21 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type:content-id; s=sasl; bh=+QnrGb6yEnNViVkn/hr1k5eZCaX R+vZx0KXq4dNv9uY=; b=gcKN9yyulL+qyHqVExHf/gFKwWWrN1KVJp6nrdEezAi Ek1au/goDW15qZWFYg1ChK/Az+Zcy4yNvpQH0Jtnhf/7IRiMqVyA5W21Y8RmsXNX u9tiXhHBN+WtdEfcQqmAp61Ooj3F4gE+l3KewozVyYbjO1wmc5seT4kkYFGWVrSI = Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 6043A135CBE; Tue, 17 May 2022 12:38:21 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id C7118135CBD; Tue, 17 May 2022 12:38:20 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 16C79120DF7; Tue, 17 May 2022 12:38:20 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 13FAF12092F; Tue, 17 May 2022 12:38:20 -0400 (EDT) Date: Tue, 17 May 2022 12:38:20 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: imymorror wang cc: 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: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1741096510-96051526-1652805267=:24124" Content-ID: X-Pobox-Relay-ID: C31AEE92-D5FF-11EC-BD16-5E84C8D8090B-56320186!pb-smtp1.pobox.com Received-SPF: pass client-ip=64.147.108.70; envelope-from=wtd@pobox.com; helo=pb-smtp1.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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=1652805558; 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=oYF3QodIeTCYGlBfZl5cgQWYVF34GivsBm93kf0R4G8=; b=puqXKHZbUOGJvJj2qXEn80He746XOKt/U5bfHjmHUn1QBQ4+LeuvWQyXBfDWA+gWRMmWHW Ur9i5Yg6aWrE1MOi3brN4qFukK5wSBAu33Q+atOks8kK2WCF/AkeHfZgWIr8gNSiOyDd59 itI6meFDkKL3SP9EJWpHmsY6Sp7jtxCLcbx5eNZglvf54V4UxuFjvz9xO3+A2kmPRhILrm Jb9/S0web1ygwLVHD8AVoetZv/xGK6Qg/m7A/JYSYOhxAzU8ySIL7fRzuJ8Q7DYj5OaI/I PxEV0oLO7DVcS6siBs1s6PkNFbLopOijRopRqwLYUG5EumbJLZK0x7WnPsnlSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652805558; a=rsa-sha256; cv=none; b=SU516DI/k2D1slInqdF2Cef50wTblRG+D8Q3J01GnRweYYDQ+ybFuN3lNaszEYbYxH2O/3 LUqeCdX6g24vfPrQ2MHAQZ40+PgktaLLnoXjABzH5fJehb7kOugdDon6nVFhV297sF4sF2 qYInMao/XJclM/13uU98H83a2AaRNjVx8KjfmpIRSrTxGSRraD9JHgeqc0GiIp2wwolve0 i+bjnCqSMjCBtQw2CZKsGcEDXUnOehM1+BDraoKnTIZscDr6+Avzw2CfMwjqqRTdTUbAxV gfQSP5p196nVPJub5pISbQSowXINXcaaEcC77df/z3Iud871lbMmmouZ+N7x/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=gcKN9yyu; dmarc=pass (policy=none) header.from=pobox.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: -4.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=gcKN9yyu; dmarc=pass (policy=none) header.from=pobox.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: DF20B16CFC X-Spam-Score: -4.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: QGTYYVvt8IyI This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1741096510-96051526-1652805267=:24124 Content-Type: text/plain; CHARSET=ISO-2022-JP; format=flowed Content-ID: 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. Bill On 17 May 2022, imymorror wang wrote: > - desktop environment > - GNU Emacs 29.0.50 (build 2, x86_64-apple-darwin20.4.0, NS > appkit-2022.44 Version 11.3.1 (Build 20E241)) of 2022-01-08 > - Org mode version 9.5.1 > - bug description > - influence factor > - a large org file : 11053 lines。1092 headlines。 > - (setq org-startup-folded t) > - org-indent-mode : (add-hook 'org-mode-hook 'org-indent-mode) > - My Observation > - if setting org-startup-folded t , open the large org file, emacs > get stuck, the mouse can't move。 > - if keeping org-startup-folded defaul value(i.e "showeverything") , > enable org-indent-mode , open the large org file, get a warning: > #+begin_quote > Warning (org-element-cache): org-element--cache: Unregistered > buffer modifications detected. Resetting. > If this warning appears regularly, please report it to Org mode > mailing list (M-x org-submit-bug-report). > #+end_quote > - if keeping org-startup-folded defaul value and disable > org-indent-mode , open the large org file, everything works fine > -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada --1741096510-96051526-1652805267=:24124--