From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4920: 23.1; (check-parens) problem with bash script case items unbalanced close paren Date: Sat, 14 Nov 2009 13:11:10 -0500 Message-ID: References: <87hbsxgjfe.fsf@stupidchicken.com> Reply-To: Stefan Monnier , 4920@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258223264 8261 80.91.229.12 (14 Nov 2009 18:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2009 18:27:44 +0000 (UTC) Cc: 4920@emacsbugs.donarmstrong.com, Jeremy Hall To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 14 19:27:37 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N9NLQ-0002I5-6c for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 19:27:32 +0100 Original-Received: from localhost ([127.0.0.1]:38540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9NLP-0006uC-Dq for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 13:27:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9NLL-0006tn-15 for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 13:27:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9NLG-0006tB-K4 for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 13:27:26 -0500 Original-Received: from [199.232.76.173] (port=36975 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9NLG-0006t8-Ff for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 13:27:22 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35792) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N9NLF-00063Z-TQ for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 13:27:22 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAEIRJg5021616; Sat, 14 Nov 2009 10:27:20 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAEIK5wS020873; Sat, 14 Nov 2009 10:20:05 -0800 Resent-Date: Sat, 14 Nov 2009 10:20:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 14 Nov 2009 18:20:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4920 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4920-submit@emacsbugs.donarmstrong.com id=B4920.125822227820246 (code B ref 4920); Sat, 14 Nov 2009 18:20:05 +0000 Original-Received: (at 4920) by emacsbugs.donarmstrong.com; 14 Nov 2009 18:11:18 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAEIBGjH020221 for <4920@emacsbugs.donarmstrong.com>; Sat, 14 Nov 2009 10:11:17 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArcEAL6B/kpMCqHJ/2dsb2JhbACBTdFKhDwEiT4 X-IronPort-AV: E=Sophos;i="4.44,742,1249272000"; d="scan'208";a="49422680" Original-Received: from 76-10-161-201.dsl.teksavvy.com (HELO pastel.home) ([76.10.161.201]) by ironport2-out.pppoe.ca with ESMTP; 14 Nov 2009 13:11:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 23C49F2149; Sat, 14 Nov 2009 13:11:10 -0500 (EST) In-Reply-To: <87hbsxgjfe.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 14 Nov 2009 11:28:21 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 14 Nov 2009 13:27:26 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32611 Archived-At: >> Running (check-parens) fails on a bash script with case statements in >> because of the unmatched close ")". Would it be possible to fix this, >> or tell me how to work around it? > I can't reproduce this: `M-x check-parens RET' on the following file > signals no error. Please provice a more detailed bug report. > #!/bin/sh > case "$SYSNAME" in > Darwin) > ;; > Linux) Those parentheses get a syntax-table property applied by font-lock-syntactic-keywords, which means that the behavior will be (hopefully) correct for the visible part of the text, and maybe for all the text before that, but not necessarily for the text after window-end. Stefan