From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Thu, 23 Sep 2004 07:35:36 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <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 1CARtg-00035Q-00 for ; Thu, 23 Sep 2004 13:36:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CARzi-0004BS-6h for ged-emacs-devel@m.gmane.org; Thu, 23 Sep 2004 07:42:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CARza-00049r-Ay for emacs-devel@gnu.org; Thu, 23 Sep 2004 07:42:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CARzY-00049e-Dc for emacs-devel@gnu.org; Thu, 23 Sep 2004 07:42:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CARzY-00049b-9k for emacs-devel@gnu.org; Thu, 23 Sep 2004 07:42:28 -0400 Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CARsw-000564-QC; Thu, 23 Sep 2004 07:35:39 -0400 Original-Received: from empanada.home ([67.70.165.30]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040923113427.XCUJ1580.simmts12-srv.bellnexxia.net@empanada.home>; Thu, 23 Sep 2004 07:34:27 -0400 Original-Received: by empanada.home (Postfix, from userid 502) id 23A542FEA3E; Thu, 23 Sep 2004 07:35:36 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 23 Sep 2004 05:29:46 -0400") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) 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:27486 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27486 > Without thinking too much about it, I'd say that overlays seem to be > a better fit: each node is an overlay, the node's attributes can be stored > in the overlay's properties, the text corresponding to a node can be stored > directly in the buffer and retrieved by (buffer-substring (overlay-start o) > (overlay-end o)), ... > Overlays are no good for this because they will be lost completely > if you cut and paste. If you copy the text of a buffer > to another buffer, the overlays won't come along. (That is the purpose > of overlays.) > This information has to be *part of the text*. XEmacs's version of overlays (called extents) can be part of the text (which is a property they call `duplicable'). We could do the same. Stefan