From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18367: 24.4.50; [PATCH] Text property `font-lock-ignore', to protect from font-lock Date: Sat, 20 Jun 2015 09:58:20 -0700 (PDT) Message-ID: <2a18392d-4a8c-433d-9b93-0e607bcb4299@default> References: <86f1a219-9ab5-439f-85ca-936b942cb034@default> <87iok5t5ud.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1434819571 29643 80.91.229.3 (20 Jun 2015 16:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2015 16:59:31 +0000 (UTC) Cc: 18367@debbugs.gnu.org To: michael_heerdegen@web.de, Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 20 18:59:11 2015 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 1Z6M6o-0007Kz-VC for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 18:59:11 +0200 Original-Received: from localhost ([::1]:34203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6M6o-0003fT-1e for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 12:59:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6M6k-0003fN-70 for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 12:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6M6h-00045O-0o for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 12:59:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6M6g-00045A-Sl for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 12:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6M6g-0005z4-Jv for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 12:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jun 2015 16:59:02 +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.143481951122963 (code B ref 18367); Sat, 20 Jun 2015 16:59:02 +0000 Original-Received: (at 18367) by debbugs.gnu.org; 20 Jun 2015 16:58:31 +0000 Original-Received: from localhost ([127.0.0.1]:52818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6M6A-0005yJ-MY for submit@debbugs.gnu.org; Sat, 20 Jun 2015 12:58:31 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:44609) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6M69-0005y5-45 for 18367@debbugs.gnu.org; Sat, 20 Jun 2015 12:58:29 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t5KGwLMl014440 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 20 Jun 2015 16:58:22 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t5KGwJcn001914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 16:58:19 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t5KGwJ62007364; Sat, 20 Jun 2015 16:58:19 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] 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:104152 Archived-At: Let me try refreshing this. It seems that people are mistaking adding a property to `font-lock-extra-managed-props', or using `font-lock-face' instead of `face', as a solution to the problem that the proposed patch fixes. It is not. I stated the essential difference in the emacs-devel thread that is associated with this bug: http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00583.html What I am talking about is the opposite: Not giving font-lock control over additional, ad hoc highlighting, but taking font-lock control away, for given ad hoc highlighting. I don't want turning font-lock on or off to affect the given highlighting at all. That's the point. It's not that I'm looking for a way to let font-lock control some non-`font-lock-keywords' highlighting. That we can do already, using property `font-lock-face'. And we can also do that already by adding a given property to `font-lock-extra-managed-props'. The point of the patch I sent is to let you really tell font-lock "hands-off" anywhere you like, i.e., make it so that font-lock-mode has no effect on the given text. Again: "I don't want turning font-lock on or off to affect the given highlighting at all." So how about it? How about applying the simple code change that fixes this?