From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii Subject: Re: Enriched/Org is a colorful Org Date: Thu, 11 Apr 2013 20:30:10 +0300 Message-ID: <83vc7t9dr1.fsf@gnu.org> 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> Reply-To: Eli Zaretskii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQLJs-0007G8-9m for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 13:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQLJr-0006IV-4e for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 13:29:56 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:46890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQLJq-0006HI-KM for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 13:29:55 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0ML300600PI4TO00@a-mtaout20.012.net.il> for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 20:29:52 +0300 (IDT) In-reply-to: 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: Carsten Dominik Cc: wxhgmqzgwmuf@spammotel.com, emacs-orgmode@gnu.org > From: Carsten Dominik > Date: Thu, 11 Apr 2013 04:58:15 +0200 > Cc: "emacs-orgmode@gnu.org List" , > Eli Zaretskii > > > 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: > > 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. Well, don't interpret "mess" too literally ;-) > 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. > > 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. 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.