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, 21 Sep 2004 11:07:30 +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 1095757806 14456 80.91.229.6 (21 Sep 2004 09:10:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Sep 2004 09:10:06 +0000 (UTC) Cc: boris@gnu.org, alex@emacswiki.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 21 11:09:58 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 1C9ges-0005yQ-00 for ; Tue, 21 Sep 2004 11:09:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9gkm-0001Vw-QV for ged-emacs-devel@m.gmane.org; Tue, 21 Sep 2004 05:16:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9gk8-0001Vc-DK for emacs-devel@gnu.org; Tue, 21 Sep 2004 05:15:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9gk5-0001UL-FG for emacs-devel@gnu.org; Tue, 21 Sep 2004 05:15:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9gk5-0001UA-8v for emacs-devel@gnu.org; Tue, 21 Sep 2004 05:15:21 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C9gca-0007wQ-OB for emacs-devel@gnu.org; Tue, 21 Sep 2004 05:07:37 -0400 Original-Received: (qmail 5892 invoked by uid 65534); 21 Sep 2004 09:07:35 -0000 Original-Received: from dsl-084-057-030-016.arcor-ip.net (EHLO USER-2MOEN8BWBA.gmx.de) (84.57.30.16) by mail.gmx.net (mp020) with SMTP; 21 Sep 2004 11:07:35 +0200 X-Authenticated: #1497658 Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 20 Sep 2004 22:21:44 +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:27363 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27363 storm@cua.dk (Kim F. Storm) writes: [...] > Maybe we could allow 'category to take a value which is a list > of category symbols -- and then use those categories in order, i.e. > when looking for a specific property, use the first occurrence. > > Just like an explicit property should (does?) take precedence over > a property from a category. > > Like this: > > 'category '(char-style para-style sect-style) [...] Faces would need to be merged. (progn (put 'h1 'face 'Info-title-1-face) (put 'italic 'face '(face :slant italic)) (switch-to-buffer (generate-new-buffer "*tmp*")) (insert (propertize "lirum larum" 'category '(italic h1) 'face '(face :foreground "Blue")))) This should get an italic `Info-title-1-face' in blue. Oliver -- Oliver Scholz Jour de la Révolution de l'Année 212 de la Révolution Ostendstr. 61 Liberté, Egalité, Fraternité! 60314 Frankfurt a. M.