GNU bug report logs - #18367
24.4.50; [PATCH] Text property `font-lock-ignore', to protect from font-lock

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sat, 30 Aug 2014 20:14:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.4.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; [PATCH] Text property `font-lock-ignore', to protect from
 font-lock
Date: Sat, 30 Aug 2014 13:12:44 -0700 (PDT)
[Message part 1 (text/plain, inline)]
Bug or missing feature: Prevent font-lock from changing text
properties on text that has property `font-lock-ignore'.  See
http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00540.html

Patch attached.  ChangeLog entry:

2014-08-30 Drew Adams  <drew.adams <at> oracle.com>
	* font-lock.el: Respect text property `font-lock-ignore'.
        (put-text-property-unless-ignore): New function.
	(font-lock-default-unfontify-region): Do not unfontify if
	text has property `font-lock-ignore'.
	(font-lock-prepend-text-property, font-lock-append-text-property)
	(font-lock-fillin-text-property, font-lock-apply-syntactic-highlight)
	(font-lock-fontify-syntactically-region, font-lock-apply-highlight)
	(font-lock-fontify-anchored-keywords)
	(font-lock-fontify-keywords-region):
        Use put-text-property-unless-ignore, not put-text-property.

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-08-15 on LEG570
Bzr revision: 117706 rgm <at> gnu.org-20140815043406-p5hbu97cbm7pulcn
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'
[font-lock-2014-08-30.patch (application/octet-stream, attachment)]

This bug report was last modified 9 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.