From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Saving markup formats Date: Wed, 20 Jun 2007 20:59:41 -0700 (PDT) Message-ID: <31006.128.165.0.81.1182398381.squirrel@webmail.lanl.gov> 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> <874pl2wfom.fsf@kanga.tapsellferrier.co.uk> <87r6o6uq70.fsf@kanga.tapsellferrier.co.uk> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1182398399 6652 80.91.229.12 (21 Jun 2007 03:59:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2007 03:59:59 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Oliver Scholz To: "Nic James Ferrier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 21 05:59:56 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 1I1Dps-0004bt-BM for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 05:59:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Dpp-0003wd-JI for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 23:59:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Dpl-0003wT-M3 for emacs-devel@gnu.org; Wed, 20 Jun 2007 23:59:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Dpj-0003vl-Ph for emacs-devel@gnu.org; Wed, 20 Jun 2007 23:59:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Dpj-0003vi-MJ for emacs-devel@gnu.org; Wed, 20 Jun 2007 23:59:47 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1Dpi-0006Zf-3q; Wed, 20 Jun 2007 23:59:46 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l5L3xg8a020181; Wed, 20 Jun 2007 21:59:42 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l5L3xfD1011769; Wed, 20 Jun 2007 21:59:41 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l5L3xf40023419; Wed, 20 Jun 2007 21:59:41 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l5L3xf6Z023417; Wed, 20 Jun 2007 20:59:41 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.0.81 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 20 Jun 2007 20:59:41 -0700 (PDT) In-Reply-To: <87r6o6uq70.fsf@kanga.tapsellferrier.co.uk> User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-detected-kernel: Linux 2.4-2.6 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:73492 Archived-At: > - propertize each piece of text, as you insert, with the name of the > appropriate category; eg: if you have the following XML: > > Designed a REST binding for the > SAML specification for single sign on web > applications. > > then that would be converted into the following text buffer content: > > Designed a REST binding for the SAML specification for single sign > on web applications. > > and the text would have a property assigned: > > category Standard > > so as to record the origin structure we might also add the following > property: > > element p > > or: > > element text:p > > - let the user edit the text, editing would have to include the > ability to add, remove or change the category property from/to text. > > cut and paste is not a problem. the text carries with it the > properties it was assigned. That's fine. That's all word processor > users expect. I'm not sure that this property-set really captures the structure of the document in a way that fits what properties do: if someone kills an entire paragraph and yanks it inside another paragraph, Emacs won't know that the text properties "element -> text:p" are from different paragraphs. If those paragraphs had different styles or so, you risk losing that information in the most obvious implementations I can see. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.