[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regression in 22.2 jit-lock?
From: |
Stefan Monnier |
Subject: |
Re: Regression in 22.2 jit-lock? |
Date: |
Sat, 29 Mar 2008 00:16:12 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> I've prepared a minimal example to reproduce the different behaviour:
>>
>> 1. Open attached file test.sh with "emacs -Q"
>> 2. Remove one of the double quotes inside function foo()
>>
>> While in 22.1 fontification of function bar() is delayed by 0.5
>> seconds, namely the default value of jit-lock-context-time, it is
>> immediate in 22.2.
>>
>> #!/bin/bash
>>
>> foo() {
>> echo "it's a test"
>> }
>>
>> bar() {
>> cat <<-EOF >baz.el
>> ;;; baz.el
>> (require 'quux)
>> EOF
>> }
> Thanks for spotting this. The bug was introduced by the following
> change. Stefan?
> 2007-07-23 Stefan Monnier <address@hidden>
> * progmodes/sh-script.el (sh-font-lock-backslash-quote)
> (sh-font-lock-flush-syntax-ppss-cache): New funs.
> (sh-font-lock-syntactic-keywords): Use them to distinguish the
> different possible cases for \'.
> (sh-font-lock-paren): Mark the relevant text with font-lock-multiline.
Hmm... so the "relevant text" marked with font-lock-multiline is so
large that it causes sluggishness... Not sure what to do about it,
Stefan