From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Tue, 31 Jul 2012 10:46:09 +0200 Message-ID: References: <4FD9F40C.90406@yandex.ru> <4FDA927D.50306@yandex.ru> <4FDC89B7.3050907@yandex.ru> <4FDFCF27.8000309@yandex.ru> <4FE12EDC.3080001@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1343724420 23537 80.91.229.3 (31 Jul 2012 08:47:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 08:47:00 +0000 (UTC) Cc: cyd@gnu.org, Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 31 10:46:59 2012 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 1Sw86Q-0004SJ-EC for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 10:46:54 +0200 Original-Received: from localhost ([::1]:38759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw86P-0002Dw-Pr for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 04:46:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw86I-0002DV-Mz for emacs-devel@gnu.org; Tue, 31 Jul 2012 04:46:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sw86E-0007R8-RM for emacs-devel@gnu.org; Tue, 31 Jul 2012 04:46:46 -0400 Original-Received: from mail-vc0-f169.google.com ([209.85.220.169]:63355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw86C-0007QQ-OL; Tue, 31 Jul 2012 04:46:40 -0400 Original-Received: by vcbfl10 with SMTP id fl10so6281946vcb.0 for ; Tue, 31 Jul 2012 01:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=PpAipRR97lSWkOuz1rUfKmjdsV2jrkq+yOYICVPxaZM=; b=sIgCtBu9tLOIdJCLZgcfzZqxD0483t1xMTRyCXrM7VvVgJMH1e21qOG7JBW0uec7d+ d2s5wBB4vhoYgAJj0rz4jPVBQCisV8q93lfUurXfEOYv7MVdOwRvJUFyoH2CZVgbRjeR Ho1+O3Z/657CvYA9WCabyob+SYmTGzWkWEukTpqOYLvEbvZGg8h47kYvWiC8mr3cyciH PNMFnjGQ6NMcVgpGKMBT5nczci0/n4jGAi8PoYG52Pa6g/qqlngVjEGBdN/vXiQGA7Ek dniLd3AV5RLqoiarJeL3UmGX03mmODakXR/HO4rduY8e3y+k/Q9etLQLzdppPcaSizW3 0yWQ== Original-Received: by 10.220.221.18 with SMTP id ia18mr13346263vcb.62.1343724400024; Tue, 31 Jul 2012 01:46:40 -0700 (PDT) Original-Received: by 10.58.70.8 with HTTP; Tue, 31 Jul 2012 01:46:09 -0700 (PDT) In-Reply-To: <4FE12EDC.3080001@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.169 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:151993 Archived-At: On Wed, Jun 20, 2012 at 4:01 AM, Dmitry Gutov wrote: > > On 19.06.2012 14:39, Lennart Borgman wrote: >> My idea with (with-chunks chunk-table ...) that chunk-table contains >> this information instead. Then it can be cashed by the multi major >> mode framework. > > You might want to consider how syntax-ppss cache works. Since text-property > change in considered buffer modification, `syntax-ppss-flush-cache' will be > called from `before-change-functions', invalidating the cache entries with > positions after the edit position, and keeping the ones before it. > With your proposal, it would need to somehow keep track of the chunk-table, > too. Yes, that would be nice. (I do not remember if I corrected my self, but a parameter to syntax-ppss corresponding to a function to get this would be enough.)