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: Copying preserves font-lock-face Date: Sun, 24 Sep 2006 11:43:10 +0200 Message-ID: <4516532E.8040906@gmx.at> References: <17684.33575.513181.276604@kahikatea.snap.net.nz> <45155CE0.6040200@gmx.at> <17686.8709.23521.874061@kahikatea.snap.net.nz> NNTP-Posting-Host: main.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 1159091121 20355 80.91.229.2 (24 Sep 2006 09:45:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2006 09:45:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 24 11:45:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRQXy-0003tt-8c for ged-emacs-devel@m.gmane.org; Sun, 24 Sep 2006 11:45:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRQXv-0000Ob-N0 for ged-emacs-devel@m.gmane.org; Sun, 24 Sep 2006 05:45:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRQXk-0000OQ-Bn for emacs-devel@gnu.org; Sun, 24 Sep 2006 05:45:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRQXj-0000O4-PY for emacs-devel@gnu.org; Sun, 24 Sep 2006 05:44:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRQXj-0000O1-Lb for emacs-devel@gnu.org; Sun, 24 Sep 2006 05:44:59 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GRQbt-0002tR-5c for emacs-devel@gnu.org; Sun, 24 Sep 2006 05:49:17 -0400 Original-Received: (qmail invoked by alias); 24 Sep 2006 09:44:58 -0000 Original-Received: from N716P014.adsl.highway.telekom.at (EHLO [62.47.33.110]) [62.47.33.110] by mail.gmx.net (mp028) with SMTP; 24 Sep 2006 11:44:58 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Nick Roberts In-Reply-To: <17686.8709.23521.874061@kahikatea.snap.net.nz> X-Y-GMX-Trusted: 0 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:60162 Archived-At: > Yes but face and font-lock-face are different character properties and I'm > talking about the latter. I don't understand where you get a `font-lock-face' (sic) property from but you can add it to `font-lock-extra-managed-props'. > > > Is there a reason why font-lock-face should be preserved on copying? > > > > In some rare cases, I find it useful to see remnants of faces assigned > > by font-lock when I copy a stretch of code to a plain text buffer. > > Hence, in principle, preserving such face properties does not seem > > wrong. > > Are faces assigned by font-lock and font-lock-faces the same thing? `font-lock-apply-highlight' and the functions that append or prepend text properties do things like (put-text-property start end 'face val), hence they assign a `face' property, not a `font-lock-face' property. Can you find out how a `font-lock-face' text property gets assigned on your system?