From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#22983: syntax-ppss returns wrong result. Date: Sun, 13 Mar 2016 13:37:27 -0400 Message-ID: References: <20160311151512.GD2888@acm.fritz.box> <20160311212410.GG2888@acm.fritz.box> <73903215-f94b-e194-7bfe-0d6350c95769@yandex.ru> <20160311221540.GH2888@acm.fritz.box> <2c301ec9-041d-9172-d628-479062314b23@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457890703 24629 80.91.229.3 (13 Mar 2016 17:38:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2016 17:38:23 +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 13 18:38:13 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 1af9xy-0000AO-TG for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2016 18:38:11 +0100 Original-Received: from localhost ([::1]:36967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af9xy-0000Bl-9v for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2016 13:38:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af9xv-0000Bc-5D for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 13:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1af9xq-0000VL-5L for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 13:38:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af9xq-0000VH-2D for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 13:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1af9xp-0000zv-UF for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 13:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Mar 2016 17:38: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.14578906543800 (code B ref 22983); Sun, 13 Mar 2016 17:38:01 +0000 Original-Received: (at 22983) by debbugs.gnu.org; 13 Mar 2016 17:37:34 +0000 Original-Received: from localhost ([127.0.0.1]:47165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1af9xO-0000zE-2j for submit@debbugs.gnu.org; Sun, 13 Mar 2016 13:37:34 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13855) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1af9xM-0000z1-Oo for 22983@debbugs.gnu.org; Sun, 13 Mar 2016 13:37:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AZIgA731xV/5L/d0tcgxCEAoVVv06DPQQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0Fsz+BRSOEFCKCeAEBAQ X-IPAS-Result: A0AZIgA731xV/5L/d0tcgxCEAoVVv06DPQQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0Fsz+BRSOEFCKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="196110856" Original-Received: from 75-119-255-146.dsl.teksavvy.com (HELO pastel.home) ([75.119.255.146]) by ironport2-out.teksavvy.com with ESMTP; 13 Mar 2016 13:37:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 2D6AC612AD; Sun, 13 Mar 2016 13:37:27 -0400 (EDT) In-Reply-To: <2c301ec9-041d-9172-d628-479062314b23@yandex.ru> (Dmitry Gutov's message of "Sat, 12 Mar 2016 00:38:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:114860 Archived-At: >> But it's not the semantics these .el files get. What's probably keeping >> them functional is the rarity with which buffers are narrowed to an >> "awkward" point-min. > Another thing that keeps it together, is that narrowing, as a user-level > operator, is not that popular. Luckily, yes. > Personally, I consider it an anti-feature. Same here. Luckily also, as pointed out elsewhere, the semantics of it is unclear, so that in several important cases, whichever behavior we end up choosing will be both correct for some users and incorrect for others. Hence, so far, I didn't make any effort to try and "do the right thing" for user-activated narrowing, since these are just not well defined enough to even determine what is "the right thing". Stefan