From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Combining face and map stuff Date: Wed, 13 Oct 2010 07:41:07 -0400 Message-ID: References: <8739slfqg6.fsf@catnip.gol.com> <83y6acnfaw.fsf@gnu.org> <83sk0bkz31.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1286970361 20481 80.91.229.12 (13 Oct 2010 11:46:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 11:46:01 +0000 (UTC) Cc: emacs-devel@gnu.org, miles@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 13 13:46:00 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 1P5zmR-0002Z2-Am for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 13:45:59 +0200 Original-Received: from localhost ([127.0.0.1]:59539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5zmQ-0006gp-MF for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 07:45:58 -0400 Original-Received: from [140.186.70.92] (port=34462 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5zmC-0006aD-7k for emacs-devel@gnu.org; Wed, 13 Oct 2010 07:45:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5zhj-0007wb-PN for emacs-devel@gnu.org; Wed, 13 Oct 2010 07:41:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5zhj-0007wX-O1 for emacs-devel@gnu.org; Wed, 13 Oct 2010 07:41:07 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P5zhj-0003ju-FX; Wed, 13 Oct 2010 07:41:07 -0400 In-reply-to: (message from Stefan Monnier on Tue, 12 Oct 2010 16:23:57 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:131660 Archived-At: > From: Stefan Monnier > Cc: miles@gnu.org, emacs-devel@gnu.org > Date: Tue, 12 Oct 2010 16:23:57 -0400 > > > 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. So it's just a convenience feature, to avoid something like get existing text property value merge with another value put it back with add-text-property in every package?