From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#54195: master 15a76160bb: Don't throw errors while propertizing in sgml-mode Date: Tue, 01 Mar 2022 16:15:38 +0100 Message-ID: <87lextn1ph.fsf@gnus.org> References: <164604066920.6274.17125818957525062942@vcs2.savannah.gnu.org> <20220228093109.81A17C0DA33@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22211"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54195@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 01 16:16:47 2022 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 1nP4F3-0005Pc-He for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Mar 2022 16:16:45 +0100 Original-Received: from localhost ([::1]:49192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nP4F2-0006t5-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Mar 2022 10:16:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nP4EM-00063Q-8r for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2022 10:16:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nP4EL-0004tL-QN for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2022 10:16:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nP4EL-0005cv-Ig for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2022 10:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2022 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54195 X-GNU-PR-Package: emacs Original-Received: via spool by 54195-submit@debbugs.gnu.org id=B54195.164614775321610 (code B ref 54195); Tue, 01 Mar 2022 15:16:01 +0000 Original-Received: (at 54195) by debbugs.gnu.org; 1 Mar 2022 15:15:53 +0000 Original-Received: from localhost ([127.0.0.1]:37987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nP4EC-0005cU-OY for submit@debbugs.gnu.org; Tue, 01 Mar 2022 10:15:53 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:48934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nP4EB-0005cF-HY for 54195@debbugs.gnu.org; Tue, 01 Mar 2022 10:15: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=yy9h7lkYWp0OxXntmh6WT04NB8IA1Bq0GF1YlUTC9zI=; b=tw/5+b4CzvfR5WdzQgRJZinppB Ur7HYMT/PJoS0epmEhDdTJEteTvd5aN6XJpVVwAeb11lwW3hl7/khISYO8bVLx92JQqU4/beGEJTD UZ5KxQWu6UJekt02cH26yUzawXUqA1qE0+BDeUUxqQZ4RfSf6nV0h5WyVTrCth/Ajcr0=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nP4E1-0007RD-Kz; Tue, 01 Mar 2022 16:15:44 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVTW2R6foE2P0ic pK4cIyn///9GHbZRAAAAAWJLR0QF+G/pxwAAAAlwSFlzAAAewgAAHsIBbtB1PgAAAAd0SU1FB+YD AQ8JJBVIVy8AAAGgSURBVDjLhZQBkqQgDEU/cQ4A7QVSGQ7QjnuAXYr7n2l/Ajh211RNbEvN4/8E lEbK8AMKwLLBlCdQ8BbqWeZ3ICHl8sB2HPtxPktWKSkNQSrlmdN5nkcJ1xWFsR+HX+6mZqIvz3FE PFIRQDRB1WY0siReKrm3KtoklFYT4U8M6iPHScKUcPSopK3ZxPDBIrV3+nhuerVQBLCo3RYBS1DU OiWmNwm6A2uUhH0n8IOgmrcFB+HE4H0n6G5F0KMoc858ZJ2KBYLNhGi+AT8DUKLVgYb/iGXRo1+/ ad/ASR3gVRFkXK78BNU0vNp3kQXqeGwxkR8ASR/kHdhyewM6y7cJ3nqJO/PFBZbC31bzxY+ZcxHn OI13ZXMRf4wJ7DfQ6uvM+5qG3BSlZMZ6TGmLSOjINyD7vu0eJ6JbWRaP+LLZtKKP72tZYWyCmOAd dN+1Y3/4Ct6AJ+vVbrsAv5u6+vNNWVZXf2PzCU3AzhhfE/zjPTeecRelAH+WgptdppXnz49VnAAy /hYCXEtE/f7Ynuc5wPMCm0uAPQ/JBepnFEfJ/wEvdsKLrmplhQAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMi0wMy0wMVQxNTowOTozNiswMDowML6Y8zwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDMt MDFUMTU6MDk6MzYrMDA6MDDPxUuAAAAAAElFTkSuQmCC X-Now-Playing: Neil Young's _After The Gold Rush_: "Southern Man" In-Reply-To: (Stefan Monnier's message of "Mon, 28 Feb 2022 09:44:01 -0500") 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:227870 Archived-At: Stefan Monnier writes: > The PPSS really shouldn't have a negative value here. The problem is > that when we do as in the recipe (which does not require > `electric-pair-mode` to reproduce), mhtml calls `sgml-syntax-propertize` > on the `` tag and the `syntax-ppss` call returns the state of > the JS parsing at the end of the JS code rather than the state of the > SGML parsing at the beginning of the tag. > > IOW it's a bug in the interaction between `mhtml` and `syntax-ppss`. I assumed that people didn't normally get any erroring-out here because these functions are normally called from font-locking, which catches most errors. When electric-pair-mode is used, the syntax functions are called via a different code path that doesn't catch errors, so I thought it'd make most sense to not call `error' from the code at all. But yes, the parsing won't be correct. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no