From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Regression in 22.2 jit-lock? Date: Fri, 28 Mar 2008 17:58:09 -0400 Message-ID: <87lk42a4um.fsf@stupidchicken.com> References: <18413.13239.102103.522313@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206741767 7406 80.91.229.12 (28 Mar 2008 22:02:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2008 22:02:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 28 23:03:17 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfMfM-0002nD-95 for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2008 23:03:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfMek-0005Bw-TV for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2008 18:02:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfMdb-0004ff-7x for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfMdY-0004el-St for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfMdY-0004ee-M5 for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:24 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfMdY-00056N-CP for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:24 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id A92294E3F7; Fri, 28 Mar 2008 17:58:09 -0400 (EDT) In-Reply-To: <18413.13239.102103.522313@a1ihome1.kph.uni-mainz.de> (Ulrich Mueller's message of "Fri, 28 Mar 2008 19:06:47 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93720 Archived-At: Ulrich Mueller writes: > 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 * 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.