[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enriched-mode and switching major modes.
From: |
Oliver Scholz |
Subject: |
Re: enriched-mode and switching major modes. |
Date: |
Wed, 22 Sep 2004 15:14:41 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) |
Stefan Monnier <address@hidden> writes:
>> buffer rather than in a string and that they are /editable/. And that
>> question I can reduce to: how can I implement a tree-like data
>> structure with text properties?
>
> 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)), ...
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?
Oliver
--
Oliver Scholz 1 Vendémiaire an 213 de la Révolution
Ostendstr. 61 Liberté, Egalité, Fraternité!
60314 Frankfurt a. M.
- Re: enriched-mode and switching major modes., (continued)
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/22
- Re: enriched-mode and switching major modes., Eli Zaretskii, 2004/09/22
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/23
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/22
- Re: enriched-mode and switching major modes., Stefan Monnier, 2004/09/22
- Re: enriched-mode and switching major modes., Stefan Monnier, 2004/09/22
- Re: enriched-mode and switching major modes.,
Oliver Scholz <=
- Re: enriched-mode and switching major modes., Stefan Monnier, 2004/09/22
- Re: enriched-mode and switching major modes., Luc Teirlinck, 2004/09/22
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/23
- Re: enriched-mode and switching major modes., David Kastrup, 2004/09/23
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/23
- Re: enriched-mode and switching major modes., Stefan, 2004/09/23
- Re: enriched-mode and switching major modes., David Kastrup, 2004/09/23
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/23
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/24
- Re: enriched-mode and switching major modes., Stefan, 2004/09/24