From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: font-lock-face superseeds face? Date: Sat, 16 Jun 2007 22:15:10 +0200 Message-ID: <467444CE.6080300@gmail.com> References: <4672C230.5060201@gmail.com> <4673A3F0.6010402@gmx.at> <4673A9B9.8070209@gmail.com> <4673B6D7.5010705@gmx.at> <4673B74B.4030905@gmail.com> <4673D6C2.2070706@gmx.at> <4673D9A8.7010406@gmail.com> <4673F750.3040605@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182024926 23546 80.91.229.12 (16 Jun 2007 20:15:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 20:15:26 +0000 (UTC) Cc: Emacs Devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 22:15:25 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 1Hzeg8-0002Qa-OW for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 22:15:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzeg6-0004AC-3r for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 16:15:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hzeg2-0004A7-79 for emacs-devel@gnu.org; Sat, 16 Jun 2007 16:15:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hzeg1-00049v-MD for emacs-devel@gnu.org; Sat, 16 Jun 2007 16:15:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzeg1-00049s-HO for emacs-devel@gnu.org; Sat, 16 Jun 2007 16:15:17 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hzeg1-0004ao-36 for emacs-devel@gnu.org; Sat, 16 Jun 2007 16:15:17 -0400 Original-Received: from c83-254-133-189.bredband.comhem.se ([83.254.133.189]:62385 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1Hzefz-0001OT-4S; Sat, 16 Jun 2007 22:15:15 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666 In-Reply-To: <4673F750.3040605@gmx.at> X-Antivirus: avast! (VPS 000749-2, 2007-06-16), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.133.189 X-Scan-Result: No virus found in message 1Hzefz-0001OT-4S. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Hzefz-0001OT-4S 8239a871c3573d3cd281a2a485ff4372 X-detected-kernel: Linux 2.6? (barebone, rare!) 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:73113 Archived-At: martin rudalics wrote: > > No, I have not tried that yet. I wanted to be sure what the behaviour > > should be first. Actually I believe it worked as I expect it to long > > before, but I am not sure. It is however quite possible I got fooled by > > the different cases we have seen here. > > I never used the `font-lock-face' property before hence I can't tell. > The documentation tells me nothing about whether it should override > ("supersede") any other face / font-lock-face. The Elisp manual says > > ... This can be advantageous for special buffers > which are not intended to be user-editable, or for static areas of > text which are always fontified in the same way. ... > > and none of these apply in your case. If you want to change the > behavior in your particular use case insert a line like > > (unless (text-property-not-all beg (point) 'font-lock-face nil) > > before > > (when face (put-text-property beg (point) 'face face)) > > in `font-lock-fontify-syntactically-region'. In my case I just want to avoid using overlays (it simplifies the code very much in my case).