From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: element-debug-mode breaks capture Date: Wed, 19 Aug 2015 12:27:45 +0200 Message-ID: <877formv32.fsf@gnu.org> References: <87r3n08uw8.fsf@gnu.org> <87lhd7aamd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS0b1-0000T4-Dv for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 06:27:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS0ax-0005qJ-Bg for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 06:27:51 -0400 Received: from so1.mailgun.net ([198.61.254.11]:42354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS0ax-0005pQ-7M for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 06:27:47 -0400 In-Reply-To: <87lhd7aamd.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 19 Aug 2015 11:39:42 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: > 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. How can I test it manually to really _notice_ the difference between using the cache and not using it? (I'm not discussing it's general utility, I'm trying to understand in what circumstances the cache is a noticeable optimization.) > 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. The cache seems still a bit brittle, so yes, let's fix it and see. -- Bastien