From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Enriched/Org is a colorful Org Date: Fri, 12 Apr 2013 00:49:32 +0200 Message-ID: <8461B483-8CC4-4D37-94BD-5CBEED773ADE@gmail.com> References: <87a9p79gnv.fsf@gmail.com> <20130410095450.GA31506@kuru.dyndns-at-home.com> <83a9p69x0c.fsf@gnu.org> <262C4E11-6D4B-4033-A619-1702CC8D0F94@gmail.com> <86fvyycfa9.fsf@somewhere.org> <83vc7t9dr1.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQQJI-00010t-Ew for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 18:49:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQQJH-0006uK-1g for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 18:49:40 -0400 In-Reply-To: <83vc7t9dr1.fsf@gnu.org> 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: Eli Zaretskii Cc: "emacs-orgmode@gnu.org List" On 11.4.2013, at 19:30, Eli Zaretskii wrote: >> From: Carsten Dominik >> Date: Thu, 11 Apr 2013 04:58:15 +0200 >> Cc: "emacs-orgmode@gnu.org List" , >> Eli Zaretskii >>=20 >>> I guess Eli simply means, in a general way, that overlays do = negatively impact >>> display performance, as you said as well a couple of times: >>=20 >> Yes, but Eli says that Org already severely tests the >> display engine, and he uses the word "mess", even though >> we mostly use text properties for faces and other >> display-related things. >=20 > Well, don't interpret "mess" too literally ;-) I will add an overlay that displays "mess" as "mix" :D >=20 >> Of course, Org already uses overlays, for example for >> folding (as does outline.el), and for temporary marking >> of text like during src block editing. But as your digging >> shows, I ave avoided them in the past, and we are also not >> using them for org-indent.el, for example. >>=20 >> The reason why I said "overlays would be better" is simply >> that they would allow to add display properties in a >> persistent way that would not interfere that our >> font-lock-unfontify-region function removes face and >> invisibility text properties. So they are "better" for >> implementing hand-made faces selection that should overrule >> font-lock. >=20 > Overlays should be OK as long as they aren't too many, and as long as > you don't move them around too much, particularly in post-command-hook > or some such. This explanation sounds to me as if the display engine is building some kind of tree of overlays to find properties changes quickly. Too = bad I don't have time to understand this stuff in more detail, it sounds = interesting. - Carsten=