From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Fwd: overlay face property not used for after-string property Date: Sun, 04 Nov 2007 14:56:50 -0500 Message-ID: References: <86r6jfz3bb.fsf@macs.hw.ac.uk> <86bqaixmxk.fsf@macs.hw.ac.uk> <86bqabjozh.fsf@macs.hw.ac.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1194206453 30451 80.91.229.12 (4 Nov 2007 20:00:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2007 20:00:53 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Joe Wells Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 04 21:00:56 2007 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.50) id 1IoleS-0000bb-29 for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2007 21:00:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoleH-0005hJ-Nb for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2007 15:00:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IolaZ-00019d-Ss for emacs-devel@gnu.org; Sun, 04 Nov 2007 14:56:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IolaY-00017A-8r for emacs-devel@gnu.org; Sun, 04 Nov 2007 14:56:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IolaX-00016x-W7 for emacs-devel@gnu.org; Sun, 04 Nov 2007 14:56:54 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IolaX-0005N6-Na for emacs-devel@gnu.org; Sun, 04 Nov 2007 14:56:53 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IolaU-0005Y0-Oj; Sun, 04 Nov 2007 14:56:50 -0500 In-reply-to: <86bqabjozh.fsf@macs.hw.ac.uk> (message from Joe Wells on Sat, 03 Nov 2007 16:03:14 +0000) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:82513 Archived-At: I agree that it is simple and clear. However, given the point you made above, I think it would be better if before-string and after-string properties were affected by the face property of other overlays (regardless of whether they should be affected by the face property of the same overlay). Do you mean ALL other overlays? So if there are two overlays A and B, A's before-string shoud be affected by B's face and vice versa? That doesn't sound quite right to me, but I don't have a feel for just what would be right. So I have installed a change that makes available, to the function to choose the base face, the overlay from which the overlay string came. The function is now called `face_for_overlay_string', and it is in xfaces.c. Given that info, people could implement whatever policy seems right. But I don't want to try implementing a different policy myself. I don't have an actual use for this feature, so I could try five different policies with no reason to expect any of them to be good for actual use. I will leave this part for others.