From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ryan Olson Newsgroups: gmane.emacs.bugs Subject: bug#46713: 27.1; Variable binding depth exceeds max-specpdl-size in js-mode with js-indent-level 2 and indent-tabs-mode nil on new line Date: Tue, 23 Feb 2021 09:31:53 -0700 Message-ID: References: <871rd7enmz.fsf@gnus.org> <87ft1mdcei.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000072807905bc037543" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32258"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46713@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 23 17:33:49 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEadB-0008Gz-DP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 17:33:49 +0100 Original-Received: from localhost ([::1]:59954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEadA-0007B1-FE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 11:33:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEacQ-0006Yr-U5 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEacQ-0008Df-7p for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEacQ-0006Gb-3e for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Olson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2021 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46713 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 46713-submit@debbugs.gnu.org id=B46713.161409793324032 (code B ref 46713); Tue, 23 Feb 2021 16:33:02 +0000 Original-Received: (at 46713) by debbugs.gnu.org; 23 Feb 2021 16:32:13 +0000 Original-Received: from localhost ([127.0.0.1]:60325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEabc-0006FX-Ib for submit@debbugs.gnu.org; Tue, 23 Feb 2021 11:32:12 -0500 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:38099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEabb-0006FJ-1D for 46713@debbugs.gnu.org; Tue, 23 Feb 2021 11:32:11 -0500 Original-Received: by mail-ed1-f44.google.com with SMTP id s11so26590210edd.5 for <46713@debbugs.gnu.org>; Tue, 23 Feb 2021 08:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ict6KoReHa/S0On7R3RnB+AXwv9UFUpolp/1sWNTFfA=; b=F1Dm4ruBl42M/NwHHyaXDGS4x3+xTHpbYTOzFTg0RsTa4x+GS9iTNHjBvYZFj0Pt1V Qrtjt3RKTYWNYwGFcqawNcF40PWg0+GxivrCro56azGRPhsKN2rpA1/t5t/iG+Iv8Cby j6m3UvPIlxpbiPrdEfNg4KRdQgUvuZRqvxAOcSMR0wulKuGXZ3Z7Qpkhk737p2VyYkOr 3RgYPhrvc6+VffLpnHfx4Wm51knad5ddALtBmnG/HHJ9dqT24wHFhn3FqWQ++5IvU8ov 2KChcUlV9O8+6bELfcQ77hCsVNmloIXYfUYALYsIJlYqvNQzaaW2G9JOt/0uCpx6XnHn P6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ict6KoReHa/S0On7R3RnB+AXwv9UFUpolp/1sWNTFfA=; b=dKuXECc4dqhMIGfl7/OwCDVNd8D75XppZ4eHG6V5vJ/K1UN9yYmfWfnLiWTWvpQ7IH tANhgsJ6Cxoc869cx/9XFM609s4zmSl9HSnbucIkPrKhswobnDp2Ln09a00oUOiUNCR6 M/LFiyOvHRGvS1FXU2wTngkvyrwYGmuFedI59Fg3lWk5deKiQkkL3YoSeJaZFMVdQ7ZM IejKTxNmMP+2lovT+KygXVacftJgRywyO659lETF0jkAPbjLxm53652K636KzVxhKbCc X5IUUrzjUvLKvake9LlK0TxhRlMnvi3kwruUpvwVpWrHPis4/LPfrkUoYCzfMDjQ8ICT iZaA== X-Gm-Message-State: AOAM5339NJo/zFYfSZRg/BzVK3XV9J+MOebJiDEZZ167rfNx0IcfOZzE VQdfk695bxP0vQCjQydEOo2PBYczFjKieitn9UBUSB7xBPY= X-Google-Smtp-Source: ABdhPJx1sdtWlrjdzNPVnAt8XU8l0bKLrYPIKj/JeJCX3VkMTBQuKG4opVckqiNqcqoLF/noYJ4QPwGC2yZKqqhva28= X-Received: by 2002:aa7:cb0d:: with SMTP id s13mr28504240edt.221.1614097924914; Tue, 23 Feb 2021 08:32:04 -0800 (PST) In-Reply-To: <87ft1mdcei.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200668 Archived-At: --00000000000072807905bc037543 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It was with something like this that I saw the error I reported. I=E2=80=99= m not sure how to reproduce that. I guess we can instead fix this one (that _is_ reproducible)? On Tue, Feb 23, 2021 at 8:36 AM Lars Ingebrigtsen wrote: > Ryan Olson writes: > > > Repro steps: > > 1. Open foo.js with emacs -Q --eval '(setq-default js-indent-level 2 > > indent-tabs-mode nil)' foo.js > > 2. Go to line 61 > > 3. Delete brace at end of that line > > 4. Save > > 5. Add brace back > > 6. Press RET > > 7. Errors happen > > Thanks for the clear recipe. With it, I'm also seeing errors (in both > Emacs 27 and 28): > > Debugger entered--Lisp error: (error "internal--syntax-propertize did not > move syntax-pr...") > backward-prefix-chars() > back-to-indentation() > current-left-margin() > move-to-left-margin(nil t) > #f(compiled-function () #)() > self-insert-command(1) > newline(nil 1) > funcall-interactively(newline nil 1) > call-interactively(newline nil nil) > > But I'm not seeing the "binding depth" one. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --=20 Sent from my iPhone --00000000000072807905bc037543 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It was with something like this that I saw the error I re= ported. I=E2=80=99m not sure how to reproduce that.
=
I guess we can instead fix this one (that _is_ = reproducible)?

On Tue, Feb 23, 2021 at 8:36 AM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Ryan Olson <ryan.olson.x@gmail.com> writes:

> Repro steps:
> 1. Open foo.js with emacs -Q --eval '(setq-default js-indent-level= 2
> indent-tabs-mode nil)' foo.js
> 2. Go to line 61
> 3. Delete brace at end of that line
> 4. Save
> 5. Add brace back
> 6. Press RET
> 7. Errors happen

Thanks for the clear recipe.=C2=A0 With it, I'm also seeing errors (in = both
Emacs 27 and 28):

Debugger entered--Lisp error: (error "internal--syntax-propertize did = not move syntax-pr...")
=C2=A0 backward-prefix-chars()
=C2=A0 back-to-indentation()
=C2=A0 current-left-margin()
=C2=A0 move-to-left-margin(nil t)
=C2=A0 #f(compiled-function () #<bytecode 0x155c01f42651>)()
=C2=A0 self-insert-command(1)
=C2=A0 newline(nil 1)
=C2=A0 funcall-interactively(newline nil 1)
=C2=A0 call-interactively(newline nil nil)

But I'm not seeing the "binding depth" one.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--
Sent from my iPhone
--00000000000072807905bc037543--