From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: font-lock and shell scripts: Raises redisplay errors in highlight pattern: Date: Thu, 13 Jul 2006 11:30:29 -0400 Message-ID: References: <17580.34248.381774.421717@localhost.localdomain> <17581.56473.552614.576371@localhost.localdomain> <17589.50995.201436.401539@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152804675 23211 80.91.229.2 (13 Jul 2006 15:31:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2006 15:31:15 +0000 (UTC) Cc: storm@cua.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 13 17:31:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G139P-00067K-5j for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2006 17:30:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G139O-0008Oe-Gm for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2006 11:30:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G139B-0008Mk-4S for emacs-devel@gnu.org; Thu, 13 Jul 2006 11:30:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1399-0008M5-N9 for emacs-devel@gnu.org; Thu, 13 Jul 2006 11:30:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1399-0008M2-Fw for emacs-devel@gnu.org; Thu, 13 Jul 2006 11:30:35 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G13Aw-0007NL-Gz for emacs-devel@gnu.org; Thu, 13 Jul 2006 11:32:26 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 0C6F52CF615; Thu, 13 Jul 2006 11:30:35 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 08323445C; Thu, 13 Jul 2006 11:30:30 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id E3D546C8D4; Thu, 13 Jul 2006 11:30:29 -0400 (EDT) Original-To: raman@users.sf.net In-Reply-To: <17589.50995.201436.401539@localhost.localdomain> (T. V. Raman's message of "Wed, 12 Jul 2006 21:08:19 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:56976 Archived-At: > Error during redisplay: (error No match 6 in highlight (6 > font-lock-builtin-face)) Thanks. Does the patch below fix your problem? Stefan --- sh-script.el 04 Jul 2006 11:23:07 -0400 1.181 +++ sh-script.el 13 Jul 2006 11:28:47 -0400 @@ -1554,7 +1554,7 @@ (regexp-opt (sh-feature sh-builtins) t) "\\>") (2 font-lock-keyword-face nil t) - (6 font-lock-builtin-face)) + (4 font-lock-builtin-face)) ,@(sh-feature sh-font-lock-keywords-var-2))) (,(concat keywords "\\)\\>") 2 font-lock-keyword-face)