From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24838: 26.0.50; Parse error in certain shell scripts Date: Sat, 10 Feb 2018 09:01:39 -0500 Message-ID: <87y3k1aqpo.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518271343 27022 195.159.176.226 (10 Feb 2018 14:02:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2018 14:02:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 24838@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 15:02:19 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekViw-0004os-JJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 15:01:50 +0100 Original-Received: from localhost ([::1]:45692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekVky-0004pu-A2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 09:03:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekVjE-0003hE-WA for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 09:02:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekVjA-0000OR-Df for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 09:02:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56573) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekVjA-0000OI-AQ for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 09:02:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekVj8-00055p-1W for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 09:02:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2018 14:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24838 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24838-submit@debbugs.gnu.org id=B24838.151827130919050 (code B ref 24838); Sat, 10 Feb 2018 14:02:01 +0000 Original-Received: (at 24838) by debbugs.gnu.org; 10 Feb 2018 14:01:49 +0000 Original-Received: from localhost ([127.0.0.1]:36237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekViu-0004wi-BK for submit@debbugs.gnu.org; Sat, 10 Feb 2018 09:01:48 -0500 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:51157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekVit-0004r3-3q; Sat, 10 Feb 2018 09:01:47 -0500 Original-Received: by mail-it0-f44.google.com with SMTP id x128so1814184ite.0; Sat, 10 Feb 2018 06:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/4uQa1MFK6310T5zztrVSUfTQgUg/NtZYdLZuJSEOBo=; b=tHMNX0esKrIiCYJ88jCXjt5v02oeo9UuKoQS2zYzW11KbNe1TfVqVg8B6ifffGvwK3 OVtocbX4JBaSUfeWr+839ik1fBKJqciWqepo+VN9lH0BZgAcYExVYQxQZH4gDiRwhmqD glOYa865dpE98CVerwdbjGlIZ3i9LPqKrmjsE7k5mCKrDwUDr2jCqgti8Ph6GyaGiBP9 kUXUHhQlDHf5npr/LkQc8goDN+1pKdy87YO4EPFblzdYANeLFYsjH4uRKXafxkEdJrvp 9msFBx3Ia9Q0R/WKqn6PYuXJSBioRsJ8fHgGSM4ngSfXkv8Jq8ufLmQJm918GgzzcQKF ix3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=/4uQa1MFK6310T5zztrVSUfTQgUg/NtZYdLZuJSEOBo=; b=L5aiKEiBFzDv9ilO1TDQvxyddrKadYDYCKs2O8FAmySaSccQ+AvDRWxksNLc/lw5X4 SpQ/a20hxgBhLJtqTnFoHs1tulv1XGOz5vUlGsM1Nngf8uxbTDDGXHKmO1dp4fxO9jq1 /jc3JljQdxHrTHW+k4tQ+jpKAw+U5HCeDooARUsR1QTUMgd6kYkbT5EUKMQbIyp1DiRk JisJ9Q2OxClxCuyOyWmPkmmc+vF9ohQPCNP1Ujeojv2r4iHOM02iZMtQyeeGDb4ayT5A Lr3WPbyN1C2dVr19KHYnV8gGQgHIB27L6LsbIn1h0eFgOvahygHimyFAONecMGs8y9+F 5zOg== X-Gm-Message-State: APf1xPBTKrAH1Ckq44KpoPqYvEiemikqUaIsM00RwIHXAPpBMQohDIoE ycY0wiRTOHWn1AJKozEBLKpIIA== X-Google-Smtp-Source: AH8x225YSIxSD2IV2ecl/rOVwq5NlS1GH6q3dhoovGLsyo9xjF3Yoc+nWSAwNmu4b7KY8mnC5aAk0A== X-Received: by 10.36.230.195 with SMTP id e186mr1781789ith.147.1518271301333; Sat, 10 Feb 2018 06:01:41 -0800 (PST) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e7sm2278369ita.17.2018.02.10.06.01.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Feb 2018 06:01:40 -0800 (PST) In-Reply-To: (Philipp Stephani's message of "Mon, 31 Oct 2016 16:23:16 +0100") 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:143094 Archived-At: tags 24838 fixed close 24838 27.1 quit Philipp Stephani writes: > Visit the following file in shell-script-mode: > > #!/bin/bash > > a=" > (" > > if b; then > c > else > d > # ' > fi > > Now move point inside 'fi', and run M-x show-paren-mode. You'll notice > that the 'fi' is marked as syntax error, and 'if' isn't highlighted, > indicating that the construct wasn't parsed correctly. > Now run C-c ?. This will cause an error "smie-indent-keyword: Wrong > type argument: number-or-marker-p, noindent". This is fixed in master. [1: 14b9558752]: 2017-12-12 23:03:00 -0500 * src/syntax.c (find_defun_start): Use syntax-ppss https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=14b95587520959c5b54356547a0a69932a9bb480