From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: James Clark Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Wed, 22 Sep 2004 10:20:30 +0700 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <1095823230.7357.387.camel@pineapple.bkk.thaiopensource.com> 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 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095823306 20069 80.91.229.6 (22 Sep 2004 03:21:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2004 03:21:46 +0000 (UTC) Cc: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 05:21:32 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 1C9xhE-0001lR-00 for ; Wed, 22 Sep 2004 05:21:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9xnB-0007nZ-Rd for ged-emacs-devel@m.gmane.org; Tue, 21 Sep 2004 23:27:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9xn5-0007nU-Kn for emacs-devel@gnu.org; Tue, 21 Sep 2004 23:27:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9xn3-0007nI-N1 for emacs-devel@gnu.org; Tue, 21 Sep 2004 23:27:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9xn3-0007nF-KV for emacs-devel@gnu.org; Tue, 21 Sep 2004 23:27:33 -0400 Original-Received: from [161.58.244.53] (helo=thaiopensource.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C9xgg-0005u2-Jv; Tue, 21 Sep 2004 23:20:58 -0400 Original-Received: from dmz-1.bkk.thaiopensource.com ([203.130.150.188]) by thaiopensource.com (8.12.11/8.11.2) with ESMTP id i8M3Kr3b075128; Wed, 22 Sep 2004 10:20:54 +0700 (ICT) Original-Received: from [192.168.0.100] (home-gw.bkk.thaiopensource.com [203.130.150.187]) by dmz-1.bkk.thaiopensource.com (Postfix) with ESMTP id D64C1FA03; Wed, 22 Sep 2004 10:20:32 +0700 (ICT) Original-To: Richard Stallman In-Reply-To: X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2.1thaiopen) 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:27409 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27409 On Wed, 2004-09-22 at 01:30, Richard Stallman wrote: > > When encoding a buffer, I need to identify the whole paragraph as > > being of the type "h1". I.e. I have to distinguish it from: > > Maybe we can get some of the way with Emacs' category text properties?! > > The `category' property is meant for things like this. But it is not > used much if at all. If its existing definition is not quite right, > we can change it, or we could add a new feature that DTRT. I wonder whether the value of the `category' property should be allowed to be a list of atoms somewhat like with `invisible'. This would allow multiple emacs modes to use the `category' property without collision, and would also allow one to handle a case like foobar: foo would have the property (category (b)) and bar would the property (category (i b); i would have property face (:slant italic), b would have property face (:weight bold) and the net result would be that foo would be bold and bar would be bold and italic, which is what one would want. James -- To send me mail, replace auth-only by public in the from address.