From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: forward-comment and syntax-ppss Date: Fri, 09 Dec 2016 10:37:10 +0200 Message-ID: <83r35hh51l.fsf@gnu.org> References: <20161206195507.GA2996@acm.fritz.box> <83fd1db0-7362-6117-c5cd-715398c0dea4@gmail.com> <20161207220447.GA4503@acm.fritz.box> <2b1c72b9-8d69-5b93-26dc-7f51c5683d0c@gmail.com> <20161208193103.GA3120@acm.fritz.box> <6a77a42f-0bc8-de8f-bae8-44e48a174e7e@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481272768 19050 195.159.176.226 (9 Dec 2016 08:39:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2016 08:39:28 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: =?windows-1252?Q?Cl=E9ment?= Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 09 09:39:24 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFGi9-00046C-TW for ged-emacs-devel@m.gmane.org; Fri, 09 Dec 2016 09:39:22 +0100 Original-Received: from localhost ([::1]:45328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFGiE-0006v6-0Q for ged-emacs-devel@m.gmane.org; Fri, 09 Dec 2016 03:39:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFGfe-0007eO-CP for emacs-devel@gnu.org; Fri, 09 Dec 2016 03:36:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFGfa-00080e-J4 for emacs-devel@gnu.org; Fri, 09 Dec 2016 03:36:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFGfa-00080N-Ft; Fri, 09 Dec 2016 03:36:42 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3398 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cFGfZ-0004T0-LI; Fri, 09 Dec 2016 03:36:42 -0500 In-reply-to: <6a77a42f-0bc8-de8f-bae8-44e48a174e7e@gmail.com> (message from =?windows-1252?Q?Cl=E9ment?= Pit--Claudel on Thu, 8 Dec 2016 14:54:34 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210171 Archived-At: > From: Clément Pit--Claudel > Date: Thu, 8 Dec 2016 14:54:34 -0500 > Cc: emacs-devel@gnu.org > > The problem is simple. Proof General locks portions of the source code that have been sent to an underlying interpreter/compiler. This locking is achieved by placing read-only overlays spanning from (point-min) to the current point, every time a new region is sent. > > There are many such places; unfortunately, the use of (point-min) means that the overlays do not have the right starting point: they start from the beginning of the narrowed region. > > It's hard to fix this issue, because uses of point-min don't carry sufficient semantic information: did the original author mean (point-min), or 1? There's no general way to tell but to read the surrounding code. If the package doesn't use narrowing, it generally means 1, IMO. That's a simple enough test that doesn't require reading the whole code. But I agree that this issue is not simple in general.