From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#25861: 25.1.91; error from js-mode indentation function Date: Fri, 24 Feb 2017 18:37:22 +0200 Message-ID: <6683c18f-0900-731c-acf3-b1bf7eaf7e47@yandex.ru> References: <871sunwrru.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1487954294 9843 195.159.176.226 (24 Feb 2017 16:38:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 16:38:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 To: Tom Tromey , 25861@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 17:38:10 2017 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 1chIsf-0001qk-2z for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 17:38:05 +0100 Original-Received: from localhost ([::1]:38401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chIsl-0002LL-0e for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 11:38:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chIsf-0002L6-MM for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:38:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chIsd-0008Jb-4M for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:38:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chIsd-0008JQ-0W for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chIsc-0006r1-Ix for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25861 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25861-submit@debbugs.gnu.org id=B25861.148795425326312 (code B ref 25861); Fri, 24 Feb 2017 16:38:02 +0000 Original-Received: (at 25861) by debbugs.gnu.org; 24 Feb 2017 16:37:33 +0000 Original-Received: from localhost ([127.0.0.1]:54878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chIs8-0006qK-UO for submit@debbugs.gnu.org; Fri, 24 Feb 2017 11:37:33 -0500 Original-Received: from mail-wm0-f66.google.com ([74.125.82.66]:34193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chIs6-0006q6-Ry for 25861@debbugs.gnu.org; Fri, 24 Feb 2017 11:37:31 -0500 Original-Received: by mail-wm0-f66.google.com with SMTP id m70so3801328wma.1 for <25861@debbugs.gnu.org>; Fri, 24 Feb 2017 08:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=a0QH/aj27vI2FlULfCV+m0fuf5Ul0CGhRctTZOoLE6I=; b=q5EPdS2pEHGpf7KZnWiBr8dgyZ3aOKLXI25OXIIfXr2gCatn9ex6EuMYTWIOMox4ZX SIQCuPVmMrtDWNHqCjWeVi/XSgdEzYIu+eBwQa9UIMwxbdB8TnLFIfGBP7MQWYn1Vf3f bHjHtdgXhzBP1Y5PfB83HfkmR+CjO2g+nWxmI4sahOgKpOqFa1eTT/7KVGkRy1ErhBZ3 N7IX27nfe5ND/B8cv5o/TbBDCFecFaevghSBnATJm5T2iJomskd0Z99p4lSGsHZr70p9 9jjr5RwHufOIOa3HSzqtOUkR+aYDQCE4Rfz1lczHd0ALBX1EwQ55Gm3ehBo13mvsh1vH sLrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a0QH/aj27vI2FlULfCV+m0fuf5Ul0CGhRctTZOoLE6I=; b=ijEAcx6LTqCkrdyyEgq4cMabo320R/kI76EvVwdH+ACCtQluO++LDyBCSGhsvXB0s6 RT7WRPdfCD3KXUHzB4802LD26ZWv2X3A/uJT8RpBVgT565+2Pcj88NZKsUcHbZnvnYs3 lHMhJZ70FVUBx7lXzdLl1Gl5rLKc4tLva530lNql5t6fvbko4hE5/6r9Lsx5PG77dRh5 dpBgy2svIPEYIQuKIc1CIN+TDOYIELFl1DLlsX24ADf4E6SzfdcGPEbg34vgUoz7p45G 0yH90icq2tgG89SOt5ZBr4goPk2kvgFuL+6ulP5ICEFDRxri+eKjgyZlcLFdOXhMf7vY sZhg== X-Gm-Message-State: AMke39ni0UdQCsQEBtFs2vj0ZxV5w2S+K24T6AO2dAb4Axg4Fn8iVK/vH0nUS+TDqAyQgg== X-Received: by 10.28.84.88 with SMTP id p24mr3364281wmi.52.1487954244671; Fri, 24 Feb 2017 08:37:24 -0800 (PST) Original-Received: from [192.168.0.133] ([212.50.99.193]) by smtp.googlemail.com with ESMTPSA id 17sm10981650wru.16.2017.02.24.08.37.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Feb 2017 08:37:23 -0800 (PST) In-Reply-To: <871sunwrru.fsf@tromey.com> Content-Language: en-US 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:129747 Archived-At: On 24.02.2017 17:08, Tom Tromey wrote: > While working on some JS code I noticed that when writing a certain > file, I got a "scan-error" when I typed TAB. I tracked this down to a > buglet in js--indent-in-array-comp. > > This patch fixes the problem by wrapping the call to forward-sexp there > in a condition-case. I've added a new test case as well. Looks good, thanks. I guess we didn't notice it until now because most people use some kind of auto-pairing solution, like electric-pair-mode.