From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#4920: 23.1; (check-parens) problem with bash script case items unbalanced close paren Date: Sun, 10 Jul 2016 08:14:15 -0400 Message-ID: <87mvlpheqw.fsf@users.sourceforge.net> References: <87hbsxgjfe.fsf@stupidchicken.com> <8737nlc4td.fsf@users.sourceforge.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468152930 12744 80.91.229.3 (10 Jul 2016 12:15:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 12:15:30 +0000 (UTC) Cc: 4920@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 14:15:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bMDdk-0000SI-NV for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 14:15:17 +0200 Original-Received: from localhost ([::1]:54492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDdj-00018H-VW for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 08:15:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDda-00014e-H7 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 08:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMDdW-0006CU-94 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 08:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDdW-0006CQ-4v for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 08:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMDdV-0003ag-Sz for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 08:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 12:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4920 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 4920-submit@debbugs.gnu.org id=B4920.146815286513738 (code B ref 4920); Sun, 10 Jul 2016 12:15:01 +0000 Original-Received: (at 4920) by debbugs.gnu.org; 10 Jul 2016 12:14:25 +0000 Original-Received: from localhost ([127.0.0.1]:44652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMDcu-0003ZW-Qh for submit@debbugs.gnu.org; Sun, 10 Jul 2016 08:14:24 -0400 Original-Received: from mail-io0-f182.google.com ([209.85.223.182]:35720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMDct-0003ZK-FW for 4920@debbugs.gnu.org; Sun, 10 Jul 2016 08:14:23 -0400 Original-Received: by mail-io0-f182.google.com with SMTP id m101so2047315ioi.2 for <4920@debbugs.gnu.org>; Sun, 10 Jul 2016 05:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ZoXKXj1qJpLmhr7Al9HdJZGL2y0f38qN7oaAjte7y5Y=; b=YBNqyrRsyKOG8Ai6EbCDJmpvroumhd484P/YGWgECSNbBUDR6ABiV5xCyDWgaXg7Hz IP4oSBg8NY80Sa1H8qDYyb56FG/zVuz0/89DkcizA7l4mXZAxq9FlYRd7J/qVGincfvD GQXJ/l9VmP4fJtSuIYKxiZ5Nar/7XIpj6VjSTBZ6XnTQ5La33bX1freIZNQwF16+aQWN fzXvcGtqkDtF82SOdLFMrDC0dXyQD7WWoB3oGE81bt95YsBDBUZIEJoyg1L2tA05+oMk KpW7DgdQhZaql4Kv12Bm3nmkYjxvUl3cPD2u5/W8ZGk6xJecBqUpkUWr4fxWNmEnwmEe Wmfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=ZoXKXj1qJpLmhr7Al9HdJZGL2y0f38qN7oaAjte7y5Y=; b=NyhZT6sJxX40OCGQsTENEX0zx9sulBDBjPUOjPvULf1VECJQHxjDcev6fGrOw1+38Q yz/1ailtYOGPc+juY4lf6TDfKcpAXUMOY2CUHPhrhIMR3zo5CE27jzjq5j+58vRxGmm8 r5CFkMvLag+EjReZO6axPIuz0+s3/1j/dhO1ANSB1NiP067MmVKHAAMS7b6SDC09l+NF LjMeb/KWemyf/dO5rXxN3a87w6e0mNZTmzN7qOzXNekuY2SdABSdGW7kMV8G7V9/RgAy hNNRwxYfxcghJhJCBwYdz6DsqBzw0zbw9up15+9qfc3Bc0buFLx8jVWxdWmW2ViXcfxo j32w== X-Gm-Message-State: ALyK8tImHPhDDTl3ED3rXfj96tp3NY44jARX35xvzAmBuLb2mUxB5dQnQUtcBbtLgtbU2Q== X-Received: by 10.107.21.66 with SMTP id 63mr14892568iov.59.1468152858028; Sun, 10 Jul 2016 05:14:18 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id v77sm5418911ita.12.2016.07.10.05.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2016 05:14:17 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sat, 09 Jul 2016 22:11:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120741 Archived-At: Stefan Monnier writes: >>> FWIW, the new support in Emacs-25 for calling syntax-propertize directly >>> from forward-parsing operations should make the above unnecessary (tho >>> I must admit I haven't tested this). >> The test I mentioned above still fails on Emacs-25. Where is >> syntax-propertize supposed to be called from? > > Things like forward-sexp, parse-partial-sexp, scan-sexps, ... Oh I see, but it's disabled by default, that's why my the test was still failing. Doing emacs -Q bug-4920-check-parens.sh --eval '(setq parse-sexp-lookup-properties t)' -f check-parens succeeds. Should this variable be set by sh-mode along with the other syntax propertize settings?