From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: font-lock-face superseeds face? Date: Sat, 16 Jun 2007 16:44:32 +0200 Message-ID: <4673F750.3040605@gmx.at> 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> 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 1182005062 601 80.91.229.12 (16 Jun 2007 14:44:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 14:44:22 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 16:44:19 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 1HzZVg-0003ZH-J0 for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 16:44:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzZVg-0003VU-4A for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 10:44:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzZVb-0003Uh-Tg for emacs-devel@gnu.org; Sat, 16 Jun 2007 10:44:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzZVZ-0003UB-Jw for emacs-devel@gnu.org; Sat, 16 Jun 2007 10:44:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzZVZ-0003U7-CR for emacs-devel@gnu.org; Sat, 16 Jun 2007 10:44:09 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HzZVY-0005EH-P6 for emacs-devel@gnu.org; Sat, 16 Jun 2007 10:44:09 -0400 Original-Received: (qmail invoked by alias); 16 Jun 2007 14:44:07 -0000 Original-Received: from N723P009.adsl.highway.telekom.at (EHLO [62.47.34.73]) [62.47.34.73] by mail.gmx.net (mp038) with SMTP; 16 Jun 2007 16:44:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19pxtsDwlVp1iva7XQVsvo4wc1fW84pgxjk7OXi/8 ceNdVrDlubJ12/ User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <4673D9A8.7010406@gmail.com> X-Y-GMX-Trusted: 0 X-detected-kernel: 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:73073 Archived-At: > 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'.