From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Enriched/Org is a colorful Org Date: Thu, 11 Apr 2013 04:58:15 +0200 Message-ID: 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> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ7iO-00087x-HP for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 22:58:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQ7iN-0002PI-3a for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 22:58:20 -0400 In-Reply-To: <86fvyycfa9.fsf@somewhere.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: Sebastien Vauban Cc: Eli Zaretskii , "emacs-orgmode@gnu.org List" On 10.4.2013, at 22:16, "Sebastien Vauban" = wrote: > Hi Carsten, >=20 > Carsten Dominik wrote: >> On 10.4.2013, at 18:21, Eli Zaretskii wrote: >>>> From: Carsten Dominik >>>> On 10 apr. 2013, at 11:54, Suvayu Ali = wrote: >>>>> This request is common enough; every time it comes up overlays are >>>>> proposed as a solution. It would be good if this is available = even as a >>>>> library outside of Org. >>>>=20 >>>> Yes, overlays are better. >>>=20 >>> I beg the Org developers to please be very careful when introducing >>> expensive display features such as overlays into Org. Org already >>> puts the Emacs display engine to its limits in many of its popular >>> features; >>=20 >> this is interesting input, I was not aware of this. Has this been = discussed >> before, can you point me to relevant threads, and what are the = symptoms of the >> display engine being at its limits? >>=20 >>> adding overlays to this mess might be too much. >=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: 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. So I was wondering if there is something we should put onto our todo list. 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. - Carsten >=20 > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 From: Carsten Dominik > =E2=94=82 Subject: Re: performance problems with drawers > =E2=94=82 Newsgroups: gmane.emacs.orgmode > =E2=94=82 To: Al > =E2=94=82 Cc: emacs-orgmode@gnu.org > =E2=94=82 Date: Wed, 8 Jul 2009 07:05:53 +0200 (3 years, 39 weeks, 3 = days ago) > =E2=94=82=20 > =E2=94=82 Hi Al, > =E2=94=82=20 > =E2=94=82 first of all, I cannot reproduce the fact that drawers have = such > =E2=94=82 a major influence on time, wit a test file that I created = to > =E2=94=82 be similar to what you describe. > =E2=94=82=20 > =E2=94=82 There is a way to speed up drawer handling, by using text = properties > =E2=94=82 instead of overlays. How have some vague plans to do this, = but nothing > =E2=94=82 concrete or soon. > =E2=94=82=20 > =E2=94=82 - Carsten > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >=20 > and >=20 > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 From: Carsten Dominik > =E2=94=82 Subject: Re: fontification and icon issues > =E2=94=82 Newsgroups: gmane.emacs.orgmode > =E2=94=82 To: David O'Toole > =E2=94=82 Cc: emacs-orgmode@gnu.org > =E2=94=82 Date: Thu, 24 Sep 2009 10:46:24 +0100 (3 years, 28 weeks, 2 = days ago) > =E2=94=82=20 > =E2=94=82 On Sep 22, 2009, at 4:11 PM, David O'Toole wrote: > =E2=94=82 > [...] > =E2=94=82 > > =E2=94=82 > 2. using add-text-properties to specify a display = property (or even just > =E2=94=82 > a face) for any part of an org headline text kills the = fontification of > =E2=94=82 > the rest of the text (TODO keyword and leading stars = unaffected.) I'm > =E2=94=82 > trying to use font-lock-add-keywords to display the = images. > =E2=94=82=20 > =E2=94=82 Can you make an example file, and maybe a small function = that does set these > =E2=94=82 properties, so that I can see what you mean? > =E2=94=82=20 > =E2=94=82 - Carsten > =E2=94=82=20 > =E2=94=82 > Maybe I should use overlays instead? > =E2=94=82=20 > =E2=94=82 This can be done, but if every line in a very large file = gets > =E2=94=82 an overlay, performance is severely degraded. > =E2=94=82=20 > =E2=94=82 - Carsten > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >=20 >>> I don't know enough about Org to understand why overlays are being >>> considered instead of text properties, but feel free to describe the >>> issues (preferably on emacs-devel) and start a discussion about the >>> possible alternatives. >=20 > Best regards, > Seb >=20 > --=20 > Sebastien Vauban >=20 >=20