emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving markup formats


From: Nic James Ferrier
Subject: Re: Saving markup formats
Date: Wed, 20 Jun 2007 12:20:20 +0100

Oliver Scholz <address@hidden> writes:

>> #("Nic Ferrier - CV" 0 16 (element h2))
>> #("Nic is a hacker with some crazy ideas" 0 37 (element para style p1))
>
> Unless I am missing something, this is just one possible internal
> representation of a tree-like data structure. In fact, I have once
> experimented with this. 

I thought the rms was saying "why store data somewhere other than a
buffer?". In other words, why add DOM (for example) to Emacs so that
we can store text in it when we already have text buffers?

The above snippet puts the document structure into the buffer. But it
doesn't tie the document structure to one form. It can be anything
that you can represent with elements and styles.


> Its main problem is that the data structure
> would get corrupted in certain cases, especially when yanking text or
> when some Lisp function is using `insert'. One way to deal with that,
> would be to let font-lock automatically fix it. But this seems ugly.

Ok. I'll have to look at that. Thanks.

-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]