From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Copying preserves font-lock-face Date: Mon, 25 Sep 2006 11:22:15 +0900 Message-ID: References: <17684.33575.513181.276604@kahikatea.snap.net.nz> <45155CE0.6040200@gmx.at> <17686.8709.23521.874061@kahikatea.snap.net.nz> <4516532E.8040906@gmx.at> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159151081 7634 80.91.229.2 (25 Sep 2006 02:24:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2006 02:24:41 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 25 04:24:37 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 1GRg96-0001bd-Bk for ged-emacs-devel@m.gmane.org; Mon, 25 Sep 2006 04:24:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRg95-00082z-LT for ged-emacs-devel@m.gmane.org; Sun, 24 Sep 2006 22:24:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRg8v-00081d-E2 for emacs-devel@gnu.org; Sun, 24 Sep 2006 22:24:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRg8t-0007wd-M6 for emacs-devel@gnu.org; Sun, 24 Sep 2006 22:24:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRg8t-0007wR-IK for emacs-devel@gnu.org; Sun, 24 Sep 2006 22:24:23 -0400 Original-Received: from [203.180.232.82] (helo=mgate02.necel.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRgDB-0004Rl-P9; Sun, 24 Sep 2006 22:28:50 -0400 Original-Received: from relay11.aps.necel.com (relay11 [10.29.19.46]) by mgate02.necel.com (8.13.8/8.13.1) with ESMTP id k8P217ZP000389; Mon, 25 Sep 2006 11:24:16 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay11.aps.necel.com with ESMTP; Mon, 25 Sep 2006 11:24:16 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay11.aps.necel.com with ESMTP; Mon, 25 Sep 2006 11:24:16 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 772BD44C; Mon, 25 Sep 2006 11:22:15 +0900 (JST) Original-To: martin rudalics System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <4516532E.8040906@gmx.at> (martin rudalics's message of "Sun\, 24 Sep 2006 11\:43\:10 +0200") Original-Lines: 21 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:60185 Archived-At: martin rudalics writes: > > 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'. Font-lock-mode arranges for `font-lock-face' properties to be interpreted as `face' properties (using `char-property-alias-alist'). This allows a mode to _directly_ add face properties in a font-locked buffer, and these face properties are safe from being overwritten by font-lock-mode. This to support modes which really want to do their own ad-hoc facification (:-), while still allowing the user to turn face display on or off using `M-x font-lock-mode' (etc). -Miles -- I'm beginning to think that life is just one long Yoko Ono album; no rhyme or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff