From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic James Ferrier Newsgroups: gmane.emacs.devel Subject: Re: Saving markup formats Date: Wed, 20 Jun 2007 12:20:20 +0100 Message-ID: <871wg6yirv.fsf@kanga.tapsellferrier.co.uk> References: <871wgi9jzb.fsf@jidanni.org> <87odjlwpu1.fsf@jurta.org> <87ir9r1m99.fsf@jurta.org> <87myz2i9tj.fsf@jurta.org> <87r6ocx0tk.fsf_-_@jurta.org> <87d4zuyvn6.fsf@gmx.de> <87fy4prmdf.fsf@jurta.org> <85sl8ngp94.fsf@lola.goethe.zz> <87abuuexfo.fsf@kanga.tapsellferrier.co.uk> <87ps3qriao.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182338512 31854 80.91.229.12 (20 Jun 2007 11:21:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 11:21:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Oliver Scholz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 13:21:49 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I0yFu-00055R-AK for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 13:21:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0yFs-0002Ih-Cb for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 07:21:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0yFo-0002IS-He for emacs-devel@gnu.org; Wed, 20 Jun 2007 07:21:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0yFj-0002Fe-Q9 for emacs-devel@gnu.org; Wed, 20 Jun 2007 07:21:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0yFj-0002FV-Jt for emacs-devel@gnu.org; Wed, 20 Jun 2007 07:21:35 -0400 Original-Received: from owls-tree.tapsellferrier.co.uk ([81.187.188.218] helo=owls-house.tapsellferrier.co.uk) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0yFh-0000fx-Hn for emacs-devel@gnu.org; Wed, 20 Jun 2007 07:21:34 -0400 Original-Received: from [172.31.107.1] (helo=localhost) by owls-house.tapsellferrier.co.uk with esmtp (Exim 4.60 #1 (Debian)) id 1I0yAk-0001FJ-R2; Wed, 20 Jun 2007 12:16:27 +0100 Original-Received: by localhost (Postfix, from userid 1000) id 4E650C06F2; Wed, 20 Jun 2007 12:20:20 +0100 (BST) In-Reply-To: <87ps3qriao.fsf@gmx.de> (Oliver Scholz's message of "Wed\, 20 Jun 2007 13\:12\:31 +0200") X-detected-kernel: Genre and OS details not recognized. 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:73409 Archived-At: Oliver Scholz 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