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: Mon, 29 Oct 2007 05:22:23 -0400 Message-ID: References: <86r6jfz3bb.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 1193650162 15107 80.91.229.12 (29 Oct 2007 09:29:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2007 09:29:22 +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 Mon Oct 29 10:29:24 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 1ImQvy-00076N-Fg for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 10:29:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImQvp-0003Wc-1k for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 05:29:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImQpI-00074a-CI for emacs-devel@gnu.org; Mon, 29 Oct 2007 05:22:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImQpH-00072t-2Y for emacs-devel@gnu.org; Mon, 29 Oct 2007 05:22:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImQpG-00072m-Tn for emacs-devel@gnu.org; Mon, 29 Oct 2007 05:22:26 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImQpG-0007rS-Jc for emacs-devel@gnu.org; Mon, 29 Oct 2007 05:22:26 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ImQpD-0001Si-VV; Mon, 29 Oct 2007 05:22:23 -0400 In-reply-to: <86r6jfz3bb.fsf@macs.hw.ac.uk> (message from Joe Wells on Sun, 28 Oct 2007 15:06:32 +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:82053 Archived-At: > Can someone write a patch so that the overlay's face property (and > other display-related properties) won't apply to its before-string? > > Joe, what do you think about that as a solution? I think that would be an improvement. I think the best solution would be for the face property of an overlay (and similar properties) to not apply to the before-string, the after-string, _and_ the display property of the overlay. Can someone implement that? It should not be fundamentally hard; making the properties apply is what is hard. Note that there are additional problems. One example (which I have already reported) is that the face of the character in the buffer after the overlay start location (which is not even in the overlay if the overlay is of length zero) is applied to the before-string and display properties of the overlay. The fix we are discussing will get rid of this problem, right? Another example (which I think I have not previously reported) is that the face of the character in the buffer _after_ the overlay end location (which is _never_ in the overlay) is applied to the after-string property. Let's consider that after this fix is done; perhaps this will solve that other problem as a byproduct.