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: Thu, 07 Oct 2010 09:40:33 +0200 Message-ID: References: <8739slfqg6.fsf@catnip.gol.com> <83y6acnfaw.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286437349 31743 80.91.229.12 (7 Oct 2010 07:42:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2010 07:42:29 +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 Thu Oct 07 09:42:28 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 1P3l7U-00032O-4X for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2010 09:42:28 +0200 Original-Received: from localhost ([127.0.0.1]:47340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3l7T-00079T-7M for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2010 03:42:27 -0400 Original-Received: from [140.186.70.92] (port=45263 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3l5k-00065Y-Tj for emacs-devel@gnu.org; Thu, 07 Oct 2010 03:40:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3l5h-0000j1-DB for emacs-devel@gnu.org; Thu, 07 Oct 2010 03:40:38 -0400 Original-Received: from smtp2f.orange.fr ([80.12.242.151]:22165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3l5g-0000iM-6H; Thu, 07 Oct 2010 03:40:36 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f13.orange.fr (SMTP Server) with ESMTP id 45EAE80003D5; Thu, 7 Oct 2010 09:40:34 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f13.orange.fr (SMTP Server) with ESMTP id 2FC7B8000408; Thu, 7 Oct 2010 09:40:34 +0200 (CEST) Original-Received: from fmsmemgm.homelinux.net (AMontsouris-552-1-107-212.w92-140.abo.wanadoo.fr [92.140.114.212]) by mwinf2f13.orange.fr (SMTP Server) with ESMTP id 019C680003D5; Thu, 7 Oct 2010 09:40:34 +0200 (CEST) X-ME-UUID: 20101007074034670.019C680003D5@mwinf2f13.orange.fr Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 911D4AE516; Thu, 7 Oct 2010 09:40:33 +0200 (CEST) In-Reply-To: <83y6acnfaw.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 06 Oct 2010 05:57:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (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:131414 Archived-At: > If the new protocol itself is the advantage, then perhaps what I'm > missing is the essence of the problems that you proposal is trying to > solve. Here are some problems that this protocol solves: - there can currently only be one owner of a text-property, which creates conflicts. We have various workarounds in use for that: - use overlays instead of text-properties. - use char-property-alias-alist. - add hooks in one of the packages and let the other work through those hooks (e.g. hi-lock using font-lock). - add a secondary property to try and record who put the property, so as to be able to recognize one's own properties when time comes to remove them. - there is no way currently to combine various property values (the OP's question). Stefan