From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: element-debug-mode breaks capture Date: Wed, 19 Aug 2015 11:39:42 +0200 Message-ID: <87lhd7aamd.fsf@nicolasgoaziou.fr> References: <87r3n08uw8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRzou-0000ql-6o for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 05:38:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRzot-0001Jr-Bz for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 05:38:08 -0400 In-Reply-To: <87r3n08uw8.fsf@gnu.org> (Bastien's message of "Tue, 18 Aug 2015 17:43:19 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Hello, Bastien writes: > I also had a lot of these recently. I posted some tricks on the ML to help debug the problem. Also, a single cache corruption can lead to many error reports (basically whenever a command relying on `org-element-at-point' is used). > I'm now turning org-element-use-cache off and I don't see real issue > when not using it. > > Nicolas, what's the real benefit of using the cache? Is it with > large files? With frequent updates of the structure? What actions > are the most impacted by not using the cache? It makes `org-element-context'/`org-element-at-point' very fast in almost every situation. This is of course the most noticeable when editing large sections. However, once remaining glitches in the cache are fixed, I expect to make fontification use it. So, turning cache off in the long run doesn't help moving forward, though it may be convenient in some unfortunate situations. Regards, -- Nicolas Goaziou