From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#18367: 24.4.50; [PATCH] Text property `font-lock-ignore', to protect from font-lock Date: Mon, 01 Sep 2014 21:43:31 +0200 Message-ID: <85a96jazz0.fsf@iznogoud.viz> References: <86f1a219-9ab5-439f-85ca-936b942cb034@default> <85mwajb2mx.fsf@iznogoud.viz> <83sikbf9bg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409600663 14485 80.91.229.3 (1 Sep 2014 19:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2014 19:44:23 +0000 (UTC) Cc: 18367@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 01 21:44:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XOXWR-0002nW-Na for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Sep 2014 21:44:15 +0200 Original-Received: from localhost ([::1]:33688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOXWR-0003y2-Dd for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Sep 2014 15:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOXWJ-0003xt-HO for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2014 15:44:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOXWE-00006Z-6h for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2014 15:44:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOXWE-00006V-3o for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2014 15:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XOXWD-0003zj-LE for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2014 15:44:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86f1a219-9ab5-439f-85ca-936b942cb034@default> Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Sep 2014 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18367 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18367-submit@debbugs.gnu.org id=B18367.140960062215311 (code B ref 18367); Mon, 01 Sep 2014 19:44:01 +0000 Original-Received: (at 18367) by debbugs.gnu.org; 1 Sep 2014 19:43:42 +0000 Original-Received: from localhost ([127.0.0.1]:55909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XOXVt-0003ys-Tu for submit@debbugs.gnu.org; Mon, 01 Sep 2014 15:43:42 -0400 Original-Received: from b2bfep16.mx.upcmail.net ([62.179.121.61]:54699) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XOXVr-0003yb-2r for 18367@debbugs.gnu.org; Mon, 01 Sep 2014 15:43:40 -0400 Original-Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep16-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140901194332.CGLE22864.b2bfep16-int.chello.at@edge12.upcmail.net> for <18367@debbugs.gnu.org>; Mon, 1 Sep 2014 21:43:32 +0200 Original-Received: from iznogoud.viz ([91.119.88.190]) by edge12.upcmail.net with edge id lvjX1o00z46QafP0CvjX6t; Mon, 01 Sep 2014 21:43:32 +0200 X-SourceIP: 91.119.88.190 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XOXVj-0000Qs-Eb; Mon, 01 Sep 2014 21:43:31 +0200 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92938 Archived-At: On Mon, Sep 01 2014, Eli Zaretskii wrote: >> From: Wolfgang Jenkner >> Date: Mon, 01 Sep 2014 20:45:58 +0200 >> Cc: 18367@debbugs.gnu.org >> >> On Sun, Aug 31 2014, Drew Adams wrote: >> >> > (elisp) `Other Font Lock Variables' says this about it: >> > >> > Variable: font-lock-extra-managed-props >> > This variable specifies additional properties (other than >> > `font-lock-face') that are being managed by Font Lock mode. It is >> > used by `font-lock-default-unfontify-region', which normally only >> > manages the `font-lock-face' property. If you want Font Lock to >> > manage other properties as well, you must specify them in a >> > FACESPEC in `font-lock-keywords' as well as add them to this list. >> > *Note Search-based Fontification::. >> >> I think `font-lock-face' is a typo here (it should read `face'). >> >> It is clear from looking a the code (or doing some experiments) that >> font-lock-default-unfontify-region doesn't remove the `font-lock-face' >> property. > > The "it" in that text alludes to font-lock-extra-managed-props, not to > font-lock-face. I don't think the "it" is a problem here. > After all, the former is what is being documented in > the text you cited; the latter is just mentioned because > font-lock-face is another kind of specification of "additional" > properties of interest to Font Lock. But, `font-lock-face' is of no interest to font-lock-default-unfontify-region, the `face' property is. font-lock-default-unfontify-region does not remove the `font-lock-face' property, it removes the `face' property. font-lock-default-unfontify-region does not "manage" the `font-lock-face' property, it "manages" the `face' property. Sorry, for saying three times the same thing, but Drew cited this part of the manual and it seems to be the reason why Stefan's request didn't make sense to him. Wolfgang