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: Tue, 12 Oct 2010 21:09:22 +0200 Message-ID: <83sk0bkz31.fsf@gnu.org> References: <8739slfqg6.fsf@catnip.gol.com> <83y6acnfaw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1286910591 23682 80.91.229.12 (12 Oct 2010 19:09:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2010 19:09:51 +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 Tue Oct 12 21:09:48 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 1P5kEN-00017H-Ka for ged-emacs-devel@m.gmane.org; Tue, 12 Oct 2010 21:09:47 +0200 Original-Received: from localhost ([127.0.0.1]:49356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5kEN-0005y1-02 for ged-emacs-devel@m.gmane.org; Tue, 12 Oct 2010 15:09:47 -0400 Original-Received: from [140.186.70.92] (port=37919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5kEE-0005x3-3o for emacs-devel@gnu.org; Tue, 12 Oct 2010 15:09:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5kEC-0006bN-Qz for emacs-devel@gnu.org; Tue, 12 Oct 2010 15:09:37 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:58990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5kEC-0006b8-K7; Tue, 12 Oct 2010 15:09:36 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LA600A00YICN300@a-mtaout22.012.net.il>; Tue, 12 Oct 2010 21:09:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.93.189]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LA600AQYYJFGZ30@a-mtaout22.012.net.il>; Tue, 12 Oct 2010 21:09:16 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:131645 Archived-At: > From: Stefan Monnier > Cc: miles@gnu.org, emacs-devel@gnu.org > Date: Thu, 07 Oct 2010 20:08:26 +0200 > > 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? > >> - there is no way currently to combine various property values (the OP's > >> question). > > What's wrong with add-text-properties? > > It never combines values of a single property, just overwrites an old > value with a new one. Light begins slowly to turn on...