From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Tue, 14 Sep 2004 18:31:19 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <87llfn5ihw.fsf@emacswiki.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1095180309 2609 80.91.229.6 (14 Sep 2004 16:45:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2004 16:45:09 +0000 (UTC) Cc: boris@gnu.org, emacs-devel@gnu.org, alex@emacswiki.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 14 18:44:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7GDv-0001kl-00 for ; Tue, 14 Sep 2004 18:32:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7GJV-0005E4-Mt for ged-emacs-devel@m.gmane.org; Tue, 14 Sep 2004 12:37:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7GJM-0005DY-Q3 for emacs-devel@gnu.org; Tue, 14 Sep 2004 12:37:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7GJJ-0005Cr-0N for emacs-devel@gnu.org; Tue, 14 Sep 2004 12:37:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7GJI-0005Ch-VA for emacs-devel@gnu.org; Tue, 14 Sep 2004 12:37:40 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C7GDM-0008F9-Qu for emacs-devel@gnu.org; Tue, 14 Sep 2004 12:31:33 -0400 Original-Received: (qmail 5278 invoked by uid 65534); 14 Sep 2004 16:31:31 -0000 Original-Received: from dsl-082-082-140-234.arcor-ip.net (EHLO USER-2MOEN8BWBA.gmx.de) (82.82.140.234) by mail.gmx.net (mp027) with SMTP; 14 Sep 2004 18:31:31 +0200 X-Authenticated: #1497658 Original-To: rms@gnu.org In-Reply-To: (Oliver Scholz's message of "Tue, 14 Sep 2004 16:41:25 +0200") X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6; Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) 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:27106 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27106 A few minor corrections. Oliver Scholz writes: [...] > If Emacs' display engine would support this, e.g. as a `block' text > property, then I could write: > > (progn (switch-to-buffer (generate-new-buffer "*tmp*")) > (insert "Example text. Example paragraph. Example text.") > (put-text-property 15 33 > 'block > '(:margin (4 1 1 1) :border nil :padding nil))) It should be noted, that a good box model should allow for nested block boxes. However, this all is blue sky anyways ... [...] > With text/plain their relation is so simple that we hardly > distinguish them at all. The visual appearance is determined by > control characters like space and newline, which are part of the > document (i.e. part of the data structure). The user interface is ^^^^^^^^ > also simple: to change the (whitespace) formatting, we just insert > spaces and newlines where appropriate, which in turn become part of > the data structure. To some extend this also works for ^^^^^^^^^^^^^^ > text/enriched. I mean "the document's character data" here. The important point is that formats suitable for WP (RTF, HTML ...) separate character data from formatting information entirely. In text/plain on the other hand the formatting information (LF, SPC, TAB, FF, VT) /is/ part of the character data. [...] > Or here: > > * This is a list item. It contains two subitems: > -!- 1. One and > 2. Two. > > > The UI in typical word processors simply inhibits to move the cursor > to these places. If the cursor is after "subitems:" and the user > hits , the cursor would move before "One". ^^^^^ I meant "" here; or `C-f', even. Oliver -- Oliver Scholz 29 Fructidor an 212 de la Révolution Ostendstr. 61 Liberté, Egalité, Fraternité! 60314 Frankfurt a. M.