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: Mon, 20 Sep 2004 21:35:40 +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 1095708984 26900 80.91.229.6 (20 Sep 2004 19:36:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2004 19:36:24 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, alex@emacswiki.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 20 21:36:10 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 1C9TxJ-0002j3-00 for ; Mon, 20 Sep 2004 21:36:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9U3C-00032F-SD for ged-emacs-devel@m.gmane.org; Mon, 20 Sep 2004 15:42:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9U33-00032A-GS for emacs-devel@gnu.org; Mon, 20 Sep 2004 15:42:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9U31-00031J-KM for emacs-devel@gnu.org; Mon, 20 Sep 2004 15:42:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9U31-000318-FF for emacs-devel@gnu.org; Mon, 20 Sep 2004 15:42:03 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C9Twx-0006Zy-OH for emacs-devel@gnu.org; Mon, 20 Sep 2004 15:35:48 -0400 Original-Received: (qmail 11553 invoked by uid 65534); 20 Sep 2004 19:35:46 -0000 Original-Received: from dsl-082-083-129-246.arcor-ip.net (EHLO USER-2MOEN8BWBA.gmx.de) (82.83.129.246) by mail.gmx.net (mp008) with SMTP; 20 Sep 2004 21:35:46 +0200 X-Authenticated: #1497658 Original-To: boris@gnu.org In-Reply-To: (Oliver Scholz's message of "Mon, 20 Sep 2004 15:27:09 +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:27339 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27339 Oliver Scholz writes: > I have to admit that I have never thought of the `category' > property, instead I have always experimented with implementing its > functionality myself. Thanks for the reminder. This might indeed be > useful. I think we need a way for merging categories, if those are supposed to be used. In RTF we have: (section stylesheets: specifying both character and paragraph formatting properties) paragraph stylesheets: specifying both character and paragraph formatting properties character stylesheets: specifying only character formatting properties explicit setting of propeties, bother character and paragraph formatting. These four need to be merged in that order. I'd like to use the `category' text property for both character and paragraph formatting, but I don't know how. I used to solve that problem in my past prototypes by maintaining two text properties, one for character and one for paragraph properties. These text properties would hold a vector each with all necessary formatting properties, including a reference to a stylesheet, if any. A fontification function in `jit-lock' would then resolve the formatting information accordingly and create an anonymous face. This works. But finding a way to use the `category' text property would be nicer. Here is a make-up example for the issue in XHTML: Lirum larum

The headline plus character formatting stylesheet plus explicitely added properties.

Oliver -- Oliver Scholz Jour des Récompenses de l'Année 212 de la Révolution Ostendstr. 61 Liberté, Egalité, Fraternité! 60314 Frankfurt a. M.