From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#22983: syntax-ppss returns wrong result. Date: Sat, 26 Mar 2016 17:51:57 -0700 Message-ID: References: <20160311151512.GD2888@acm.fritz.box> <44b4fa9e-ec8e-98a4-d8ad-e799fffa7959@yandex.ru> <20160319122759.GA2644@acm.fritz.box> <9f36a39b-ea9f-2f61-5400-68de18526ab1@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1459040002 22094 80.91.229.3 (27 Mar 2016 00:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2016 00:53:22 +0000 (UTC) Cc: Alan Mackenzie , 22983@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 27 01:53:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ajyx4-0002jq-Mz for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Mar 2016 01:53:10 +0100 Original-Received: from localhost ([::1]:34199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajyx4-00047M-1N for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Mar 2016 20:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajywz-00046x-LV for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 20:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajyww-0006F4-Cd for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 20:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajyww-0006Ey-84 for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 20:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ajywv-0006KR-RF for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 20:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Mar 2016 00:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22983 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22983-submit@debbugs.gnu.org id=B22983.145903995424290 (code B ref 22983); Sun, 27 Mar 2016 00:53:01 +0000 Original-Received: (at 22983) by debbugs.gnu.org; 27 Mar 2016 00:52:34 +0000 Original-Received: from localhost ([127.0.0.1]:39037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajywU-0006Jg-7P for submit@debbugs.gnu.org; Sat, 26 Mar 2016 20:52:34 -0400 Original-Received: from mail-pf0-f169.google.com ([209.85.192.169]:34686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajywQ-0006JC-BD for 22983@debbugs.gnu.org; Sat, 26 Mar 2016 20:52:30 -0400 Original-Received: by mail-pf0-f169.google.com with SMTP id x3so109291383pfb.1 for <22983@debbugs.gnu.org>; Sat, 26 Mar 2016 17:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version; bh=1p+LMOqtPsa03bDz5CFTglR2csx6A3bAeDV1zsMS3XM=; b=wO3jNcFhiMY3yoOtTxgYYv18hG6cIE92QUkO13kEykm0Oi37MnGbNk3lL8/CwfnqoL TrEG2V5mKOiA+O6Pqi33WpY9YAynmhhSXMtET58RerjFqnIlB0cVDvZU5+HLyKDnVrG8 PwnTSqQp87eNAkbhV2aFGGeu0W/H/MhjiMcnyidxqgFqUoLWMUHXU60PBrXYafALt52Z 7yohvRpDDygHwksWPZR9j60bfUaarBJnQHvUpK+ZtWJQ4X9oWy+a96pWFakwzpZMipg/ WH7Xt+7dSaHHQwS7QUb1Y8ATHyro+nfSHNmC7VFVssWQdbeFT6o8mH67SDdTFB03KAsF /fEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mime-version; bh=1p+LMOqtPsa03bDz5CFTglR2csx6A3bAeDV1zsMS3XM=; b=Ryj+ODDQtt80JZrZqweTtxqcHxKR7bjfFxZaonSTugfwszLIpkJ//vQhxX/SksLkx5 Rr9aOKmm+ORcVvnYfCe8La/JgfSlM2ywpje5l/WWbmdnNM0JypxwEMuIMLHRUuTu0iKS BCflQ2GXwtMsCH4OWKgttrg/2WVG0d7bIgowvFwl9CL1FSEsRqklUntiw+tow2Xf5aK/ fkaNoYGLQncE/u5uFsySsh+Mf13waPC98tyJlFPazxLxIAQxUPHXr7aWx0a4R+QjoYCi kK3GW+NBntr9CMyJ0kzB1v6R+2B0G3PLJc0SdYNsWXhQXjX5bRtF8m3MRYqHIZbzjIc6 seRg== X-Gm-Message-State: AD7BkJLavr+XP/OPVhqZfkRtDJmJlrAKQxsTtuwmrZtEew8LeYVLUIbYxJ+U9N08V01q9Q== X-Received: by 10.98.75.10 with SMTP id y10mr31916005pfa.32.1459039944924; Sat, 26 Mar 2016 17:52:24 -0700 (PDT) Original-Received: from Hermes.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id s197sm25530749pfs.62.2016.03.26.17.52.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 26 Mar 2016 17:52:23 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Hermes.local (Postfix, from userid 501) id D67C84FB513F; Sat, 26 Mar 2016 17:52:22 -0700 (PDT) In-Reply-To: <9f36a39b-ea9f-2f61-5400-68de18526ab1@yandex.ru> (Dmitry Gutov's message of "Sat, 19 Mar 2016 20:47:24 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.92 (darwin) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115536 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >>>>> Dmitry Gutov writes: >> I think the only sensible functionality for syntax-ppss is to be equival= ent >> to (parse-partial-sexp 1 pos). Then everybody knows where they stand. Th= ose >> pieces of code which actually need a ppss cache with origin other than 1 >> could then use a more appropriate specialized function whose cache would= n't >> get mixed up with syntax-ppss's. (It could share a lot of code with >> syntax-ppss). > They already use syntax-ppss. I imagine Emacs's backward compatibility > policy has something to say about that. There are times when our backward compatibility policy must bend, and even break. Specifically, we have a few existing cases where incomplete code has or will be shipped in a release. The argument for doing so has often been, "So we c= an see what users think." But if we *also* say that once it is released and people start using, we can't change it, then it's a Catch-22. syntax-ppss needs more work, that seems to be fairly clear based on the vol= ume of discussion around this feature, and bugs like this one. Therefore, since= it is not solid yet I'm not willing to let existing dependencies prevent us fr= om fixing its flaws. When a feature becomes solid and true, like lexical-binding, that's when I become incredibly reticent to make any changes whatsoever -- without the convergence of all the planets and the moons. =2D-=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBCgAGBQJW9y6tAAoJEMFE2PTxn+Yw/aML/3xzCVuHnQE+Yx38AQWiXQpg u8PTW7XGk3XHW1sFrUZk//VKtLzKAwXvvWQE1Z5pdGRCzCtgpb8f+bZ1LOAt3o+j KxG4f9uWlqRdDlBbq7O1+XjGAPw1VtncJ4il205T4x9a0KczRn+FEZRMVRJBuNtW gd+2UD0w1WlrcAudsMHNin/1kj5a5SHBCBNzV8vTJpgdNg6DA/N12NExKUayBY4S eYk4A5xBZAsuEpdLZeoiTsD7BQBN3BX+U0jvGBPSEWiNe6+IXcdjixXXoeLfn4D+ R1l2gXm2Tig49ilsO572cWNoK/S4mEfRi3TLCbihEfS41/SDuTBUDkwV87Fkl4xs Y2IK3gDD4U9ypj6CP4kSx3UuABrlYEJbzPx+AcO+ARd2mBzAUY2IA2fMDIg91n4u dHsN89IQa/H01dRHL1fXBNq6OC9VSD4vU/5Kx+n5cm6Y+kzv0hIXqbavja0/UNP1 s2pAEkg0N9qsdCokEDGUKK9U85JPUIzE2x2xMcCZqg== =8MPR -----END PGP SIGNATURE----- --=-=-=--