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: Wed, 13 Oct 2010 08:42:20 -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 1286975275 11314 80.91.229.12 (13 Oct 2010 13:07:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 13:07:55 +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 Wed Oct 13 15:07:50 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 1P613c-0007n3-2O for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 15:07:48 +0200 Original-Received: from localhost ([127.0.0.1]:44291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P613b-0005oy-4S for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 09:07:47 -0400 Original-Received: from [140.186.70.92] (port=42449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P60f3-0007FB-Bs for emacs-devel@gnu.org; Wed, 13 Oct 2010 08:42:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P60f1-0007MC-FQ for emacs-devel@gnu.org; Wed, 13 Oct 2010 08:42:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:64608 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P60f0-0007LH-CL; Wed, 13 Oct 2010 08:42:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtsIALpFtUxLd/aq/2dsb2JhbACgV3RyumqFSASSDQ X-IronPort-AV: E=Sophos;i="4.57,325,1283745600"; d="scan'208";a="78787303" Original-Received: from 75-119-246-170.dsl.teksavvy.com (HELO ceviche.home) ([75.119.246.170]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 13 Oct 2010 08:42:21 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0374C660F5; Wed, 13 Oct 2010 08:42:21 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Wed, 13 Oct 2010 07:41:07 -0400") 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:131666 Archived-At: >> > 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? Yes, tho it goes further than that, since the above steps still leave some questions unanswered, e.g.: - how to make sure all packages use the same "merge" function? - how should a package remove its property values without also removing the other packages's property values. Stefan