From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Combining face and map stuff Date: Tue, 12 Oct 2010 16:23:57 -0400 Message-ID: References: <8739slfqg6.fsf@catnip.gol.com> <83y6acnfaw.fsf@gnu.org> <83sk0bkz31.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286916246 16888 80.91.229.12 (12 Oct 2010 20:44:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2010 20:44:06 +0000 (UTC) Cc: emacs-devel@gnu.org, miles@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 12 22:44:05 2010 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.69) (envelope-from ) id 1P5lhc-0008Rs-VM for ged-emacs-devel@m.gmane.org; Tue, 12 Oct 2010 22:44:05 +0200 Original-Received: from localhost ([127.0.0.1]:45307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5lgU-0007hg-Tm for ged-emacs-devel@m.gmane.org; Tue, 12 Oct 2010 16:42:55 -0400 Original-Received: from [140.186.70.92] (port=36156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5lbx-0004Yp-7d for emacs-devel@gnu.org; Tue, 12 Oct 2010 16:38:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5lOK-0002Va-2P for emacs-devel@gnu.org; Tue, 12 Oct 2010 16:24:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:24937 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5lOC-0002Td-4O; Tue, 12 Oct 2010 16:24:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkEJAEFhtExMCpJQ/2dsb2JhbACgYnxyvwaFSASSDQ X-IronPort-AV: E=Sophos;i="4.57,321,1283745600"; d="scan'208";a="78731452" Original-Received: from 76-10-146-80.dsl.teksavvy.com (HELO ceviche.home) ([76.10.146.80]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 12 Oct 2010 16:23:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D8046660C9; Tue, 12 Oct 2010 16:23:57 -0400 (EDT) In-Reply-To: <83sk0bkz31.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 12 Oct 2010 21:09:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:131646 Archived-At: >> Package foo wants to add `face' stuff and package bar also wants to add >> `face' stuff. If both add it to the same piece of text, we have >> a problem, and if they want to update it later they have to know who >> "owns" the particular value (i.e. who it comes from) to know whether it >> should be updated or not. > In that case, I'm sorry, but I must ask the same question again: how > will the display engine know which face to display? > Let's say we have a buffer, in which both package foo and package bar > defined different faces for the same piece of text. Which one of them > will be displayed, and how would the display engine know to choose it? Internally, one of them sets the property (foo . face) to , the other one sets the property (bar . face) to , and when these are set, the `face' property gets set to ( ). The display engine only looks at the `face' property, just as before. Stefan