From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Wed, 22 Sep 2004 20:48:23 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200409230148.i8N1mNG29242@raven.dms.auburn.edu> References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <87llfn5ihw.fsf@emacswiki.org> <01c49c75$Blat.v2.2.2$7a37cb00@zahav.net.il> <01c49d70$Blat.v2.2.2$f7cfb860@zahav.net.il> <01c49da7$Blat.v2.2.2$cd5f7160@zahav.net.il> <01c49dc6$Blat.v2.2.2$3b624d40@zahav.net.il> Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAIjV-0004rR-00 for ; Thu, 23 Sep 2004 03:49:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAIpV-0002XU-O3 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2004 21:55:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAIpO-0002XP-TZ for emacs-devel@gnu.org; Wed, 22 Sep 2004 21:55:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAIpO-0002XD-9K for emacs-devel@gnu.org; Wed, 22 Sep 2004 21:55:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAIpO-0002XA-7A for emacs-devel@gnu.org; Wed, 22 Sep 2004 21:55:22 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAIj5-0007Kd-DA; Wed, 22 Sep 2004 21:48:51 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i8N1maiU002177; Wed, 22 Sep 2004 20:48:36 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id i8N1mNG29242; Wed, 22 Sep 2004 20:48:23 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: alkibiades@gmx.de In-reply-to: (message from Oliver Scholz on Wed, 22 Sep 2004 15:14:41 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27469 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27469 Oliver Scholz wrote: I did not spend any thought about overlays, because I thought they were too expensive? The documents could be large and have many nodes. Of course, if overlays work better: maybe they could be made more efficient in the long run? Note that, unless you take special steps, there are important user-visible differences between using text properties and overlays (for better or for worse, depending on the situation). Text properties are part of the text, overlays are not. Hence changing text properties marks the buffer modified, playing around with overlays not. Of course, this has numerous important consequences in terms of auto-save files, asking or not asking the user to save the file, auto reverting and so on... It has been a while ago that I played around extensively with many overlays in huge buffers, but I found that functions that do that could be made incredibly faster by executing: (overlay-recenter (point-max)) before starting to play around with overlays. I do not know whether this is still the case, since the overlay code could have changed in the meantime. Sincerely, Luc.