From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Permission requested to merge branch comment-cache into master. Date: Mon, 14 Mar 2016 11:27:53 +0000 Message-ID: <20160314112753.GB1894@acm.fritz.box> References: <837fh7ho78.fsf@gnu.org> <20160312231713.GD10781@acm.fritz.box> <20160313152017.GD1871@acm.fritz.box> <56E58F74.2090209@gmail.com> <20160313191239.GI1871@acm.fritz.box> <20160313225247.GJ1871@acm.fritz.box> <56E65B07.3030105@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1457954793 9427 80.91.229.3 (14 Mar 2016 11:26:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2016 11:26:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 14 12:26:25 2016 Return-path: Envelope-to: ged-emacs-devel@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 1afQdi-0007Bf-KS for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2016 12:26:22 +0100 Original-Received: from localhost ([::1]:40220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afQdh-0008IU-QQ for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2016 07:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afQce-0006oD-Vm for emacs-devel@gnu.org; Mon, 14 Mar 2016 07:25:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afQcb-0003ow-Ol for emacs-devel@gnu.org; Mon, 14 Mar 2016 07:25:16 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:43306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afQcb-0003op-Fj for emacs-devel@gnu.org; Mon, 14 Mar 2016 07:25:13 -0400 Original-Received: (qmail 53051 invoked by uid 3782); 14 Mar 2016 11:25:12 -0000 Original-Received: from acm.muc.de (p579E8DE5.dip0.t-ipconnect.de [87.158.141.229]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 14 Mar 2016 12:25:10 +0100 Original-Received: (qmail 1925 invoked by uid 1000); 14 Mar 2016 11:27:53 -0000 Content-Disposition: inline In-Reply-To: <56E65B07.3030105@online.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:201682 Archived-At: Hello, Andreas. On Mon, Mar 14, 2016 at 07:32:39AM +0100, Andreas Röhler wrote: > On 13.03.2016 23:52, Alan Mackenzie wrote: > Hi Alan, > Ironically, having another look at during these recent discussions, > the interest is back. What about using the difference, taking profit > of two different states in narrowed vs. widened buffer? There is no way to "subtract" two parse-partial-sexp states, except, possibly, in special circumstances. Consider, these two states may both be inside a comment or string, in which case parse-partial-sexp won't record any additional info inside of that string. But if you started at pos-1 (inside the string) and parsed forward to pos-2 (still inside the string) you might well record parentheses, and so on. -- Alan Mackenzie (Nuremberg, Germany).