[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18367: 24.4.50; [PATCH] Text property `font-lock-ignore', to protect

From: Drew Adams
Subject: bug#18367: 24.4.50; [PATCH] Text property `font-lock-ignore', to protect from font-lock
Date: Sat, 30 Aug 2014 13:12:44 -0700 (PDT)

Bug or missing feature: Prevent font-lock from changing text
properties on text that has property `font-lock-ignore'.  See

Patch attached.  ChangeLog entry:

2014-08-30 Drew Adams  <address@hidden>
        * 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)
        Use put-text-property-unless-ignore, not put-text-property.

In GNU Emacs (i686-pc-mingw32)
 of 2014-08-15 on LEG570
Bzr revision: 117706 address@hidden
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

Attachment: font-lock-2014-08-30.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]