From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.devel Subject: Re: Fwd: overlay face property not used for after-string property Date: Sat, 03 Nov 2007 16:03:14 +0000 Message-ID: <86bqabjozh.fsf@macs.hw.ac.uk> References: <86r6jfz3bb.fsf@macs.hw.ac.uk> <86bqaixmxk.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194105849 13812 80.91.229.12 (3 Nov 2007 16:04:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2007 16:04:09 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 03 17:04:11 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 1IoLTm-0000QP-S4 for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 17:04:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoLTc-0002HT-OM for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 12:04:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IoLT3-0001Xq-CW for emacs-devel@gnu.org; Sat, 03 Nov 2007 12:03:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IoLT2-0001Ws-Ri for emacs-devel@gnu.org; Sat, 03 Nov 2007 12:03:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoLT2-0001WO-CG for emacs-devel@gnu.org; Sat, 03 Nov 2007 12:03:24 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IoLSv-0003AI-8W; Sat, 03 Nov 2007 12:03:17 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:36605 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IoLSs-0000Bv-7M; Sat, 03 Nov 2007 16:03:14 +0000 Original-Received: (nullmailer pid 31778 invoked by uid 1001); Sat, 03 Nov 2007 16:03:14 -0000 In-Reply-To: (Richard Stallman's message of "Fri\, 02 Nov 2007 23\:58\:40 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) 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:82432 Archived-At: Richard Stallman writes: > > The fix we are discussing will get rid of this problem, right? > > No, the problem with the before-string/display/after-string > properties being affected by a face from the buffer appears to > be a completely unrelated issue which will need to be debugged > separately. > > I see. We have one problem with overlay properties, and > another with text properties. > > I think I just fixed the most of the problem for overlay > properties. Now overlay before-strings and after-strings should be > unaffected by the face properties of all overlays. They are, > however, affected by `face' text properties and by region > highlighting. > > It is not 100% clear that that is correct; you might want a longer > overlay's `face' property, or a higher priority overlay's `face' > property, to affect the before-strings and after-strings of smaller > overlays. This is a very good point! > That seems like somewhat of a can of worms. The rule I implemented > is simple and clear. > > Do you agree? 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). > And do you get good results from the fix? (It is in Emacs 22.) I will not be able to test in a new Emacs version in the near future. > Do you think the same rule is right for display property strings that > come from overlays? That is, obey `face' text properties, but not > `face' overlay properties? No. > Once we are sure what is right for overlay properties, I will start > dealing with the text property effects. By the way, the concern I raise in the message you quote above is not about text properties in the before-string or after-string, but about text properties in the buffer. -- Joe