From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Ulrich Mueller <ulm@gentoo.org>, emacs-devel@gnu.org
Subject: Re: Regression in 22.2 jit-lock?
Date: Sat, 29 Mar 2008 00:16:12 -0400 [thread overview]
Message-ID: <jwv63v69nff.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87lk42a4um.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 28 Mar 2008 17:58:09 -0400")
>> 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 <monnier@iro.umontreal.ca>
> * 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
next prev parent reply other threads:[~2008-03-29 4:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 18:06 Regression in 22.2 jit-lock? Ulrich Mueller
2008-03-28 21:58 ` Chong Yidong
2008-03-29 4:16 ` Stefan Monnier [this message]
2008-03-29 7:12 ` Ulrich Mueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv63v69nff.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=ulm@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).