Received: (at 46713) by debbugs.gnu.org; 26 Jun 2022 13:00:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 26 09:00:22 2022 Received: from localhost ([127.0.0.1]:46915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o5RsE-0000wL-4k for submit <at> debbugs.gnu.org; Sun, 26 Jun 2022 09:00:22 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o5RsC-0000oI-7U for 46713 <at> debbugs.gnu.org; Sun, 26 Jun 2022 09:00:20 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5E41780699; Sun, 26 Jun 2022 09:00:14 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C041F804BD; Sun, 26 Jun 2022 09:00:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656248412; bh=fGAM/GUFLaH/Z+/oPog5G7dkr59/RR3zJ9w+vttfBsA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bbqgaIykh0UVinusQ1KAAjLDHkXt9boRYfkl78+/u0DbJWSHDDmgKMkbHVtjQFxIL GyMTSBNr+f9mgo4Ckx1DVHm1epAdqzuDnz3cL2xXtmzYaH/kDPHLkyTYAFINrD8s6q oTG48qSyiJn96VTAvKQ0vq65aT/hWzqO2jKdHdWe/bVWy3tZFhya9IhWy3eSna0uy7 88UDAgxo6f/Rqphv3tKC4axvkLMHPkj3ymeppYX6P6L99C5X2lJZm28mBXXTo1E+l4 4tj1DLtGfUjbPHdpVVCSUoxzFhK9WvJk5gcq0es1cA7qcN3HYME7Jl9VgOpMl7kOuj IUAsdu8rIl3NQ== Received: from alfajor (165.63.10.93.rev.sfr.net [93.10.63.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0F3F2120246; Sun, 26 Jun 2022 09:00:11 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: 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 Message-ID: <jwv35frbmwk.fsf-monnier+emacs@HIDDEN> References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> <87ft1mdcei.fsf@HIDDEN> <87k09cvjxx.fsf@HIDDEN> <jwvzgi1c82o.fsf-monnier+emacs@HIDDEN> <878rpkkj5p.fsf@HIDDEN> Date: Sun, 26 Jun 2022 09:00:09 -0400 In-Reply-To: <878rpkkj5p.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat, 25 Jun 2022 14:43:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.174 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46713 Cc: Ryan Olson <ryan.olson.x@HIDDEN>, 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > The fix on master sounds good, but we're just gearing up for 28.2 this > weekend, so while the change looks innocuous, I'd rather hold off until > after 28.2. OK, pushed to `master`, Stefan
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 25 Jun 2022 12:43:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 25 08:43:59 2022 Received: from localhost ([127.0.0.1]:44362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o558p-0001H9-Cn for submit <at> debbugs.gnu.org; Sat, 25 Jun 2022 08:43:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1o558m-0001Gu-Vr for 46713 <at> debbugs.gnu.org; Sat, 25 Jun 2022 08:43:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iZebN7hSfjt0Q/Aj+8i6feM5pwNmAKTLy3s/DQYXppw=; b=mGqsDouYzfrzTAIPggjTpbN2d0 f22Bx9z1VNHtcU8qCQZJNMq7va1JpkJ7APUSsRyNnl4DM4T8T6ZtoPAanSbI/MkJ2i+67riuv7K9f i++EaNQi6ZrS4dhLeM1a2GfJnhOv5/ArRNp1zT3kqUVEmB21Bw3rNU6KR+bSuPWeJ4EM=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o558c-0005qV-O5; Sat, 25 Jun 2022 14:43:49 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Stefan Monnier <monnier@HIDDEN> Subject: Re: 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 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> <87ft1mdcei.fsf@HIDDEN> <87k09cvjxx.fsf@HIDDEN> <jwvzgi1c82o.fsf-monnier+emacs@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEX09Nb7++Le3sFj Y1SKiXUGBgK4uJ8tLSVHRjt/f23///+3Y8xXAAAAAWJLR0QKaND0VgAAAAd0SU1FB+YGGQwLGrkU Zl8AAAGvSURBVDjLdZRNT8JAEIZnkFSOu0B65kOCV4OaeKPCL6AMcFSM0SMayxk1Gn62M7Nttwvy HnbD+7DztW0BRAbBehlr0aoPXUR7IPVbyZGvAAcMsOqhLgZvkiCHZgGIujElYNdiXDyKO5l20QCc fwwpwdcF/8tkC15aRBsQQERJnxhAk+bGIhvvknrIYEQMAPsMoJ3lQE6w5gbrmawD/jELAPsChgrQ gzijCvAn0h86AGf7PZXi5CVg/ZwCgyqQ0DNjxK+1SrBwYAduuv3CTztazBYU4EV54M2N6ApkViCN 5dpAAViR90NQd97yCIBLPb8UYKoAXl0HvKX3Wu4OKmTeNC8cEALw4nqOeetAw4M8FLQPQJ8CwOXv quWmqIAf1nP61Ak28ua2Cu57vWfadqqAftvlBN4DQNd++iHwkhvsMUjdHL9pNWJNp9MHB1ZrBR8x bSovR6+xeqhlenuRTrdUfQwKrmpxCPgW3YnuwQmpzOWI+LHxpjQJRVXLr3+BxDMBcKGk8xKg2xTc xh4UXwYBvxDprQRgMhrd8vZ0N84j5Z8MyMfA73LRG8IJ2RM+2j+QnMAKWUIZ/wAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMi0wNi0yNVQxMjoxMToyNiswMDowMOOfOzQAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjItMDYtMjVUMTI6MTE6MjYrMDA6MDCSwoOIAAAAAElFTkSuQmCC X-Now-Playing: FARWARMTH's _Planet Mu 25_: "Shadows In The Air" Date: Sat, 25 Jun 2022 14:43:46 +0200 In-Reply-To: <jwvzgi1c82o.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message of "Sat, 25 Jun 2022 08:03:04 -0400") Message-ID: <878rpkkj5p.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier <monnier@HIDDEN> writes: > I'm thinking of installing the patch below on `master`. We could > install a simpler patch on `emacs-28` which just swaps the two vars in > the above `let` (and changes it into a `let*`). > > WDYT? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46713 Cc: Ryan Olson <ryan.olson.x@HIDDEN>, 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Stefan Monnier <monnier@HIDDEN> writes: > I'm thinking of installing the patch below on `master`. We could > install a simpler patch on `emacs-28` which just swaps the two vars in > the above `let` (and changes it into a `let*`). > > WDYT? The fix on master sounds good, but we're just gearing up for 28.2 this weekend, so while the change looks innocuous, I'd rather hold off until after 28.2. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 25 Jun 2022 12:03:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 25 08:03:23 2022 Received: from localhost ([127.0.0.1]:44302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o54VW-0006Xz-MS for submit <at> debbugs.gnu.org; Sat, 25 Jun 2022 08:03:23 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:18441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1o54VS-0006Xj-N3 for 46713 <at> debbugs.gnu.org; Sat, 25 Jun 2022 08:03:21 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0A0DE100241; Sat, 25 Jun 2022 08:03:13 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C0C26100134; Sat, 25 Jun 2022 08:03:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656158590; bh=IgG4en8d4eJ1wVcBVCg9N/I2q4gmKL7l2dPihCWovUE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ngsSI3fNiva4KkFznkqpZJkxyJofqFP8Unj68rRfAM5tqgh5YqcuzxjVO6Q64LmGy DhmN/Q5xdUBYcLcPXwPMRyMa4tFCwPGh0dx0xiowiW98NfCF1Y3kIGc6l2w7K3+NsD IKi0KevKLQYb3krrR31smz4CGloRNQ9+zpbkMUGrgq3D2viS4/EaeAOe7uYced13FH s1TnVRCgy/ez5wxgRdUeuv2Z0ORXjgYQB6uTg8n5LIlgW+HTsW12uYZqffFvPEtITa 3y6RZvLrIRQJO2R6NEpNOb4uarYpjOYTK8DWwUtKFXH18x1UI60rkqPp3/VTP48mRp IOgfXsJMMlMcg== Received: from alfajor (smb-adp03.hotspot.hub-one.net [94.199.126.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DEFB41204E9; Sat, 25 Jun 2022 08:03:09 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: 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 Message-ID: <jwvzgi1c82o.fsf-monnier+emacs@HIDDEN> References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> <87ft1mdcei.fsf@HIDDEN> <87k09cvjxx.fsf@HIDDEN> Date: Sat, 25 Jun 2022 08:03:04 -0400 In-Reply-To: <87k09cvjxx.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun, 19 Jun 2022 15:53:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46713 Cc: Ryan Olson <ryan.olson.x@HIDDEN>, 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Perhaps Stefan knows what's going on here; added to the CCs. [ The recipe works without the js-indent-level and indent-tabs-mode settings. ] I think the crux of the matter is the following: (run-hook-wrapped 'syntax-propertize-extend-region-functions (lambda (f) (let ((new (funcall f start end)) ;; Avoid recursion! (syntax-propertize--done most-positive-fixnum)) (if (or (null new) (and (>= (car new) start) (<= (cdr new) end))) nil Where the binding of `syntax-propertize--done` should be around the call to `f` (apparently I introduced this bug in commit 3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea). But the bug also shows that it's difficult for syntax-propertize-functions to know when they use `syntax-ppss` since it can happen as a side-effect of forward-sexp and hence I'm beginning to think it's not practical to require them to call `syntax-ppss-flush-cache` manually. I'm thinking of installing the patch below on `master`. We could install a simpler patch on `emacs-28` which just swaps the two vars in the above `let` (and changes it into a `let*`). WDYT? Stefan * lisp/emacs-lisp/syntax.el: Rework the handling of nested calls. Nested calls to `syntax-ppss` and `syntax-propertize` can easily happen unexpectedly via ondemand propertizing or `forward-sexp`. Refine the handling of nested calls so we detect them more reliably (e.g. also within `syntax-propertize-extend-region-functions`) and so that the `syntax-ppss` cache is automatically flushed in case it might have been filled with data that's become obsolete since. (syntax-propertize--inhibit-flush): Delete var. (syntax-propertize--in-process-p): New function to replace it. (syntax-ppss-flush-cache): Use it. (syntax-ppss--updated-cache): New var. (syntax-propertize): Make `syntax-propertize--done` binding apply to `syntax-propertize-extend-region-functions` as well, as intended (fixes bug#46713). Use `syntax-ppss--updated-cache` to flush syntax-ppss cache at the end when needed. Don't bind `syntax-propertize--inhibit-flush` any more. (syntax-ppss): Set `syntax-ppss--updated-cache` when applicable. diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index a4d7beade13..36b0c56e953 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el @@ -345,10 +345,16 @@ syntax-propertize-via-font-lock (defvar-local syntax-ppss-table nil "Syntax-table to use during `syntax-ppss', if any.") -(defvar-local syntax-propertize--inhibit-flush nil - "If non-nil, `syntax-ppss-flush-cache' only flushes the ppss cache. -Otherwise it flushes both the ppss cache and the properties -set by `syntax-propertize'") +(defun syntax-propertize--in-process-p () + "Non-nil if we're inside `syntax-propertize'. +This is used to avoid infinite recursion as well as to handle cases where +`syntax-ppss' is called when the final `syntax-table' properties have not +yet been setup, in which case we may end up putting invalid info into the cache. +It's also used so that `syntax-ppss-flush-cache' can be used from within +`syntax-propertize' without ruining the `syntax-table' already set." + (eq syntax-propertize--done most-positive-fixnum)) + +(defvar-local syntax-ppss--updated-cache nil) (defun syntax-propertize (pos) "Ensure that syntax-table properties are set until POS (a buffer point)." @@ -370,21 +376,24 @@ syntax-propertize (with-silent-modifications (with-syntax-table (or syntax-ppss-table (syntax-table)) (make-local-variable 'syntax-propertize--done) ;Just in case! + ;; Make sure we let-bind it only buffer-locally. + (make-local-variable 'syntax-ppss--updated-cache) (let* ((start (max (min syntax-propertize--done (point-max)) (point-min))) (end (max pos (min (point-max) (+ start syntax-propertize-chunk-size)))) (first t) - (repeat t)) + (repeat t) + (syntax-ppss--updated-cache nil)) (while repeat (setq repeat nil) (run-hook-wrapped 'syntax-propertize-extend-region-functions (lambda (f) - (let ((new (funcall f start end)) - ;; Avoid recursion! - (syntax-propertize--done most-positive-fixnum)) + ;; Bind `syntax-propertize--done' to avoid recursion! + (let* ((syntax-propertize--done most-positive-fixnum) + (new (funcall f start end))) (if (or (null new) (and (>= (car new) start) (<= (cdr new) end))) nil @@ -399,20 +408,26 @@ syntax-propertize ;; Flush ppss cache between the original value of `start' and that ;; set above by syntax-propertize-extend-region-functions. (syntax-ppss-flush-cache start) - ;; Move the limit before calling the function, so the function - ;; can use syntax-ppss. + ;; Move the limit before calling the function, so it's + ;; done in case of errors. (setq syntax-propertize--done end) ;; (message "syntax-propertizing from %s to %s" start end) (remove-text-properties start end '(syntax-table nil syntax-multiline nil)) - ;; Make sure we only let-bind it buffer-locally. - (make-local-variable 'syntax-propertize--inhibit-flush) - ;; Let-bind `syntax-propertize--done' to avoid infinite recursion! - (let ((syntax-propertize--done most-positive-fixnum) - ;; Let `syntax-propertize-function' call - ;; `syntax-ppss-flush-cache' without worries. - (syntax-propertize--inhibit-flush t)) - (funcall syntax-propertize-function start end))))))))) + ;; Bind `syntax-propertize--done' to avoid recursion! + (let ((syntax-propertize--done most-positive-fixnum)) + (funcall syntax-propertize-function start end) + (when syntax-ppss--updated-cache + ;; `syntax-ppss' was called and updated the cache while we + ;; were propertizing so we need to flush the part of the + ;; cache that may have been rendered out-of-date by the new + ;; properties. + ;; We used to require syntax-propertize-functions to do that + ;; manually when applicable, but nowadays the `syntax-ppss' + ;; cache can be updated by too many functions, so the author + ;; of the syntax-propertize-function may not be aware it + ;; can happen. + (syntax-ppss-flush-cache start)))))))))) ;;; Link syntax-propertize with syntax.c. @@ -487,10 +502,10 @@ syntax-ppss-narrow-start (define-obsolete-function-alias 'syntax-ppss-after-change-function #'syntax-ppss-flush-cache "27.1") -(defun syntax-ppss-flush-cache (beg &rest ignored) +(defun syntax-ppss-flush-cache (beg &rest _ignored) "Flush the cache of `syntax-ppss' starting at position BEG." ;; Set syntax-propertize to refontify anything past beg. - (unless syntax-propertize--inhibit-flush + (unless (syntax-propertize--in-process-p) (setq syntax-propertize--done (min beg syntax-propertize--done))) ;; Flush invalid cache entries. (dolist (cell (list syntax-ppss-wide syntax-ppss-narrow)) @@ -517,10 +532,16 @@ syntax-ppss-flush-cache (setcdr cell cache))) )) -;;; FIXME: Explain this variable. Currently only its last (5th) slot is used. -;;; Perhaps the other slots should be removed? +;; FIXME: Explain this variable. Currently only its last (5th) slot is used. +;; Perhaps the other slots should be removed? +;; This variable is only used when `syntax-begin-function' is used and +;; will hence be removed together with `syntax-begin-function'. (defvar syntax-ppss-stats - [(0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 . 0) (2 . 2500)]) + [(0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 . 0) (2 . 2500)] + "Statistics about which case is more/less frequent in `syntax-ppss'. +The 5th slot drives the heuristic to use `syntax-begin-function'. +The rest is only useful if you're interested in tweaking the algorithm.") + (defun syntax-ppss-stats () (mapcar (lambda (x) (condition-case nil @@ -658,6 +679,7 @@ syntax-ppss ;; populate the cache so we won't need to do it again soon. (t (syntax-ppss--update-stats 3 pt-min pos) + (setq syntax-ppss--updated-cache t) ;; If `pt-min' is too far, add a few intermediate entries. (while (> (- pos pt-min) (* 2 syntax-ppss-max-span)) @@ -692,6 +714,7 @@ syntax-ppss (push pair ppss-cache) (setcar ppss-cache pair))))))))) + (setq syntax-ppss--updated-cache t) (setq ppss-last (cons pos ppss)) (setcar cell ppss-last) (setcdr cell ppss-cache)
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 19 Jun 2022 13:53:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 19 09:53:29 2022 Received: from localhost ([127.0.0.1]:50979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2vMm-00005Y-MG for submit <at> debbugs.gnu.org; Sun, 19 Jun 2022 09:53:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1o2vMi-0008WN-Vc for 46713 <at> debbugs.gnu.org; Sun, 19 Jun 2022 09:53:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e8OLQuSDuKOaHcK/mNfyXEsHkIAoxAovot6M4ld6sp0=; b=EkkI5stu1RaEYBBBE7hP3zUB4O XWFCyzwMIDeTqOfKv+dvSuN2MuoCiehQBv8xmMFbKdi1G+Q4KX0EahP7U4IF7jSIq7EX29+QD7TfG yCu3rQrnvzrsavPTCIBHjPdjUWl3C/JJ8mL89rJ3Dp8eMVAB89tKTpF4M7Nqx2ou/G1M=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o2vMZ-0006X2-FH; Sun, 19 Jun 2022 15:53:17 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Ryan Olson <ryan.olson.x@HIDDEN> Subject: Re: 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 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> <87ft1mdcei.fsf@HIDDEN> Date: Sun, 19 Jun 2022 15:53:14 +0200 In-Reply-To: <87ft1mdcei.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue, 23 Feb 2021 16:36:21 +0100") Message-ID: <87k09cvjxx.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen <larsi@HIDDEN> writes: > 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...") > backwa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46713 Cc: 46713 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Lars Ingebrigtsen <larsi@HIDDEN> writes: > 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 () #<bytecode 0x155c01f42651>)() > self-insert-command(1) > newline(nil 1) > funcall-interactively(newline nil 1) > call-interactively(newline nil nil) Perhaps Stefan knows what's going on here; added to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 24 Feb 2021 16:47:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 24 11:47:53 2021 Received: from localhost ([127.0.0.1]:35730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lExKL-00059e-NB for submit <at> debbugs.gnu.org; Wed, 24 Feb 2021 11:47:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1lExKK-00059S-3K for 46713 <at> debbugs.gnu.org; Wed, 24 Feb 2021 11:47:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=US0tDGnvoV7gk2UGC1xMsojab3om+fh7ylvZpJ6UUH0=; b=FBNJjntSRqchzpIVy0KiKKNmpE mBgcXOD8ypXoyRiVVMllowF9khwlvWVQjPI5REj16N4wHi2XYfh7hGkNtxNtO7ukuACD0AVANrNjG vLwmazo/jz2LoKwAGKSoSHITZXvrXkf555nnJX6bHvWIrfmF7KZAbxb0Ll4Dv5FkplX0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1lExKB-0005uE-En; Wed, 24 Feb 2021 17:47:46 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Ryan Olson <ryan.olson.x@HIDDEN> Subject: Re: 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 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> <87ft1mdcei.fsf@HIDDEN> <CAKkY5K6TU0icM_RKZnvvSGmhPmJquRsEz3ACZsnxRZugPsfitA@HIDDEN> X-Now-Playing: Moor Mother & billy woods's _BRASS_: "Rapunzal" Date: Wed, 24 Feb 2021 17:47:42 +0100 In-Reply-To: <CAKkY5K6TU0icM_RKZnvvSGmhPmJquRsEz3ACZsnxRZugPsfitA@HIDDEN> (Ryan Olson's message of "Tue, 23 Feb 2021 09:31:53 -0700") Message-ID: <87k0qx76q9.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ryan Olson <ryan.olson.x@HIDDEN> writes: > I guess we can instead fix this one (that _is_ reproducible)? Yup. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46713 Cc: 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Ryan Olson <ryan.olson.x@HIDDEN> writes: > I guess we can instead fix this one (that _is_ reproducible)? Yup. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 23 Feb 2021 16:32:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 11:32:12 2021 Received: from localhost ([127.0.0.1]:60325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lEabc-0006FX-Ib for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:32:12 -0500 Received: from mail-ed1-f44.google.com ([209.85.208.44]:38099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ryan.olson.x@HIDDEN>) id 1lEabb-0006FJ-1D for 46713 <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:32:11 -0500 Received: by mail-ed1-f44.google.com with SMTP id s11so26590210edd.5 for <46713 <at> 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) MIME-Version: 1.0 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> <87ft1mdcei.fsf@HIDDEN> In-Reply-To: <87ft1mdcei.fsf@HIDDEN> From: Ryan Olson <ryan.olson.x@HIDDEN> Date: Tue, 23 Feb 2021 09:31:53 -0700 Message-ID: <CAKkY5K6TU0icM_RKZnvvSGmhPmJquRsEz3ACZsnxRZugPsfitA@HIDDEN> Subject: Re: 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 To: Lars Ingebrigtsen <larsi@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000072807905bc037543" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46713 Cc: 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --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 <larsi@HIDDEN> wrote: > Ryan Olson <ryan.olson.x@HIDDEN> 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 () #<bytecode 0x155c01f42651>)() > 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 <div dir=3D"auto">It was with something like this that I saw the error I re= ported. I=E2=80=99m not sure how to reproduce that.</div><div dir=3D"auto">= <br></div><div dir=3D"auto">I guess we can instead fix this one (that _is_ = reproducible)?</div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cl= ass=3D"gmail_attr">On Tue, Feb 23, 2021 at 8:36 AM Lars Ingebrigtsen <<a= href=3D"mailto:larsi@HIDDEN">larsi@HIDDEN</a>> wrote:<br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c= cc solid;padding-left:1ex">Ryan Olson <<a href=3D"mailto:ryan.olson.x@gm= ail.com" target=3D"_blank">ryan.olson.x@HIDDEN</a>> writes:<br> <br> > Repro steps:<br> > 1. Open foo.js with emacs -Q --eval '(setq-default js-indent-level= 2<br> > indent-tabs-mode nil)' foo.js<br> > 2. Go to line 61<br> > 3. Delete brace at end of that line<br> > 4. Save<br> > 5. Add brace back<br> > 6. Press RET<br> > 7. Errors happen<br> <br> Thanks for the clear recipe.=C2=A0 With it, I'm also seeing errors (in = both<br> Emacs 27 and 28):<br> <br> Debugger entered--Lisp error: (error "internal--syntax-propertize did = not move syntax-pr...")<br> =C2=A0 backward-prefix-chars()<br> =C2=A0 back-to-indentation()<br> =C2=A0 current-left-margin()<br> =C2=A0 move-to-left-margin(nil t)<br> =C2=A0 #f(compiled-function () #<bytecode 0x155c01f42651>)()<br> =C2=A0 self-insert-command(1)<br> =C2=A0 newline(nil 1)<br> =C2=A0 funcall-interactively(newline nil 1)<br> =C2=A0 call-interactively(newline nil nil)<br> <br> But I'm not seeing the "binding depth" one.<br> <br> -- <br> (domestic pets only, the antidote for overdose, milk.)<br> =C2=A0 =C2=A0bloggy blog: <a href=3D"http://lars.ingebrigtsen.no" rel=3D"no= referrer" target=3D"_blank">http://lars.ingebrigtsen.no</a><br> </blockquote></div></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" = data-smartmail=3D"gmail_signature">Sent from my iPhone</div> --00000000000072807905bc037543--
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 23 Feb 2021 15:36:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 10:36:33 2021 Received: from localhost ([127.0.0.1]:60209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lEZjl-0000df-35 for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 10:36:33 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1lEZjj-0000dO-Gu for 46713 <at> debbugs.gnu.org; Tue, 23 Feb 2021 10:36:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZZV1guHmD6JQ7UEwLzM2Wit014m8DtY9AN5ZWaUWpAI=; b=FMGbHWEb/NV8COtBpMD4ntMTp1 cgptT2Mo52yUFqX0QgJDxyZd+ridmOl2CCCOokBwNZZGyNtpZUBVcUKNKjYTXhWJy+PkeHquGObNH K0IpllhMjCsfsUPT4HTVoA6d4Qft7Oo5wbrgM36q0BfclDdtDqTTCEWnUirdJNdlIcqw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1lEZja-0001NO-S6; Tue, 23 Feb 2021 16:36:25 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Ryan Olson <ryan.olson.x@HIDDEN> Subject: Re: 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 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXYy8Opk0o7Lyz/ //+wXL6vAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UCFw8dF0qwsjEAAAF9SURBVCjPPdGxihsxEAbg sQkqXKU6iJ8g7FM4hhwklYtIYFXXHMTzFD5Drkh1CazAqnywEjv/U+afNUSwy36sRr80Evmw2sXd KsbnGEUQCmJEASADMhw+ZIXgqPzT5dEC+kFyQe6CllF2Dk7j00YR/Y8mMhBV0NEmopupAzOBRtTe YQ6v6Z59Fl3wjldgEiRSJuxZFBBVIfNpDXzKNh3hCKZZ8XYYICcLFb8cW3CZnFAU149EhiX8Bo6H O7Jn/HxKkILT0TGfM2S82gnGrZ87EW3ZSnspRLKlGb0TLXl7jAephGJZDU1N7hUcuY/iKfekFMW+ E8ExZql7tvbR8TVJvRxTeeC3fUuS/17V1o5tkfzOUEJnHlsZh1e+pnt7mcGwP2BHfWtagb09C+at VytC4/3Yhluesm1KYw3RYp+3GxPo3mf12+dh5OEu8EVuTxglxhei4nypRuzgl/wltAXKU0KCNceA kTf50DvBvl4JFJ92YBBuazQQPxxvgfgHAVQnvn0W6iEAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEt MDItMjNUMTU6Mjk6MjMrMDA6MDDFYP14AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTIzVDE1 OjI5OjIzKzAwOjAwtD1FxAAAAABJRU5ErkJggg== X-Now-Playing: Jungle Brothers's _Straight Out The Jungle (1)_: "On The Run" Date: Tue, 23 Feb 2021 16:36:21 +0100 In-Reply-To: <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> (Ryan Olson's message of "Mon, 22 Feb 2021 19:03:39 -0700") Message-ID: <87ft1mdcei.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ryan Olson <ryan.olson.x@HIDDEN> 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46713 Cc: 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Ryan Olson <ryan.olson.x@HIDDEN> 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 () #<bytecode 0x155c01f42651>)() 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
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 23 Feb 2021 02:03:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 22 21:03:58 2021 Received: from localhost ([127.0.0.1]:57961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lEN3O-000148-7Q for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 21:03:58 -0500 Received: from mail-ed1-f47.google.com ([209.85.208.47]:40768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ryan.olson.x@HIDDEN>) id 1lEN3M-00013u-1Y for 46713 <at> debbugs.gnu.org; Mon, 22 Feb 2021 21:03:56 -0500 Received: by mail-ed1-f47.google.com with SMTP id q10so24254935edt.7 for <46713 <at> debbugs.gnu.org>; Mon, 22 Feb 2021 18:03:56 -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=fE8SaZPKrqtncWx5xugiD1A0RWV5yCE802i2948BFTw=; b=cpvJbTdtwwpXrHF+eCB7AgaqL/jVQdGmyLoON46YhfC/INwues8dDWIydEWZ1v1I3E TT8O2qz3ctTpED28Q3zkn7ruZsGTusl76IR04gDBIISGj6kgjBMcyFZckm8QjmQs0os+ riwIk1w4Aloa0rnOZI8KHXzffazHfTt3ORFWlaI/ErUPo5shIOfvgvtsOIQVul1PXCmc WZc/Oy+u67HHe40bK8MgFBC0wbxAr6GL7mPLlicp4WnWSlOFk+eBxIoG4wx734M+59Qy +hk8c67gNlepkO4ilbsEiSGwf1CH4NHS8hU+DLBn49GdWkg0Hr8Jp7s43E3rwbCQHeFE FSfA== 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=fE8SaZPKrqtncWx5xugiD1A0RWV5yCE802i2948BFTw=; b=RcS0ucP4kd+9VX4t5NCdEqFdhLhgh5nZ/6DHjORO51SHLqdbQpC1vnpVSTAo+WVcvG w7bRPjPPljQOAyMLee2XnR9xmbmaxnnHDQjuvn0QGwZbXVKbF75zgEuFlIr544QHRO3R VffYGpNNtf2sDspm23YFrMN6X4dVAkAZsOJsDrKBFniVplRrLT7lRpEsi0kS0lOFeHJf fBF7SElkIqbfTzk1NM6IvziJHJcGm7k9VoGUp+UY2HNjSGF7TEcRbjrZBbwdZ/T8Lu6o ZIIOEuQjIs+KVd1W1tjpp1F+uLtNFsHipA97inESM1t06T35gOsvm2xFlYfrJOLqPkAz BTYg== X-Gm-Message-State: AOAM533uM1R+/LjB68hPdGpDTKW+LTCz9uy/D3WOXjo4mPJ83NboClqJ ek4HN8zkY3hZMnoCjLGWJ+sg40E0hd7fvadQMaw= X-Google-Smtp-Source: ABdhPJw9dagxKfgN286fs7FCmfTk5opw2nw8HhuZHOOrk2XGm3c9Tkfz/DZm+kIY0Y4FCujLoorEC1YQpLwAtriYCgw= X-Received: by 2002:aa7:cb0d:: with SMTP id s13mr25145203edt.221.1614045830242; Mon, 22 Feb 2021 18:03:50 -0800 (PST) MIME-Version: 1.0 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> <871rd7enmz.fsf@HIDDEN> In-Reply-To: <871rd7enmz.fsf@HIDDEN> From: Ryan Olson <ryan.olson.x@HIDDEN> Date: Mon, 22 Feb 2021 19:03:39 -0700 Message-ID: <CAKkY5K499zMp30P_qm4jPNGT+h=6_T3HAMO=yQV3Q+vs+CH27w@HIDDEN> Subject: Re: 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 To: Lars Ingebrigtsen <larsi@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46713 Cc: 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Lars, I do. I'm not sure why it takes this, but for my specific js file (with a few things replaced -- because it's company code) it has issues. 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 foo.js: import React, { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useHistory } from 'react-router'; import { Link } from 'react-router-dom'; import { Grid } from '@rmwc/grid'; import { getFoos, selectFoos, selectIsLoadingFoos, selectTotalTimesFoosFetched, } from 'store/slices/foos.slice'; import { clearFoo } from 'store/slices/foo.slice'; import { filterDefinitions, getUniqueFooKey, searchProperties, getFeaturesForFoo, } from './foosHelpers'; import { useFilters } from 'components/Filtering/useFilters'; import Fab from 'components/Fab'; import SortableDataTable from 'components/SortableDataTable'; import FilterBar from 'components/Filtering/FilterBar'; import useUpdateEffect from 'hooks/useUpdateEffect'; export default function FoosList() { const dispatch = useDispatch(); const history = useHistory(); const isLoading = useSelector(selectIsLoadingFoos); const foos = useSelector(selectFoos); const totalTimesFoosFetched = useSelector( selectTotalTimesFoosFetched ); const filterBag = useFilters( 'foos', foos, filterDefinitions, searchProperties ); const { getFilterByKey, clearFilter } = filterBag; const canAddFoo = useSelector(state => state.permissions.canAddFoo); function requestFoos() { dispatch(getFoos({ dispatch })); } // Get foos from the server (if needed). // It attempts to skip reloading the foos, when it can. useEffect(() => { const isFirstLoad = totalTimesFoosFetched === 0; // Since we're only checking this on mount, I think // it's safe to say that if we don't have foos and it's // not our first load (while mounting), then this would be a // place where we've invalidated foos by clearing them out. // (to force a load) const foosInvalidated = !isFirstLoad && foos.length === 0; const shouldFetch = isFirstLoad || foosInvalidated; if (shouldFetch) { requestFoos(); } }, []); // When show foos filter changes, // get foos from the server. useUpdateEffect(() => { requestFoos(); }, []); // Clear foo data from redux. useEffect(() => { // Clear foo itself. dispatch(clearFoo()); }, []); // If we initially load foos and none come back that follow // our initial filter (only show centralized foos == true) // Remove that filter and fetch foos again. useEffect(() => { if (totalTimesFoosFetched === 1 && foos.length === 0) { // NOTE: this triggers a different effect to get foos that // match this filter. clearFilter(); } }, [foos, totalTimesFoosFetched]); function getFooLink(foo) { if (hasValue(foo.fooCode)) { return `/foos/foo/fooCode/${foo.fooCode}`; } if (foo(foo)) { return `/foos/foo//${foo.id}`; } // Shouldn't get here. If all else fails, it shouldn't route anywhere. return '#'; } return ( <Grid> <FilterBar filterBag={filterBag}> < /> </FilterBar> <SortableDataTable data={filterBag.filteredData} isLoading={isLoading} noRowsMessage="No foos to display." schema={{ getRowKey: getUniqueFooKey, columns: [ { headerName: 'Foo Name', getColumnValue: foo => ( <Link to={getFooLink(foo)} className={sharedCss.colorPrimary} > {foo.fooName} </Link> ), getSortValue: foo => foo.fooName, }, { headerName: 'Foo Code', getColumnValue: foo => foo.fooCode, className: globalCss.width100, }, { headerName: 'Site ID', // If there's no site id, it comes down as 0. getColumnValue: foo => foo.siteId || null, className: globalCss.width100, }, { headerName: 'Master Foo ID', getColumnValue: foo => foo.id, className: globalCss.width100, }, ].filter(Boolean), }} /> {canAddFoo && ( <Fab icon="add" onClick={() => history.push('/foos/new')} /> )} </Grid> ); } On Mon, Feb 22, 2021 at 3:36 PM Lars Ingebrigtsen <larsi@HIDDEN> wrote: > > Ryan Olson <ryan.olson.x@HIDDEN> writes: > > > (error "Variable binding depth exceeds max-specpdl-size") > > back-to-indentation: internal--syntax-propertize did not move > > syntax-propertize--doneError during redisplay: > > (internal--syntax-propertize 2645) signaled (error "Variable binding > > depth exceeds max-specpdl-size") > > Do you have a recipe to reproduce this error, starting from "emacs -Q"? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 46713) by debbugs.gnu.org; 22 Feb 2021 22:36:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 22 17:36:17 2021 Received: from localhost ([127.0.0.1]:57866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lEJoP-0006qp-If for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 17:36:17 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1lEJoN-0006qS-Mr for 46713 <at> debbugs.gnu.org; Mon, 22 Feb 2021 17:36:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pwCy7BvXXUnlIrqr9HI9cgbB9hng6+eEBPb2KN6Y9a4=; b=l+PONjyUTtdnOaQlI/ihigKPet 5OGmwwTOTk+7GkbVx0UH8M9Xa5bHZvTVbMmm8l+dC9yLEYngy5VjAV0OXWPlNbMVmnGKnSXgmmN9I 3rAJBsRcs2Xhqdpv7kMMfq9PdJthYXhxiptOLWL1HWMaRu27/zovQZPmwu7jAx7/nBN8=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1lEJoD-0001A1-C6; Mon, 22 Feb 2021 23:36:08 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Ryan Olson <ryan.olson.x@HIDDEN> Subject: Re: 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 References: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEX+/v3OvJnt5tC3 hFsYEBFYRkT///9urv4PAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UCFhU1Ovs/AS0AAAGwSURBVDjL rZJbkuIwDEUDs4GWTf6Ju/gf43gBaaQFQKz9b2Wu7LyY/kVVVFKcXOnq0XUfjBPRQAE/hGsPcgb+ SOk1q0+Ie7JHTHcDZygCUQiBXLiaOISvBiJRyimRT45GnuPQUlUwWCLIVJlnWoFVnDuw+4lZZN4V wXv7zscbIx7vALlDuBUAoQOwL2Wmm1dhcVuN8M01pp58Pigo3Bp4pTkZcBvoF0AEv4/f4D54KOIO XF5BSllpr2FA4NRhhPlxAJTQ1sgMT2l87iAS+pgAgk9annQYYqpAeoUpEX1uqUxRWLUkTJd1XoGN 6qcI9kg9C2TLBqNHH6+CP8o1gyd9reDWQNQrLMyq00HhLlpm/RpVd5AVDbpRkMWVYuBZ7yqOAivR dgSASiq1xomTTeTbqISxaLzw1EAka86GNZ2wDvTSAFZ6YckGRC1h2UAcUUKQSyL8Cc+tuCDVhF1h TK9z3YzugPyAL9m1s9AlFXrypV5QXQB2triCGxpzdXsdyht4+Gx2pu4cLvVKVyB1D/y361BEmDcF 6tUSIQz15QBaiC63+j9Y49PgnN4jrpf4sfgHrXiwjCQ+1DoAAAAldEVYdGRhdGU6Y3JlYXRlADIw MjEtMDItMjJUMjE6NTM6NTcrMDA6MDAXQ4vkAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTIy VDIxOjUzOjU3KzAwOjAwZh4zWAAAAABJRU5ErkJggg== X-Now-Playing: Bob Dylan's _Highway 61 Revisited_: "Desolation Row" Date: Mon, 22 Feb 2021 23:36:04 +0100 In-Reply-To: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> (Ryan Olson's message of "Mon, 22 Feb 2021 15:22:14 -0700") Message-ID: <871rd7enmz.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ryan Olson <ryan.olson.x@HIDDEN> writes: > (error "Variable binding depth exceeds max-specpdl-size") > back-to-indentation: internal--syntax-propertize did not move > syntax-propertize--doneError during redisplay: > (internal--syntax-propert [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46713 Cc: 46713 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Ryan Olson <ryan.olson.x@HIDDEN> writes: > (error "Variable binding depth exceeds max-specpdl-size") > back-to-indentation: internal--syntax-propertize did not move > syntax-propertize--doneError during redisplay: > (internal--syntax-propertize 2645) signaled (error "Variable binding > depth exceeds max-specpdl-size") Do you have a recipe to reproduce this error, starting from "emacs -Q"? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 22 Feb 2021 22:22:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 22 17:22:34 2021 Received: from localhost ([127.0.0.1]:57845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lEJb7-0006UK-SV for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 17:22:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:58548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ryan.olson.x@HIDDEN>) id 1lEJb3-0006U9-VC for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 17:22:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ryan.olson.x@HIDDEN>) id 1lEJb3-0001yh-OW for bug-gnu-emacs@HIDDEN; Mon, 22 Feb 2021 17:22:29 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]:36996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <ryan.olson.x@HIDDEN>) id 1lEJb1-0006DH-SJ for bug-gnu-emacs@HIDDEN; Mon, 22 Feb 2021 17:22:29 -0500 Received: by mail-ej1-x631.google.com with SMTP id d8so31762355ejc.4 for <bug-gnu-emacs@HIDDEN>; Mon, 22 Feb 2021 14:22:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QzCUwvdkr6koLeLOLZzP7BBmboHgUzdUIWC9/UxW8ys=; b=GzozIjUgJ2vpcqnyZiZ0yFQsQ2FuCtbulettNvZ3HOza0DiTRd/seYp2u6AZDhtgm8 DsnLcMCYNnLI4mRdNN7H66aEs0If7lFD5kJlGHTIj/bbqLVvxWedfsvI/74h3kiykwBS gPoxTgeo6PkNv4N26dkY7NxPeOjRfL53f3bXW0+eVoHqfW8T2jh9RbtJ4ZmqCVZnr2JT RXhM+8JXIZCr931/3d4qZ5eWMDOfOOzPfy1kZ93uTFEQ0BDY9HBv4TgJ3YEbsKwky1Wh Lqn4ZemqonWOvQzFpnveYMafBS55wTVAKyIZ+63Yh+wzddjBAtFuyq3CgkGGpJxprU7a TBhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QzCUwvdkr6koLeLOLZzP7BBmboHgUzdUIWC9/UxW8ys=; b=DfXoLsYK5p4QHb+eftvf6eJEJT4MM57eHVf7UB+6hesQZn+cS0ZuldRo8Wj04hHdHI OeGWXUc+Kj4xTf6RYii/OfcWxIyldgDl3SC+VcHLgb2IUqjaGefCEMt09JXAa7Ps3Ith toQgoL4N4wA70bC+NxYxDZsx+7Caw7iPT2o/laiKp36Y2+XI6sEPgfrZUaK0nhh+rE68 UVGfGKp+wBefq93Hq96ax29009xKCilgwc51RXeDQlJEK5RHXoQ5pT4oQQ+xfhmkR+EH 1IbmHadrknHCRFHXYR+3oFLyA8U7OR5vuC7E/L2q8BP1dqwBI0sVfq475dGHmJkjhxmg +tZw== X-Gm-Message-State: AOAM533DXVihjwEtzmH1gvkjYDVKJ+gkpfz51ZYM6Gaefv5WzwfpQfaw gQlnTUYmHWKVmH5GDVwhvvyjKETWMsbobdIzsSfwx2MwswR3YQ== X-Google-Smtp-Source: ABdhPJyiwqp3D04sX0g4BcBesSkjp8lGWSVsx45L22Fc8/59W/l1JCdnPY+lNHlZnGFPaewXgh5pgHMAZhYpE916ShU= X-Received: by 2002:a17:906:c210:: with SMTP id d16mr18787148ejz.187.1614032545324; Mon, 22 Feb 2021 14:22:25 -0800 (PST) MIME-Version: 1.0 From: Ryan Olson <ryan.olson.x@HIDDEN> Date: Mon, 22 Feb 2021 15:22:14 -0700 Message-ID: <CAKkY5K6_uc1U3QAyZhu7Dg9ytXWUJ_b5w6f1pyspPrUC6Qz12g@HIDDEN> Subject: 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 To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=ryan.olson.x@HIDDEN; helo=mail-ej1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-11 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.7 Recent messages: Wrote /Users/CENSORED/CENSORED/src/CENSORED/CENSORED/CENSORED.js Quit 2 (#o2, #x2, ?\C-b) Saving file /Users/CENSORED/CENSORED/src/CENSORED/CENSORED/CENSORED.js... Wrote /Users/CENSORED/CENSORED/src/CENSORED/CENSORED/CENSORED.js Error during redisplay: (internal--syntax-propertize 2120) signaled (error "Variable binding depth exceeds max-specpdl-size") back-to-indentation: internal--syntax-propertize did not move syntax-propertize--doneError during redisplay: (internal--syntax-propertize 2645) signaled (error "Variable binding depth exceeds max-specpdl-size") Error during redisplay: (jit-lock-function 2121) signaled (error "internal--syntax-propertize did not move syntax-propertize--done") Error during redisplay: (jit-lock-function 3138) signaled (error "Variable binding depth exceeds max-specpdl-size") Error during redisplay: (jit-lock-function 3638) signaled (error "Variable binding depth exceeds max-specpdl-size") Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: JavaScript[JSX] Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date vc-git diff-mode easy-mmode js json subr-x map seq byte-opt gv bytecomp byte-compile cconv imenu cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 77539 14591) (symbols 48 9435 1) (strings 32 25046 1242) (string-bytes 1 941698) (vectors 16 13840) (vector-slots 8 178575 12426) (floats 8 30 274) (intervals 56 717 4) (buffers 1000 13))
Ryan Olson <ryan.olson.x@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#46713
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.